diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2005-04-02 16:56:27 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2005-04-02 16:56:27 +0000 |
commit | bbe3791247584e9b520a0a7afdc14acea321678a (patch) | |
tree | 6cffde9362a7a22daa2547c212d2966f431b582a | |
parent | 9f05ff0a19805354543881f05f84d3157e619bad (diff) | |
download | gcc-bbe3791247584e9b520a0a7afdc14acea321678a.zip gcc-bbe3791247584e9b520a0a7afdc14acea321678a.tar.gz gcc-bbe3791247584e9b520a0a7afdc14acea321678a.tar.bz2 |
re PR middle-end/20491 (internal compiler error: in subreg_regno_offset, at rtlanal.c:3042)
PR middle-end/20491
* final.c (alter_subreg): Don't call subreg_regno for a non-REG.
From-SVN: r97444
-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 f9f53e0..d03fcf9 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 ea84255..aee4ea9 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)); } } |