This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR bootstrap/4195


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]