2010-03-25 Doug Kwan <dougkwan@google.com>
authorDoug Kwan <dougkwan@google.com>
Fri, 26 Mar 2010 04:53:34 +0000 (04:53 +0000)
committerDoug Kwan <dougkwan@google.com>
Fri, 26 Mar 2010 04:53:34 +0000 (04:53 +0000)
* gold/arm.cc (Arm_exidx_fixup::update_offset_map): Rearrange code
to avoid a conversion warning on a 32-bit host.

gold/ChangeLog
gold/arm.cc

index d8b8d79430ca0878fa3e0139a3ed21e3ca34e934..0688cdd9cdcf4f7aaa81444a4dd113898b06c7b0 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2010-03-24  Ian Lance Taylor  <iant@google.com>
 
        * testsuite/script_test_3.t: Add a TLS segment.
index 890646e7ba25efd04f2538cb435e9b3abcf66b41..aac5f75d8e6b3354323b0a69fe2aad40a7669943 100644 (file)
@@ -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;
 }