This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Add an explicit dependency on fixinc_list
- From: Richard Sandiford <richard at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Sep 2007 15:35:09 +0100
- Subject: [committed] Add an explicit dependency on fixinc_list
stmp-int-hdrs has this dependency:
stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) $(UNWIND_H)
and uses the file fixinc_list. The dependency on fixinc_list is usually
added indirectly by $(STMP_FIXINC) -> stmp_fixinc -> fixinc_list, but
this falls down if the target overrides STMP_FIXINC with something else.
Since the use of fixinc_list is explicit in the stmp-int-hdrs commands,
it seems reasonable for it to have an explicit dependency too.
Tested on mipsisa64-elf and a port that I'm about to commit.
Installed as obvious.
Richard
gcc/
* Makefile.in (stmp-int-hdrs): Depend on fixinc_list.
Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in (revision 128492)
+++ gcc/Makefile.in (working copy)
@@ -3364,7 +3364,7 @@ gcov-dump$(exeext): $(GCOV_DUMP_OBJS) $(
# be rebuilt.
# Build the include directories.
-stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) $(UNWIND_H)
+stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) $(UNWIND_H) fixinc_list
# Copy in the headers provided with gcc.
# The sed command gets just the last file name component;
# this is necessary because VPATH could add a dirname.