From c63f3a3443ab52525a0e189119b8a8f3cc51115f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 12 Jun 2003 22:30:33 -0700 Subject: [PATCH] re PR middle-end/10557 ([m68k] ICE in subreg_offset_representable_p) PR middle-end/10557 * rtlanal.c (subreg_offset_representable_p): Relax subreg check. From-SVN: r67878 --- gcc/ChangeLog | 5 +++++ gcc/rtlanal.c | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1689d6c5124..83f42b5ed84 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-12 Richard Henderson + + PR middle-end/10557 + * rtlanal.c (subreg_offset_representable_p): Relax subreg check. + 2003-06-13 Kazu Hirata * config/m32r/m32r.md: Fix a comment typo. diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index b7fbe4a05ce..2ce25956331 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -3427,16 +3427,10 @@ subreg_offset_representable_p (xregno, xmode, offset, ymode) #ifdef ENABLE_CHECKING /* This should always pass, otherwise we don't know how to verify the - constraint. - - These conditions may be relaxed but subreg_offset would need to be - redesigned. */ + constraint. These conditions may be relaxed but subreg_offset would + need to be redesigned. */ if (GET_MODE_SIZE (xmode) % GET_MODE_SIZE (ymode) || GET_MODE_SIZE (ymode) % nregs_ymode - || (GET_MODE_BITSIZE (mode_for_size (GET_MODE_BITSIZE (xmode) - / nregs_xmode, - MODE_INT, 0)) - != GET_MODE_BITSIZE (xmode) / nregs_xmode) || nregs_xmode % nregs_ymode) abort (); #endif