i386.c (ix86_save_reg): Also test current_function_uses_const_pool.
authorMichael Matz <matz@suse.de>
Wed, 5 Mar 2003 13:06:50 +0000 (13:06 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Wed, 5 Mar 2003 13:06:50 +0000 (13:06 +0000)
* i386/i386.c (ix86_save_reg): Also test
        current_function_uses_const_pool.

From-SVN: r63840

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

index 6155b434231d62b4defe5532be49a6c5f114faf0..421f8c27e86f0e6012b12fbbffc9be2abf5c6bbf 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 639ea1b180bcfece1148618814b2b6b201a9e9ad..ab2a93565cc18c9714d38e8beef8597854be8538 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;