Cast current_group_size to unsigned long
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 14 Dec 2014 14:59:20 +0000 (06:59 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 14 Dec 2014 14:59:20 +0000 (06:59 -0800)
* aarch64.cc (AArch64_relocate_functions::maybe_apply_stub):
Cast current_group_size to unsigned long when reporting error.

gold/ChangeLog
gold/aarch64.cc

index 5c32168051fe3ddc625cc5b0d7d702617aa43d48..8f56043227845b6a49f372169b9023a284611d31 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * aarch64.cc (AArch64_relocate_functions::maybe_apply_stub):
+       Cast current_group_size to unsigned long when reporting error.
+
 2014-12-10  Jing Yu  <jingyu@google.com>
 
        * aarch64.cc (Target_aarch64): Add new variable stub_group_size_.
index f2505d66290564465183a504576839a65e9a0ebf..05933e0a303c096d69a8667bbea4ee7b6e2c4d5a 100644 (file)
@@ -4205,7 +4205,7 @@ maybe_apply_stub(unsigned int r_type,
   if (status != This::STATUS_OKAY)
     gold_error(_("Stub is too far away, try a smaller value "
                 "for '--stub-group-size'. The current value is 0x%lx."),
-              current_group_size);
+              static_cast<unsigned long>(current_group_size));
   return true;
 }