This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

disable GAS overflow check for Xtensa


I have applied this patch to fix a fairly obscure problem in the Xtensa port of GAS that only seems to occur when assembling a really large section of code. The patch disables the generic overflow checking, which isn't needed anyway because the Xtensa code does its own overflow checks.


2004-11-22 Bob Wilson <bob.wilson@acm.org>


* config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.


Index: config/tc-xtensa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-xtensa.c,v
retrieving revision 1.18
diff -u -p -r1.18 tc-xtensa.c
--- config/tc-xtensa.c	12 Nov 2004 21:59:12 -0000	1.18
+++ config/tc-xtensa.c	22 Nov 2004 16:30:05 -0000
@@ -4266,6 +4266,7 @@ xg_add_opcode_fix (TInsn *tinsn,
   fmt_length = xtensa_format_length (xtensa_default_isa, fmt);
   the_fix = fix_new_exp (fragP, offset, fmt_length, expr,
 			 howto->pc_relative, reloc);
+  the_fix->fx_no_overflow = 1;
 
   if (expr->X_add_symbol
       && (S_IS_EXTERNAL (expr->X_add_symbol)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]