From 8c38a24fa04d1955502395f4dc05915fbf9da886 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 5 Mar 2003 13:06:50 +0000 Subject: [PATCH] i386.c (ix86_save_reg): Also test current_function_uses_const_pool. * i386/i386.c (ix86_save_reg): Also test current_function_uses_const_pool. From-SVN: r63840 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6155b434231..421f8c27e86 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-05 Michael Matz + + * i386/i386.c (ix86_save_reg): Also test + current_function_uses_const_pool. + 2003-03-05 Michael Matz * unwind.h: Add the GPL exception. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 639ea1b180b..ab2a93565cc 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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; -- 2.30.2