From: macro Date: Thu, 14 Apr 2005 15:32:57 +0000 (+0000) Subject: * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP X-Git-Tag: pre_wait_sig_exit~2114 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ad7550ed6b5e31e2bce06c152c4937f64c9564a7;p=pf3gnuchains%2Fpf3gnuchains4x.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 deab89a1e5..1ea7d3d376 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-14 Nick Clifton * as.c (main): Move parse_args before symbol_begin and frag_init diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index a13b06ece5..19e8f90fe3 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);