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 dependencies of build/gencheck.o


Hi!

This morning I've noticed a build failure, USERDEF_LITERAL_CHECK
macro wasn't defined.  The problem is that the gencheck binary
includes an array with all tree names (includes all-tree.def),
and depended on all-tree.def (which is a move-if-change file)
and $(lang_tree_files), but not on c-family/c-common.def (this problem)
and neither on tree.def.  So build/gencheck binary wasn't rebuilt
and thus what it generated didn't contain additions to those two files.

Fixed thusly, will commit as obvious after testing:

2011-10-27  Jakub Jelinek  <jakub@redhat.com>

	* Makefile.in (build/gencheck.o): Depend on tree.def and
	c-family/c-common.def.

--- gcc/Makefile.in.jj	2011-10-27 08:54:10.000000000 +0200
+++ gcc/Makefile.in	2011-10-27 09:15:18.000000000 +0200
@@ -3958,7 +3958,8 @@ build/genautomata.o : genautomata.c $(RT
   $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(VEC_H)	\
   $(HASHTAB_H) gensupport.h $(FNMATCH_H)
 build/gencheck.o : gencheck.c all-tree.def $(BCONFIG_H) $(GTM_H)	\
-	$(SYSTEM_H) coretypes.h $(lang_tree_files) gimple.def
+	$(SYSTEM_H) coretypes.h tree.def c-family/c-common.def		\
+	$(lang_tree_files) gimple.def
 build/genchecksum.o : genchecksum.c $(BCONFIG_H) $(SYSTEM_H) $(MD5_H)
 build/gencodes.o : gencodes.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
   coretypes.h $(GTM_H) errors.h gensupport.h


	Jakub


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