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: 1896480 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gjlay.de header.i=@gjlay.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=s5r96iK+; dkim=pass header.d=gjlay.de header.i=@gjlay.de header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=3nANpfbt; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TVsQT2MYLz23g7 for ; Thu, 8 Feb 2024 20:39:44 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 740853858291 for ; Thu, 8 Feb 2024 09:39:42 +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+incoming=patchwork.ozlabs.org@gcc.gnu.org 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