aboutsummaryrefslogtreecommitdiff
path: root/gold/arm.cc
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2010-03-26 04:53:34 +0000
committerDoug Kwan <dougkwan@google.com>2010-03-26 04:53:34 +0000
commit4fcd97eb159fbfdf2b6576762821900345f510b3 (patch)
treee0bdec12913156a8c3c56653706fdb1ed4da1580 /gold/arm.cc
parent6c28cbf2b6beb56c99ec084b9bc5adc8d4813894 (diff)
downloadgdb-4fcd97eb159fbfdf2b6576762821900345f510b3.zip
gdb-4fcd97eb159fbfdf2b6576762821900345f510b3.tar.gz
gdb-4fcd97eb159fbfdf2b6576762821900345f510b3.tar.bz2
2010-03-25 Doug Kwan <dougkwan@google.com>
* gold/arm.cc (Arm_exidx_fixup::update_offset_map): Rearrange code to avoid a conversion warning on a 32-bit host.
Diffstat (limited to 'gold/arm.cc')
-rw-r--r--gold/arm.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/gold/arm.cc b/gold/arm.cc
index 890646e..aac5f75 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;
}