projects
/
deliverable
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca00506
)
From Cary Coutant: Remove commented out assert. Also add comment for
author
Ian Lance Taylor
<iant@google.com>
Fri, 7 Dec 2007 00:54:28 +0000
(
00:54
+0000)
committer
Ian Lance Taylor
<iant@google.com>
Fri, 7 Dec 2007 00:54:28 +0000
(
00:54
+0000)
bitfield check.
gold/object.h
patch
|
blob
|
blame
|
history
diff --git
a/gold/object.h
b/gold/object.h
index 4b826cf60cdf5e915210e12bb425e1f7820698b9..5faa9115acbdd358b5998c276cf163aa9fb9a403 100644
(file)
--- a/
gold/object.h
+++ b/
gold/object.h
@@
-660,10
+660,7
@@
class Symbol_value
// table.
bool
needs_output_symtab_entry() const
// table.
bool
needs_output_symtab_entry() const
- {
- // gold_assert(this->output_symtab_index_ != 0);
- return this->output_symtab_index_ != -1U;
- }
+ { return this->output_symtab_index_ != -1U; }
// Return the index in the output symbol table.
unsigned int
// Return the index in the output symbol table.
unsigned int
@@
-726,6
+723,8
@@
class Symbol_value
set_input_shndx(unsigned int i)
{
this->input_shndx_ = i;
set_input_shndx(unsigned int i)
{
this->input_shndx_ = i;
+ // input_shndx_ field is a bitfield, so make sure that the value
+ // fits.
gold_assert(this->input_shndx_ == i);
}
gold_assert(this->input_shndx_ == i);
}
This page took
0.025912 seconds
and
4
git commands to generate.