This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR bootstrap/4195
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Mar 2002 21:06:34 +0100
- Subject: [PATCH] Fix PR bootstrap/4195
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
mn10200 bootstrap failure turned to be insn-opinit.c missing most of PSImode
expanders. The problem is that since Pmode was added to machmode.def,
unless $I or $P, "p" is prefix of all partial int modes like "psi" etc.
Ok to commit?
2002-03-20 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/4195
* genopinit.c (gen_insn): Don't consider Pmode when creating optabs.
--- gcc/genopinit.c.jj Tue Dec 4 11:21:26 2001
+++ gcc/genopinit.c Wed Mar 20 21:09:05 2002
@@ -214,6 +214,9 @@ gen_insn (insn)
CC modes (as it should be). */
for (i = ((int) MAX_MACHINE_MODE) - 1; i >= 0; i--)
{
+ /* Don't consider Pmode. */
+ if (i == (int) Pmode)
+ continue;
for (p = GET_MODE_NAME(i), q = np; *p; p++, q++)
if (TOLOWER (*p) != *q)
break;
Jakub