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] rtl.h: Include insn-config.h.


Hi,

Attached is a patch to include insn-config.h in rtl.h.  This patch is
an improved version of

http://gcc.gnu.org/ml/gcc-patches/2003-01/msg02582.html

For justification, please see the above message.

Tested on h8300 port.  OK to apply?

Kazu Hirata

2003-02-02  Kazu Hirata  <kazu@cs.umass.edu>

	* Makefile.in (RTL_BASE_H): Add insn-config.h.
	* rtl.h: Include insn-config.h.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.985
diff -u -r1.985 Makefile.in
--- Makefile.in	1 Feb 2003 18:59:40 -0000	1.985
+++ Makefile.in	2 Feb 2003 14:16:05 -0000
@@ -592,7 +592,7 @@
 LANGHOOKS_DEF_H = langhooks-def.h $(HOOKS_H)
 TARGET_DEF_H = target-def.h $(HOOKS_H)
 MACHMODE_H = machmode.h machmode.def @extra_modes_file@
-RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H)
+RTL_BASE_H = rtl.h rtl.def insn-config.h $(MACHMODE_H)
 RTL_H = $(RTL_BASE_H) genrtl.h
 PARAMS_H = params.h params.def
 TREE_H = tree.h tree.def $(MACHMODE_H) tree-check.h version.h builtins.def \
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.h,v
retrieving revision 1.382
diff -u -r1.382 rtl.h
--- rtl.h	24 Jan 2003 22:45:57 -0000	1.382
+++ rtl.h	2 Feb 2003 14:16:06 -0000
@@ -24,6 +24,11 @@
 
 struct function;
 
+/* We need to include insn-config.h for HAVE_cc0.  */
+#ifndef GENERATOR_FILE
+#include "insn-config.h"
+#endif GENERATOR_FILE
+
 #include "machmode.h"
 
 #undef FFS  /* Some systems predefine this symbol; don't let it interfere.  */


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