Inspired by the t-i386 changes, the following patch moves SPARC and Solaris files over to automatic dependencies.
Bootstrapped without regression on sparc-sun-solaris2.11, verified that dependencies were generated for affected files. Ok for mainline? Rainer 2013-10-01 Rainer Orth <r...@cebitec.uni-bielefeld.de> * config/t-sol2 (sol2-c.o): Remove header dependencies. Use $(COMPILE) and $(POSTCOMPILE). (sol2-cxx.o): Likewise. (sol2-stubs.o): Likewise. (sol2.o): Likewise. * config/x-solaris (host-solaris.o): Likewise. * config/sparc/t-sparc (sparc.o): Remove. (sparc-c.o): Remove header dependencies. Use $(COMPILE) and $(POSTCOMPILE). * config/sparc/x-sparc: Likewise.
# HG changeset patch # Parent ca3146ecd0cfe562bf98a495014bbb9f65346986 Update t-sparc, t-sol2 etc. for automatic dependencies diff --git a/gcc/config/sparc/t-sparc b/gcc/config/sparc/t-sparc --- a/gcc/config/sparc/t-sparc +++ b/gcc/config/sparc/t-sparc @@ -18,19 +18,6 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -sparc.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ - $(TREE_H) $(RTL_H) $(REGS_H) hard-reg-set.h insn-config.h \ - insn-codes.h conditions.h output.h $(INSN_ATTR_H) $(FLAGS_H) \ - $(FUNCTION_H) $(EXCEPT_H) $(EXPR_H) $(OPTABS_H) $(RECOG_H) \ - $(DIAGNOSTIC_CORE_H) $(GGC_H) $(TM_P_H) debug.h $(TARGET_H) \ - $(TARGET_DEF_H) $(COMMON_TARGET_H) $(GIMPLE_H) $(TREE_PASS_H) \ - langhooks.h reload.h $(PARAMS_H) $(DF_H) $(OPTS_H) $(CONTEXT_H) \ - gt-sparc.h - -sparc-c.o: $(srcdir)/config/sparc/sparc-c.c \ - $(srcdir)/config/sparc/sparc-protos.h \ - $(CONFIG_H) $(SYSTEM_H) $(CPPLIB_H) $(FLAGS_H) \ - $(TM_P_H) coretypes.h $(TM_H) $(TREE_H) \ - $(C_COMMON_H) $(C_PRAGMA_H) - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/sparc/sparc-c.c +sparc-c.o: $(srcdir)/config/sparc/sparc-c.c + $(COMPILE) $< + $(POSTCOMPILE) diff --git a/gcc/config/sparc/x-sparc b/gcc/config/sparc/x-sparc --- a/gcc/config/sparc/x-sparc +++ b/gcc/config/sparc/x-sparc @@ -1,3 +1,4 @@ -driver-sparc.o: $(srcdir)/config/sparc/driver-sparc.c \ - $(CONFIG_H) $(SYSTEM_H) - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< +driver-sparc.o: $(srcdir)/config/sparc/driver-sparc.c + $(COMPILE) $< + $(POSTCOMPILE) + diff --git a/gcc/config/t-sol2 b/gcc/config/t-sol2 --- a/gcc/config/t-sol2 +++ b/gcc/config/t-sol2 @@ -17,22 +17,21 @@ # <http://www.gnu.org/licenses/>. # Solaris-specific format checking and pragmas -sol2-c.o: $(srcdir)/config/sol2-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ - tree.h c-family/c-format.h $(C_PRAGMA_H) $(C_COMMON_H) $(CPPLIB_H) \ - intl.h $(TM_H) $(TM_P_H) - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< +sol2-c.o: $(srcdir)/config/sol2-c.c + $(COMPILE) $< + $(POSTCOMPILE) # Solaris-specific C++ mangling. -sol2-cxx.o: $(srcdir)/config/sol2-cxx.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ - tree.h cp/cp-tree.h $(TM_H) $(TM_P_H) - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< +sol2-cxx.o: $(srcdir)/config/sol2-cxx.c + $(COMPILE) $< + $(POSTCOMPILE) # Corresponding stub routines. -sol2-stubs.o: $(srcdir)/config/sol2-stubs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ - tree.h $(TM_H) $(TM_P_H) - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< +sol2-stubs.o: $(srcdir)/config/sol2-stubs.c + $(COMPILE) $< + $(POSTCOMPILE) # Solaris-specific attributes -sol2.o: $(srcdir)/config/sol2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ - tree.h output.h $(TM_H) $(TARGET_H) $(TM_P_H) $(GGC_H) $(HASH_TABLE_H) - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< +sol2.o: $(srcdir)/config/sol2.c + $(COMPILE) $< + $(POSTCOMPILE) diff --git a/gcc/config/x-solaris b/gcc/config/x-solaris --- a/gcc/config/x-solaris +++ b/gcc/config/x-solaris @@ -1,4 +1,3 @@ -host-solaris.o : $(srcdir)/config/host-solaris.c $(CONFIG_H) $(SYSTEM_H) \ - coretypes.h hosthooks.h hosthooks-def.h $(HOOKS_H) - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(srcdir)/config/host-solaris.c +host-solaris.o: $(srcdir)/config/host-solaris.c + $(COMPILE) $< + $(POSTCOMPILE)
-- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University