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 /gcc/final.c | |
parent | 9f05ff0a19805354543881f05f84d3157e619bad (diff) | |
download | gcc-bbe3791247584e9b520a0a7afdc14acea321678a.tar.gz |
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
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 3 |
1 files changed, 1 insertions, 2 deletions
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)); } } |