OSDN Git Service

* i386/i386.c (ix86_save_reg): Also test
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Mar 2003 13:06:50 +0000 (13:06 +0000)
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Mar 2003 13:06:50 +0000 (13:06 +0000)
        current_function_uses_const_pool.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63840 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index 6155b43..421f8c2 100644 (file)
@@ -1,5 +1,10 @@
 2003-03-05  Michael Matz  <matz@suse.de>
 
+       * i386/i386.c (ix86_save_reg): Also test
+       current_function_uses_const_pool.
+
+2003-03-05  Michael Matz  <matz@suse.de>
+
        * unwind.h: Add the GPL exception.
        * Makefile.in (USER_H): Add unwind.h.
 
index 639ea1b..ab2a935 100644 (file)
@@ -4827,7 +4827,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;