From 39a59cf89e244653b01173f6d4b04ae7b746059d Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Thu, 14 Apr 2005 15:32:58 +0000 Subject: * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP optimization for constant addresses. --- gas/config/tc-mips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gas/config') diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index a13b06e..19e8f90 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); -- cgit v1.1