diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/final.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f9f53e008cf..d03fcf914f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2005-04-02 Alexandre Oliva <aoliva@redhat.com> + PR middle-end/20491 + * final.c (alter_subreg): Don't call subreg_regno for a non-REG. + +2005-04-02 Alexandre Oliva <aoliva@redhat.com> + PR rtl-optimization/20290 * loop.c (for_each_insn_in_loop): Don't assume the loop body runs in every iteration if the entry point is the exit test. diff --git a/gcc/final.c b/gcc/final.c index ea842550cfb..aee4ea973fd 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2547,11 +2547,10 @@ alter_subreg (rtx *xp) if (new != 0) *xp = new; - else + else if (REG_P (y)) { /* Simplify_subreg can't handle some REG cases, but we have to. */ unsigned int regno = subreg_regno (x); - gcc_assert (REG_P (y)); *xp = gen_rtx_REG_offset (y, GET_MODE (x), regno, SUBREG_BYTE (x)); } } |