This is the mail archive of the 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]

Re: scores of unrecognized names in gnu/linux insn-recog.c

On Jan  3, 2001, Phil Edwards <> wrote:

> Current CVS under i686-pc-linux-gnu is doing strange things with genrecog.
> Any ideas?  It worked this morning...

Oops.  My fault.  I should have tested my previous patch on a
machine with EXTRA_CC_MODES :-(

I could swear I had tested it on both x86 native and cross sh-elf, but
apparently I tested only the latter :-(

Sorry about that.  Fixed thusly.  Tested on GNU/Linux/x86.

Index: gcc/ChangeLog
from  Alexandre Oliva  <>

	* (tm.h): Include isns-codes.h last.
	* configure: Rebuilt.

Index: gcc/
RCS file: /cvs/gcc/egcs/gcc/,v
retrieving revision 1.470
diff -u -p -r1.470
--- gcc/ 2001/01/03 20:39:08 1.470
+++ gcc/ 2001/01/03 23:45:10
@@ -787,12 +787,6 @@ do
 		echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
-	if test $link = tm.h
-	then
-		echo "#ifndef GENERATOR_FILE" >>$link
-		echo "#include \"insn-codes.h\"" >>$link
-		echo "#endif" >>$link
-	fi
 	for file in `eval echo '$'$var`; do
 		case $file in
@@ -817,6 +811,15 @@ do
 		echo "#define $def" >>$link
 		echo "#endif" >>$link
+	if test $link = tm.h
+	then
+		# Include insn-codes.h last, because it includes machmode.h,
+		# and we want EXTRA_CC_MODES to be taken into account.
+		echo "#ifndef GENERATOR_FILE" >>$link
+		echo "#include \"insn-codes.h\"" >>$link
+		echo "#endif" >>$link
+	fi
 # Truncate the target if necessary

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

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