From: Ian Lance Taylor Date: Fri, 7 Dec 2007 00:54:28 +0000 (+0000) Subject: From Cary Coutant: Remove commented out assert. Also add comment for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac1f0c21aefc3dc1b7c05c97e011d0eec0756cb9;p=binutils-gdb.git From Cary Coutant: Remove commented out assert. Also add comment for bitfield check. --- diff --git a/gold/object.h b/gold/object.h index 4b826cf60cd..5faa9115acb 100644 --- a/gold/object.h +++ b/gold/object.h @@ -660,10 +660,7 @@ class Symbol_value // 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 @@ -726,6 +723,8 @@ class Symbol_value 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); }