* rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.

From-SVN: r55710
This commit is contained in:
Jan Hubicka 2002-07-24 17:24:35 +02:00 committed by Jan Hubicka
parent aa02149af5
commit 5df533b352
2 changed files with 5 additions and 0 deletions

View 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

View 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;