From: Maciej W. Rozycki Date: Thu, 14 Apr 2005 15:45:38 +0000 (+0000) Subject: * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP X-Git-Tag: binutils-2_16~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e987b7a725ab0e045dc307665be5c40283fe7095;p=thirdparty%2Fbinutils-gdb.git * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP optimization for constant addresses. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 6bc75185c26..a6ea5eb68b1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2005-04-14 Maciej W. Rozycki + + * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP + optimization for constant addresses. + 2005-04-13 Maciej W. Rozycki * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 2c2fbfcfecb..ea16b51b916 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -6417,7 +6417,8 @@ macro (struct mips_cl_insn *ip) If there is a base register, we add it to $at after the lui instruction. If there is a constant, we always use the last case. */ - if ((valueT) offset_expr.X_add_number <= MAX_GPREL_OFFSET + if (offset_expr.X_op == O_symbol + && (valueT) offset_expr.X_add_number <= MAX_GPREL_OFFSET && !nopic_need_relax (offset_expr.X_add_symbol, 1)) { relax_start (offset_expr.X_add_symbol);