From: Doug Kwan Date: Fri, 26 Mar 2010 04:53:34 +0000 (+0000) Subject: 2010-03-25 Doug Kwan X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fcd97eb159fbfdf2b6576762821900345f510b3;p=binutils-gdb.git 2010-03-25 Doug Kwan * gold/arm.cc (Arm_exidx_fixup::update_offset_map): Rearrange code to avoid a conversion warning on a 32-bit host. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index d8b8d79430c..0688cdd9cdc 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-03-25 Doug Kwan + + * gold/arm.cc (Arm_exidx_fixup::update_offset_map): Rearrange code + to avoid a conversion warning on a 32-bit host. + 2010-03-24 Ian Lance Taylor * testsuite/script_test_3.t: Add a TLS segment. diff --git a/gold/arm.cc b/gold/arm.cc index 890646e7ba2..aac5f75d8e6 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -5206,10 +5206,11 @@ Arm_exidx_fixup::update_offset_map( { if (this->section_offset_map_ == NULL) this->section_offset_map_ = new Arm_exidx_section_offset_map(); - section_offset_type output_offset = - (delete_entry - ? Arm_exidx_input_section::invalid_offset - : input_offset - deleted_bytes); + section_offset_type output_offset; + if (delete_entry) + output_offset = Arm_exidx_input_section::invalid_offset; + else + output_offset = input_offset - deleted_bytes; (*this->section_offset_map_)[input_offset] = output_offset; }