From: Richard Henderson Date: Sun, 7 Mar 1999 02:45:29 +0000 (-0800) Subject: * recog.c (push_operand, pop_operand): VOIDmode needn't match modes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aeb7ff6879c2ebde71a64c6fb8509101f11920a3;p=gcc.git * recog.c (push_operand, pop_operand): VOIDmode needn't match modes. From-SVN: r25624 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff6278307d1..6b7bb5a7299 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sun Mar 7 02:44:15 1999 Richard Henderson + + * recog.c (push_operand, pop_operand): VOIDmode needn't match modes. + Sun Mar 7 01:58:47 1999 Richard Henderson * cse.c (canon_hash): Never reject hard regs in CCmode. diff --git a/gcc/recog.c b/gcc/recog.c index 58806e60b87..e344b27e97e 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -1206,7 +1206,7 @@ push_operand (op, mode) if (GET_CODE (op) != MEM) return 0; - if (GET_MODE (op) != mode) + if (mode != VOIDmode && GET_MODE (op) != mode) return 0; op = XEXP (op, 0); @@ -1231,7 +1231,7 @@ pop_operand (op, mode) if (GET_CODE (op) != MEM) return 0; - if (GET_MODE (op) != mode) + if (mode != VOIDmode && GET_MODE (op) != mode) return 0; op = XEXP (op, 0);