* recog.c (general_operand): Modify last change to allow it if reload
has completed.
From-SVN: r42309
+Sat May 19 07:53:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * recog.c (general_operand): Modify last change to allow it if reload
+ has completed.
+
Sat May 19 10:23:54 CEST 2001 Jan Hubicka <jh@suse.cz>
* recog.c (general_operand): Prohibit nonzero subreg bytes on
#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);