]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
authorJan Hubicka <jh@suse.cz>
Wed, 24 Jul 2002 15:24:35 +0000 (17:24 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 24 Jul 2002 15:24:35 +0000 (15:24 +0000)
From-SVN: r55710

gcc/ChangeLog
gcc/rtlanal.c

index 7e9cd869832c40a0979aea2aee40bd7a1bbe71a6..dca8f443936f3152bbac9de787ec67dff38747be 100644 (file)
@@ -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
index c1fdb7604ae54be3ca8d0bdb0c720e2779b34e49..35cc5130caaa0a5a7d0ec4f9ace1705ad7832290 100644 (file)
@@ -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;