From: Thiemo Seufer Date: Mon, 27 Aug 2001 18:48:27 +0000 (+0000) Subject: * tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7283eb8605a152788f7748a5ae9f21eafc23c62e;p=binutils-gdb.git * tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET. (macro): Reflect change to MAX_GPREL_OFFSET. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index d9d690d4175..e4636f8f028 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-08-27 Thiemo Seufer + + * tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET. + (macro): Reflect change to MAX_GPREL_OFFSET. + 2001-08-27 Torbjorn Granlund Staffan Ulfberg Linus Nordberg diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index e939bdab9b8..906641dfe58 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -3330,7 +3330,7 @@ load_address (counter, reg, ep) lui $reg, (BFD_RELOC_HI16_S) addiu $reg,$reg, (BFD_RELOC_LO16) If we have an addend, we always use the latter form. */ - if ((valueT) ep->X_add_number >= MAX_GPREL_OFFSET + if ((valueT) ep->X_add_number > MAX_GPREL_OFFSET || nopic_need_relax (ep->X_add_symbol, 1)) p = NULL; else @@ -4226,7 +4226,7 @@ macro (ip) addiu $tempreg,$tempreg, (BFD_RELOC_LO16) If we have a constant, we need two instructions anyhow, so we may as well always use the latter form. */ - if ((valueT) offset_expr.X_add_number >= MAX_GPREL_OFFSET + if ((valueT) offset_expr.X_add_number > MAX_GPREL_OFFSET || nopic_need_relax (offset_expr.X_add_symbol, 1)) p = NULL; else