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

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


On Jan  3, 2001, Phil Edwards <pedwards@disaster.jaj.com> 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  <aoliva@redhat.com>

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

Index: gcc/configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.470
diff -u -p -r1.470 configure.in
--- gcc/configure.in 2001/01/03 20:39:08 1.470
+++ gcc/configure.in 2001/01/03 23:45:10
@@ -787,12 +787,6 @@ do
 	then
 		echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
 	fi
-	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
 	done
+
+	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
 done
 
 # Truncate the target if necessary

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
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]