aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2004-11-12 19:07:54 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2004-11-12 19:07:54 +0000
commit9af12c1b799458a390ca26d86970ebf1af1d8954 (patch)
treebdc443d906ec28419b924f3d6db05ef783cca315 /gcc
parente260ea9df08fa3ef608f4099d39d8d84f010e068 (diff)
downloadgcc-9af12c1b799458a390ca26d86970ebf1af1d8954.zip
gcc-9af12c1b799458a390ca26d86970ebf1af1d8954.tar.gz
gcc-9af12c1b799458a390ca26d86970ebf1af1d8954.tar.bz2
Makefile.in (macro_list): Use move-if-change to avoid spurious rebuilds.
* Makefile.in (macro_list): Use move-if-change to avoid spurious rebuilds. From-SVN: r90535
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/Makefile.in3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3710463..2b33987 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-11 Geoffrey Keating <geoffk@apple.com>
+
+ * Makefile.in (macro_list): Use move-if-change to avoid spurious
+ rebuilds.
+
2004-11-12 Mark Mitchell <mark@codesourcery.com>
PR c++/18416
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 29fe6c1..359b712 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2792,7 +2792,8 @@ macro_list : $(GCC_PASSES)
echo | $(GCC_FOR_TARGET) -E -dM - | \
sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
- sort -u > $@
+ sort -u > tmp-$@
+ $(SHELL) $(srcdir)/../move-if-change tmp-$@ $@
# Build fixed copies of system files.
stmp-fixinc: gsyslimits.h macro_list \