summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-24 15:24:35 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-24 15:24:35 +0000
commit0c08cb26e6b5b34d001d80bb926051805c590d77 (patch)
tree90cb6b7fdf6b770551879215879e187ec98b4155
parent0678cffcff8fbde4c5c95b33386ecd79da0fe24f (diff)
downloadgcc-0c08cb26e6b5b34d001d80bb926051805c590d77.tar.gz
* rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55710 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/rtlanal.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e9cd869832..dca8f443936 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
+
+ * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
+
2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
PR optimization/7291
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index c1fdb7604ae..35cc5130caa 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -3247,6 +3247,7 @@ keep_with_call_p (insn)
if (INSN_P (insn) && (set = single_set (insn)) != NULL)
{
if (GET_CODE (SET_DEST (set)) == REG
+ && REGNO (SET_DEST (set)) < FIRST_PSEUDO_REGISTER
&& fixed_regs[REGNO (SET_DEST (set))]
&& general_operand (SET_SRC (set), VOIDmode))
return true;