aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2020-02-03 17:40:55 +0000
committerRichard Earnshaw <rearnsha@arm.com>2020-02-03 17:40:55 +0000
commit492c63e5b72c3497160e2c2e113fb91644b3570e (patch)
tree1e2b685c1139ad325e71be233ef8381d3d4cd36c
parent591f869ad70ba2b5cf1d8a8b57529142cc0d0554 (diff)
downloadgcc-492c63e5b72c3497160e2c2e113fb91644b3570e.zip
gcc-492c63e5b72c3497160e2c2e113fb91644b3570e.tar.gz
gcc-492c63e5b72c3497160e2c2e113fb91644b3570e.tar.bz2
arm: Use move-if-change for updating regenerated files [PR93548]
The t-arm make fragment currently uses 'mv' to update some files that are automatically regenerated, but this causes problems on read-only filesystems if the date stamps are incorrect and the files have not really changed. So use move-if-change instead. PR target/93548 * config/arm/t-arm: ($(srcdir)/config/arm/arm-tune.md, $(srcdir)/config/arm/arm-tables.opt): Use move-if-change.
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/arm/t-arm6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fef79bb..a855904 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-03 Richard Earnshaw <rearnsha@arm.com>
+
+ PR target/93548
+ * config/arm/t-arm: ($(srcdir)/config/arm/arm-tune.md)
+ ($(srcdir)/config/arm/arm-tables.opt): Use move-if-change.
+
2020-02-03 Andrew Stubbs <ams@codesourcery.com>
* config.gcc: Remove "carrizo" support.
diff --git a/gcc/config/arm/t-arm b/gcc/config/arm/t-arm
index e8483d4..b883f79 100644
--- a/gcc/config/arm/t-arm
+++ b/gcc/config/arm/t-arm
@@ -70,13 +70,15 @@ $(srcdir)/config/arm/arm-tune.md: $(srcdir)/config/arm/parsecpu.awk \
$(srcdir)/config/arm/arm-cpus.in
$(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=md \
$(srcdir)/config/arm/arm-cpus.in > arm-tune.new
- mv arm-tune.new $(srcdir)/config/arm/arm-tune.md
+ $(srcdir)/../move-if-change arm-tune.new \
+ $(srcdir)/config/arm/arm-tune.md
$(srcdir)/config/arm/arm-tables.opt: $(srcdir)/config/arm/parsecpu.awk \
$(srcdir)/config/arm/arm-cpus.in
$(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=opt \
$(srcdir)/config/arm/arm-cpus.in > arm-tables.new
- mv arm-tables.new $(srcdir)/config/arm/arm-tables.opt
+ $(srcdir)/../move-if-change arm-tables.new \
+ $(srcdir)/config/arm/arm-tables.opt
arm-cpu.h: s-arm-cpu ; @true
s-arm-cpu: $(srcdir)/config/arm/parsecpu.awk \