From: Richard Kenner Date: Sat, 19 May 2001 11:51:32 +0000 (+0000) Subject: recog.c (general_operand): Modify last change to allow it if reload has completed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e86f9f3267b0127af29d48afc8e803c8e0028ae2;p=gcc.git recog.c (general_operand): Modify last change to allow it if reload has completed. * recog.c (general_operand): Modify last change to allow it if reload has completed. From-SVN: r42309 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a086e993ef4..d8598505427 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat May 19 07:53:42 2001 Richard Kenner + + * recog.c (general_operand): Modify last change to allow it if reload + has completed. + Sat May 19 10:23:54 CEST 2001 Jan Hubicka * recog.c (general_operand): Prohibit nonzero subreg bytes on diff --git a/gcc/recog.c b/gcc/recog.c index 5e78336ea02..833a12253a7 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -961,8 +961,12 @@ general_operand (op, mode) #endif /* Avoid memories with nonzero SUBREG_BYTE, as offsetting the memory may result in incorrect reference. We should simplify all valid - subregs of MEM anyway. */ - if (SUBREG_BYTE (op) && GET_CODE (SUBREG_REG (op)) == MEM) + subregs of MEM anyway. But allow this after reload because we + might be called from cleanup_subreg_operands. + + ??? This is a kludge. */ + if (!reload_completed && SUBREG_BYTE (op) != 0 + && GET_CODE (SUBREG_REG (op)) == MEM) return 0; op = SUBREG_REG (op);