This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: Fix for reload-failure


Hi,

On Fri, 7 Feb 2003, Richard Henderson wrote:

> > Just add 'current_function_uses_const_pool' to the list.  I can't
> > guarantee that'll work for all cases, though.
>
> Hmm, this does seem promising.

And it fixes the testcase ;)  The patch is below.  I've just started
bootstrapping/regtesting.  OK, if this works?  (3.3 and HEAD)


Ciao,
Michael.
-- 
	* i386/i386.c (ix86_save_reg): Also test
	current_function_uses_const_pool.

Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.490.2.20
diff -u -p -r1.490.2.20 i386.c
--- config/i386/i386.c	5 Feb 2003 10:09:56 -0000	1.490.2.20
+++ config/i386/i386.c	9 Feb 2003 17:37:03 -0000
@@ -4372,7 +4372,8 @@ ix86_save_reg (regno, maybe_eh_return)
       && regno == REAL_PIC_OFFSET_TABLE_REGNUM
       && (regs_ever_live[REAL_PIC_OFFSET_TABLE_REGNUM]
 	  || current_function_profile
-	  || current_function_calls_eh_return))
+	  || current_function_calls_eh_return
+	  || current_function_uses_const_pool))
     {
       if (ix86_select_alt_pic_regnum () != INVALID_REGNUM)
 	return 0;


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