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 genmatch dependency issue


Hi!

When upgrading a gcc tree < r230888 with objdir to r230888 or later
and just doing make in the gcc subdir, I'm getting errors - genmatch
complains that it doesn't know IFN_FMAX.
The problem seems to be a missing dependency, build/gencfn-macros
depends on internal-fn.def and thus cfn-operators.pd is updated,
but build/genmatch does not depend on it, even when it includes
internal-fn.def, so has not been rebuilt and fails to parse
the new cfn-operators.pd.
Fixed thusly, ok for trunk?

2015-11-26  Jakub Jelinek  <jakub@redhat.com>

	* Makefile.in (build/genmatch.o): Depend on internal-fn.def.

--- gcc/Makefile.in.jj	2015-11-18 11:19:26.000000000 +0100
+++ gcc/Makefile.in	2015-11-26 18:15:24.254279664 +0100
@@ -2598,7 +2598,7 @@ build/genmddump.o : genmddump.c $(RTL_BA
   coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
 build/genmatch.o : genmatch.c $(BCONFIG_H) $(SYSTEM_H) \
   coretypes.h errors.h $(HASH_TABLE_H) hash-map.h $(GGC_H) is-a.h \
-  tree.def builtins.def
+  tree.def builtins.def internal-fn.def
 build/gencfn-macros.o : gencfn-macros.c $(BCONFIG_H) $(SYSTEM_H)	\
   coretypes.h errors.h $(HASH_TABLE_H) hash-set.h builtins.def internal-fn.def
 

	Jakub


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