summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 09:17:02 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 09:17:02 +0000
commit6b9a84acf842fe44ae47efb096a07df7237e5df8 (patch)
treeda86d141c635194d7149380b2a80d6375f4bb720 /gcc
parentdb7439ff199a94fd160b2f8765344338b7a65693 (diff)
downloadgcc-6b9a84acf842fe44ae47efb096a07df7237e5df8.tar.gz
* Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
rule to avoid matching inappropriate suffix rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94255 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/Makefile.in14
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 41af552bb66..194966cbb5c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-26 Alexandre Oliva <aoliva@redhat.com>
+
+ * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
+ rule to avoid matching inappropriate suffix rule.
+
2005-01-26 Jan Hubicka <jh@suse.cz>
PR tree-optimization/19421
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index fb857cf2128..c04e9bd71f6 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2814,6 +2814,20 @@ s-macro_list : $(GCC_PASSES)
$(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list
$(STAMP) s-macro_list
+# The line below is supposed to avoid accidentally matching the
+# built-in suffix rule `.o:' to build fixincl out of fixincl.o. You'd
+# expect fixincl to be newer than fixincl.o, such that this situation
+# would never come up. As it turns out, if you use ccache with
+# CCACHE_HARDLINK enabled, the compiler doesn't embed the current
+# working directory in object files (-g absent, or -fno-working-dir
+# present), and build and host are the same, fixincl for the host will
+# build after fixincl for the build machine, getting a cache hit,
+# thereby updating the timestamp of fixincl.o in the the host tree.
+# Because of CCACHE_HARDLINK, this will also update the timestamp in
+# the build tree, and so fixincl in the build tree will appear to be
+# out of date. Yuck.
+../$(build_subdir)/fixincludes/fixincl: ; @ :
+
# Build fixed copies of system files.
stmp-fixinc: gsyslimits.h macro_list \
../$(build_subdir)/fixincludes/fixincl \