From patchwork Mon Feb 3 17:43:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 183044 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4252413ile; Mon, 3 Feb 2020 09:44:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxdkG2YYR1qRQKI5FmHQWIKluvON64FOdXAkHpvVWwP3HrF7ohOCytUUuVfsXAuVj0H45Hc X-Received: by 2002:a9d:6d1a:: with SMTP id o26mr8961011otp.141.1580751860696; Mon, 03 Feb 2020 09:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580751860; cv=none; d=google.com; s=arc-20160816; b=uJ/MPjb49TEUbM+0rzhnD5qoExdjJ3REY01ri18v45iZZMUgWCEKUdYCsOOMKaF/rO xY7nm3KraDxpymEKYg3Qbf9Krc6Kv/Y3DSR2zkdBhuCE4jOjHTkDmTLwMwHReFfkRw6W C48PwZsMnnVtN9uo6rlwwcffGA00mEyoJp56MNJq0eaOg1/9yLr9XUEXQZ6AMVxckGaZ pM8RiUMbtdtiTOWVs6kerwMLZlZFmOF8baCGJ5bbyhqrffGCNetMKG3vW5miIT7HPQ// o44G2N4FeVjSXzZthxu4S25qHbDfJ8R/eASX1p6i7BVhYr7ZvFuwZ1/bC5D7dkS1bHvY XJwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:date:message-id:subject:from:to :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=A+7AlCNsoiVhTRWeV8HzoKyab2SC9/DgUNISLdJvBFs=; b=pqoogARfHbW8we9afSeZzAdacEMm1UWCF4a1EBueCpe0h+w841wvCEb0sH2LAFQnTN L7kbiWJ2OThbvpj9a2a9szRNtQ04azzbGPpnAOSdkrioWmWf6rZPtvC+SbrKZIBnjYff XZ+fFigpcLmFikHLa1hNe3Z0ORBaFMSTkZ1iU37x6duIdggJwwG+MdhTsQkY+i6q4sFv o18+XywB/DWmL8AywA3xUaiQQi4kme1nSg0aKEPgrB48oVQ7XrHSdNGVnMLZhFs88PuS e3gckLwccnqIjFYNSyM4aQAPjmRK4dnVz9D+csI8i905Tlg3iL6SlVJTUzxZqS1P78sM H18g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tkuDz2jf; spf=pass (google.com: domain of gcc-patches-return-518788-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-518788-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id e1si8945211otr.8.2020.02.03.09.44.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Feb 2020 09:44:20 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-518788-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tkuDz2jf; spf=pass (google.com: domain of gcc-patches-return-518788-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-518788-patch=linaro.org@gcc.gnu.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=T0DWDBuhaolosow3uy3Bgr3NCQS683ipfxGdy/rrMyAX15Y4Bg 7mQPJKQMh+i2KaCgtOUz2P+4pK8KlDn2txqOLIK3R9uhu82nyeT2uaWvAnrZtSJJ oA/gqgycqeyIJQis6uJRYDnGyyKlV8vAsLPB2cAFvdzRhExQsuX2srBbk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=IlhprZXZJ4UWP54g8hUxAgjc21M=; b=tkuDz2jfFgGnInLT6UsT j5dS4YCs3LdW79WmmESmO1uknxUH/EM9zFIHcbQ2B0HMX+e8Wav5iU710oTlVqqy /ZAhzXQJtjdemzX+vnVN7sVDXjYpVoqGXax21C/33o40sLqdl5ZdD0a1FdiWHAmi jAIOB0LfyW652lOF6wpY3Yw= Received: (qmail 108120 invoked by alias); 3 Feb 2020 17:44:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 108112 invoked by uid 89); 3 Feb 2020 17:44:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy=AWK X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.110.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Feb 2020 17:44:02 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 829F730E; Mon, 3 Feb 2020 09:44:00 -0800 (PST) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.78.81]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2D8663F52E; Mon, 3 Feb 2020 09:44:00 -0800 (PST) To: "gcc-patches@gcc.gnu.org" From: "Richard Earnshaw (lists)" Subject: [committed] arm: Use move-if-change for updating regenerated files [PR93548] Message-ID: Date: Mon, 3 Feb 2020 17:43:59 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 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/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 \