From: Richard Earnshaw Date: Mon, 3 Feb 2020 17:40:55 +0000 (+0000) Subject: arm: Use move-if-change for updating regenerated files [PR93548] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=492c63e5b72c3497160e2c2e113fb91644b3570e;p=gcc.git 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. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fef79bb44d5..a8559046244 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-02-03 Richard Earnshaw + + 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 * config.gcc: Remove "carrizo" support. diff --git a/gcc/config/arm/t-arm b/gcc/config/arm/t-arm index e8483d45688..b883f796956 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 \