Patchwork [C++] Add missing dependency on $(PARAMS_H)

login
register
mail settings
Submitter Eric Botcazou
Date Dec. 10, 2012, 7:56 p.m.
Message ID <2255137.A41PQrTeGD@polaris>
Download mbox | patch
Permalink /patch/205022/
State New
Headers show

Comments

Eric Botcazou - Dec. 10, 2012, 7:56 p.m.
When you add a new --param entry and rebuild an existing compiler, you get 
weird C++ regressions in the testsuite because of outdated object files.

Tested on x86_64-suse-linux, applied on the mainline as obvious.


2012-12-10  Eric Botcazou  <ebotcazou@adacore.com>

	* Make-lang.in (cp/typeck.o): Add dependency on $(PARAMS_H).
	(cp/name-lookup.o): Likewise.

Patch

Index: Make-lang.in
===================================================================
--- Make-lang.in	(revision 194328)
+++ Make-lang.in	(working copy)
@@ -288,7 +288,7 @@  cp/cp-objcp-common.o : cp/cp-objcp-commo
   $(CXX_PRETTY_PRINT_H) cp/cp-objcp-common.h gt-cp-cp-objcp-common.h
 cp/typeck2.o: cp/typeck2.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) \
   $(TM_P_H) $(DIAGNOSTIC_CORE_H) gt-cp-typeck2.h $(REAL_H) intl.h
-cp/typeck.o: cp/typeck.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) \
+cp/typeck.o: cp/typeck.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) $(PARAMS_H) \
   toplev.h $(DIAGNOSTIC_H) convert.h $(C_COMMON_H) $(TARGET_H) \
   c-family/c-objc.h
 cp/class.o: cp/class.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) toplev.h \
@@ -342,7 +342,7 @@  cp/cp-gimplify.o: cp/cp-gimplify.c $(CXX
 	$(TM_H) coretypes.h pointer-set.h tree-iterator.h $(SPLAY_TREE_H)
 
 cp/name-lookup.o: cp/name-lookup.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
-	$(TM_H) $(CXX_TREE_H) $(TIMEVAR_H) gt-cp-name-lookup.h \
+	$(TM_H) $(CXX_TREE_H) $(TIMEVAR_H) gt-cp-name-lookup.h $(PARAMS_H) \
 	$(DIAGNOSTIC_CORE_H) $(FLAGS_H) debug.h pointer-set.h
 
 cp/cxx-pretty-print.o: cp/cxx-pretty-print.c $(CXX_PRETTY_PRINT_H) \