From patchwork Thu Feb 8 09:39:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 198257 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp50507dyd; Thu, 8 Feb 2024 01:40:06 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCWPh7RbYK+pW0uceMbvHzxHs7yKJV1rDAx4lbTkcS3dfeN98wMLelOhM46zGKQcAv/3yv6GVr7WfUVIeY645MKDFvROyg== X-Google-Smtp-Source: AGHT+IGAJV4+oiEZGPypdVWXxLhUCeEml/il6hKqgq6PX4HX3N46VroWXzBrC7rpBrz1ttZf5y7a X-Received: by 2002:ac8:7ef3:0:b0:42a:5164:6033 with SMTP id r19-20020ac87ef3000000b0042a51646033mr7527103qtc.65.1707385206474; Thu, 08 Feb 2024 01:40:06 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1707385206; cv=pass; d=google.com; s=arc-20160816; b=1E4qZs75VZU+JmBHT6idMWz+yYHhEVDhhKg/vBi7+ITPQ33IIo5/RmrcSF2IuqEdnB KNu7QjwZraPnew61ja5gHM+p7GVAvmxm7NrnIg3qp3fjZDng+opHjP+NssI1/3Qu+prf hWxaj1fVviuWM60zh4zSaPwnaranWK2mfDxi7lFfH7mDpm+TdhmzhKV6zLuOy5E+Hb4m b0k/PQfZv4cutQ/NUfwsk2qYcoE6P9LZVRHryipzcSJOkoHp+3YSVEGoWBFxBRwwn7Yl oFfGdXUioMp5ntICqp1J3IIQmDHBWVB0LXENXHZ2uYPwvK61twwJ2jwq6fUbIj/WqPcI 0IVw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :subject:to:from:content-language:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:arc-filter:dmarc-filter :delivered-to; bh=hCde+AIRbqOQIi0Sf68kHNuHGobQqcjtPn4VLwK4oXU=; fh=4m0WmOOdilWx4YzVI90Bb5WKAUZjkhL34w45AFvKzfQ=; b=nZ5v0ZTdfmQx6zSy0Pc2c3IAfv/1PORgTNyuy21LNFRwcupDDcEYj2Tl3WWQXASoAC uiMlkDA4Br5wuXiYc3XOtZuqVV6goPUYQM7NvtnBwJMOm/Q5DK1eB6m6PlZV72d79zsQ 4Jm2/JCIbJTzR/UyV9EFX71nErSJPnnXNgoRifuXUm46+D180vO+x+Cy3nRChcXBRxYM H64pU73z29JIWJj0BR2BtXqa/gO86ino4asqJAG5ZUuTp1CCtu51Q/mnsw7Xiu/qD4Av JtMUTq5u9IbaMcIn9F6U541e8Y/RpNRcx6ZJy+L4HWhBFkxtGKpX6ehYaYrX9cgLwnIf ivOg==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@gjlay.de header.s=strato-dkim-0002 header.b=s5r96iK+; dkim=neutral (no key) header.i=@gjlay.de header.s=strato-dkim-0003; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" X-Forwarded-Encrypted: i=3; AJvYcCUU1phTrMQG8JSJFqwxxdQ3Zg0UQoNX6VZWykT7TjVRHWKhHgA+rTymie2d5COqVS5RYPFKzAm+15PSJK6mCnqb5r5egg== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e17-20020a05622a111100b0042c12076e21si2984185qty.420.2024.02.08.01.40.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 01:40:06 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gjlay.de header.s=strato-dkim-0002 header.b=s5r96iK+; dkim=neutral (no key) header.i=@gjlay.de header.s=strato-dkim-0003; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C47C385828F for ; Thu, 8 Feb 2024 09:40:06 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.22]) by sourceware.org (Postfix) with ESMTPS id E5B843858C60 for ; Thu, 8 Feb 2024 09:39:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E5B843858C60 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E5B843858C60 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=85.215.255.22 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1707385152; cv=pass; b=hxoZbpNS6I9WgzX7Guh7jD3ZSYyUWaK2D0HMKVqIkhJSyOkkeAQ0gP53JJXWjQ2wpM9LPWPNUHvoJKujqB6s8Nq3ZSv/utbamm4OzowiyYFiRztnFlnSCtt1V11AM6zj/Qb3MNFTYISTuZiz/Dk4m1t9x4TX8kWDU8piW0tf1Cg= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1707385152; c=relaxed/simple; bh=oOGxpYSIzpGkTpTgnz85wT2kg7l6QOVMp/Ssb2P8MU4=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:From: To:Subject; b=n6v42GxmC+ghhk6IEU7hs9PBKS+VeXKJf7AWgRvTwcmQIs1YkmwILqC2wYOdFzp87z4c4l3WuUsxSJZv3ygOsm964aPbH5SiOKfMiAwPFDWg+owB/MOSVNQTGaqjPb47f2kkY0L9SwSTZhsRSrEXF6U3YVV6j8mCnQVuGPeI1GA= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1707385142; cv=none; d=strato.com; s=strato-dkim-0002; b=hKfSMGGTZmAsNvUc01UkXZCGa2ZuWmaaT9vFGR1mnQwsaI5DVgugRYcaJ4Nubu++wC ALHDnqL0Uc1acpSdZZx7Ab5RQvnylYWz6/1ik9SGZjBUdaChf9cnM2FBM6DtlweGF5n4 4EmtzcRpJU7bLvLzsd2Cf6Zz/PbCVuovYN/w4I7NT1l693RgTC87aJmS6iONGkS7Ufqw RT5M8eWmDUwAKRQOR2RbQDJTQ4rzdmtQVEacZALfoiaFEYbdCScvBJWirrJMaj9B0Tsb c7CUZdCBUXLeuvO7W9bk8JdFFcl+UIuTUwcvmAABKx4eqJ/HQJDaFsg8BzqW5Gf0r9Lp AR9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1707385142; s=strato-dkim-0002; d=strato.com; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=hCde+AIRbqOQIi0Sf68kHNuHGobQqcjtPn4VLwK4oXU=; b=L7x2cHYK6eEqpafWhLJIozR6rOet9RnH1NxG3YZqE8rP9Ab1EGL2KAMYsQvA3BE//W Dp4GgYGEQLHATLUGjMdswSmE73h3TV9kA4JcGvQ8NkfkG6MgRL5IBCZbiTgB+SznWILt 0gGypUgFDXoHS0GYOtNNEewYQ3Ozao4CBbz/Q0QMQB06ywwNseTQf3gOwq2noHqzStdo j4eQlBu1QLXj8lWVtm4YJQso1v4kDga+vC9WYocMTx2nthkrr03wbG8LDoFci/T9tubC OKE8oeGk8BG1Xg0rDr8c+vC0hLnoMjbQuPzeLD/MQbEy+LzYwhEVr7QOlflNjYRgQoFI rsog== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1707385142; s=strato-dkim-0002; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=hCde+AIRbqOQIi0Sf68kHNuHGobQqcjtPn4VLwK4oXU=; b=s5r96iK+mT8Q6hDszkHVl+T8Q0ghST8z/D3u4PjWHzHtBb/xINnFLrStyBDVSSfWtF PrP/mzoJYLpU8dmsF4lL1wCtGAK1x4bwkTwzYrymjUNyVXwFkjfdp4KtQ8QRIZngxEzn ZUBeWoNMkg9apEESBHqFRWDyn3i+rXCKUXsbssahhdCgJX8uEoqlJps1Djvcm/Q2dcbe mzhnJMgYDZNTQcSDmyiJtGdeHOZPOFVMuTf7Naswou5hQVlGkaOVkQq1Wf5iO2lTie9Y yonQ1RR9KPYT1M3Uhljyj9evF1Sw7CdUuilPnLfk3Qq+hD7EnMNhi9t4LWkPwlCNpY4H oo4A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1707385142; s=strato-dkim-0003; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=hCde+AIRbqOQIi0Sf68kHNuHGobQqcjtPn4VLwK4oXU=; b=3nANpfbtedXQKckuHNtMpdlwE0nPmCj8hkvBx5rEBo5+AtIIwdyxQNgNSxUpPx3N1J HNLQjTxsl7r51k50+rCQ== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkSgcSjpmy9KwoMJ/K0VA==" Received: from [192.168.2.102] by smtp.strato.de (RZmta 49.11.2 DYNA|AUTH) with ESMTPSA id Lb68c60189d2RhU (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Thu, 8 Feb 2024 10:39:02 +0100 (CET) Message-ID: Date: Thu, 8 Feb 2024 10:39:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Georg-Johann Lay To: gcc-patches@gcc.gnu.org Subject: [patch,avr,applied]: Rename %_misc specs. X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790323150451752347 X-GMAIL-MSGID: 1790323150451752347 This renames pecs like cc1_misc to cc1_rodata_in_ram to point out their purpose. Johann --- AVR: Rename device-specs %_misc to %_rodata_in_ram. gcc/ * config/avr/gen-avr-mmcu-specs.cc: Rename spec cc1_misc to cc1_rodata_in_ram. Rename spec link_misc to link_rodata_in_ram. Remove spec asm_misc. * config/avr/specs.h: Same. diff --git a/gcc/config/avr/gen-avr-mmcu-specs.cc b/gcc/config/avr/gen-avr-mmcu-specs.cc index 02778aa3ce8..06d9d3c8d7d 100644 --- a/gcc/config/avr/gen-avr-mmcu-specs.cc +++ b/gcc/config/avr/gen-avr-mmcu-specs.cc @@ -294,7 +294,7 @@ print_mcu (const avr_mcu_t *mcu) : "\t%{mabsdata}"); // -m[no-]rodata-in-ram basically affects linking, but sanity-check early. - fprintf (f, "*cc1_misc:\n\t%%(check_rodata_in_ram)\n\n"); + fprintf (f, "*cc1_rodata_in_ram:\n\t%%(check_rodata_in_ram)\n\n"); // avr-gcc specific specs for assembling / the assembler. @@ -319,8 +319,6 @@ print_mcu (const avr_mcu_t *mcu) ? "\t%{mno-skip-bug}" : "\t%{!mskip-bug: -mno-skip-bug}"); - fprintf (f, "*asm_misc:\n" /* empty */ "\n\n"); - // avr-specific specs for linking / the linker. int wrap_k = @@ -361,7 +359,7 @@ print_mcu (const avr_mcu_t *mcu) } // -m[no-]rodata-in-ram affects linking. Sanity check its usage. - fprintf (f, "*link_misc:\n\t%%(check_rodata_in_ram)\n\n"); + fprintf (f, "*link_rodata_in_ram:\n\t%%(check_rodata_in_ram)\n\n"); // Specs known to GCC. diff --git a/gcc/config/avr/specs.h b/gcc/config/avr/specs.h index 574402035bc..0ccc37b8844 100644 --- a/gcc/config/avr/specs.h +++ b/gcc/config/avr/specs.h @@ -36,7 +36,7 @@ along with GCC; see the file COPYING3. If not see "%(cc1_errata_skip) " \ "%(cc1_rmw) " \ "%(cc1_absdata) " \ - "%(cc1_misc) " + "%(cc1_rodata_in_ram) " #undef CC1PLUS_SPEC #define CC1PLUS_SPEC \ @@ -54,8 +54,7 @@ along with GCC; see the file COPYING3. If not see "%(asm_relax) " \ "%(asm_rmw) " \ "%(asm_gccisr) " \ - "%(asm_errata_skip) " \ - "%(asm_misc) " + "%(asm_errata_skip) " #define LINK_RELAX_SPEC \ "%{mrelax:--relax} " @@ -67,7 +66,7 @@ along with GCC; see the file COPYING3. If not see "%(link_text_start) " \ "%(link_relax) " \ "%(link_pmem_wrap) " \ - "%(link_misc) " \ + "%(link_rodata_in_ram) " \ "%{shared:%eshared is not supported} " #undef LIB_SPEC