diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-07-26 10:39:20 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-07-26 10:43:36 -0700 |
commit | 104f0515d038716599728f8e2b58aefe3fc188aa (patch) | |
tree | 6a2b0f38600360841a24e78b3763c668b8d64b89 /gold/mips.cc | |
parent | 27d41eac62a6a1aa803dfcfba2be61431e7b3d13 (diff) | |
download | gdb-104f0515d038716599728f8e2b58aefe3fc188aa.zip gdb-104f0515d038716599728f8e2b58aefe3fc188aa.tar.gz gdb-104f0515d038716599728f8e2b58aefe3fc188aa.tar.bz2 |
Gold: Fix mips.cc for GCC 4.2
GCC 4.2 fails to compile "(uint64_t) 0x800080008000" with
error: integer constant is too large for ‘long’ type
This patch adds "llu" suffix to 0x800080008000 for GCC 4.2.
* mips.cc (Mips_relocate_functions): Add "llu" suffix to
0x800080008000.
Diffstat (limited to 'gold/mips.cc')
-rw-r--r-- | gold/mips.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/mips.cc b/gold/mips.cc index 4fc160b..5555562 100644 --- a/gold/mips.cc +++ b/gold/mips.cc @@ -5664,7 +5664,7 @@ class Mips_relocate_functions : public Relocate_functions<size, big_endian> : addend_a); Valtype x = psymval->value(object, addend); - x = ((x + (uint64_t) 0x800080008000) >> 48) & 0xffff; + x = ((x + (uint64_t) 0x800080008000llu) >> 48) & 0xffff; val = Bits<32>::bit_select32(val, x, 0xffff); if (calculate_only) |