summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-08 09:45:39 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-08 09:45:39 +0000
commitc833363a0759014513a783b9552393b01310ab01 (patch)
tree290377fbe2844e4978de62fa00c172b54a8a18d2 /gcc
parent5280ef3b9859bb5f1dd31e589c2b829e31fc2603 (diff)
downloadppe42-gcc-c833363a0759014513a783b9552393b01310ab01.tar.gz
ppe42-gcc-c833363a0759014513a783b9552393b01310ab01.zip
* Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189356 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/Makefile.in17
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bae00c6ba3f..7341375c32d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
+
+ * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
+ gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
+
2012-07-07 Richard Earnshaw <rearnsha@arm.com>
* arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 33775ac5a6d..237f88d5e3d 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3818,23 +3818,40 @@ build/genextract.o : genextract.c $(RTL_BASE_H) $(BCONFIG_H) \
build/genflags.o : genflags.c $(RTL_BASE_H) $(OBSTACK_H) $(BCONFIG_H) \
$(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
build/gengenrtl.o : gengenrtl.c $(BCONFIG_H) $(SYSTEM_H) rtl.def
+
+# The gengtype generator program is special: Two versions are built.
+# One is for the build machine, and one is for the host to allow
+# plugins to define their types and generate the supporting GGC
+# datastructures and routines with GTY markers.
+# The host object files depend on CONFIG_H, and the build objects
+# on BCONFIG_H. For the build objects, add -DGENERATOR_FILE manually,
+# the build-%: rule doesn't apply to them.
+
gengtype-lex.o build/gengtype-lex.o : gengtype-lex.c gengtype.h $(SYSTEM_H)
gengtype-lex.o: $(CONFIG_H)
+CFLAGS-gengtype-lex.o += -DGENERATOR_FILE
build/gengtype-lex.o: $(BCONFIG_H)
+
gengtype-parse.o build/gengtype-parse.o : gengtype-parse.c gengtype.h \
$(SYSTEM_H)
gengtype-parse.o: $(CONFIG_H)
+CFLAGS-gengtype-parse.o += -DGENERATOR_FILE
build/gengtype-parse.o: $(BCONFIG_H)
+
gengtype-state.o build/gengtype-state.o: gengtype-state.c $(SYSTEM_H) \
gengtype.h errors.h double-int.h version.h $(HASHTAB_H) $(OBSTACK_H) \
$(XREGEX_H)
gengtype-state.o: $(CONFIG_H)
+CFLAGS-gengtype-state.o += -DGENERATOR_FILE
build/gengtype-state.o: $(BCONFIG_H)
+
gengtype.o build/gengtype.o : gengtype.c $(SYSTEM_H) gengtype.h \
rtl.def insn-notes.def errors.h double-int.h version.h $(HASHTAB_H) \
$(OBSTACK_H) $(XREGEX_H)
gengtype.o: $(CONFIG_H)
+CFLAGS-gengtype.o += -DGENERATOR_FILE
build/gengtype.o: $(BCONFIG_H)
+
build/genmddeps.o: genmddeps.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
errors.h $(READ_MD_H)
build/genmodes.o : genmodes.c $(BCONFIG_H) $(SYSTEM_H) errors.h \
OpenPOWER on IntegriCloud