[PATCH] Fix PR bootstrap/4195
Jakub Jelinek
jakub@redhat.com
Wed Mar 20 12:12:00 GMT 2002
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
More information about the Gcc-patches
mailing list