From patchwork Tue Jan 16 21:07:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 188617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp524460dye; Tue, 16 Jan 2024 13:08:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcN1jO/XJLgpgN52cwannI7bvz/ycss1hUuaPyf5brCBBtjPqOuR5iBYr6albuwS+zmP2m X-Received: by 2002:a05:620a:24d4:b0:783:26f3:8427 with SMTP id m20-20020a05620a24d400b0078326f38427mr9860013qkn.137.1705439280314; Tue, 16 Jan 2024 13:08:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705439280; cv=pass; d=google.com; s=arc-20160816; b=W/fRh331H6DRXKyGI1MH9Rg9t1/Gkq15yqsZ+0P2ptEHqwsPtFgi/9Z5GlwM6u1Byk Kil79/sRlcwN5ExGrNXwqnXQTl8V49nGno6yYLIEiBr2JLIp6+WJIk4EqDR6gkEbvO8K w2jokkfprtlxnB8r1Oiekpvnh2umhi8F8E/cLww8SqS8xz8/XMy3kdpnzYJF471G5chs J6jI2DskJVtbHKADVNxNNXxwx/RtXyjQhB6NuFH1ElPl2SIva2Jvp2yCrWwACc7Jfzr5 R8OarETk93jiouYoVgezcenbpqKBb8edpd6B1k0u5Jt9svlRIjRxpXm+SW5UN//Ygb5V M/3Q== ARC-Message-Signature: i=2; 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-disposition :mime-version:message-id:subject:to:from:date:arc-filter :dmarc-filter:delivered-to; bh=f8Ah3Ne3ONGxbOL8NU3TKu3HyNA6p7Zpqxwh8sf8OW4=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=QBne+dTFzDfbKPwejYpJIYN4+u2G49mnAPOd3WR6a9C9qrqU/w1hn+XL68F1gDaCG9 jISVzBLO8zbl8ARU9VyAUIOJk8zg5ca8z2Ew/XdIZ1PxlbHjukYQAQQLKkjGRXvfODDT CejHqFpSzQEN+FGGBq/gSdUGcutJKtN353AbbzJvjMSU2RYVHM90NvN8/kcjUGxO+BKJ ZC30zRZVZGlZ+Syt1FlWbnRTs6q9necMeP0ig8321EJ1HXk+fhLU/u+1w2/GgcHS/YQv Vdvqm4LbpzJxsENh0k8Dffhth6WGheQP6r2PZ8uhCeCudB1Rt2gX2zxDRgUFczpHzu7j Mptg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id h6-20020a05620a400600b007836be0249bsi1647354qko.323.2024.01.16.13.08.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 13:08:00 -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; arc=pass (i=1); 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 0CCD03858420 for ; Tue, 16 Jan 2024 21:08:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 975B03858D1E for ; Tue, 16 Jan 2024 21:07:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 975B03858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 975B03858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=173.249.48.176 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705439239; cv=none; b=ZJajmq6lwD8AsHeUGqZhDTQ9GpORmFKwTT7mNnL2V6cCT1QzouawoGEK9C9hguNl05ObY4HgBC7i6PVkefIRewqJYu+mZPXHT3GFrEoGU4eYjH7FbvNCuodlI64dVpA3qe27I/e3dFdaEOc1zeR6dPnRqXD/yzcuR9bmA46GapQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705439239; c=relaxed/simple; bh=mQVs5871F1eBh1YWeFqJJC/rnYYdIp80VdmfIzpPPxw=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=CIQZofDQU5x8kfDCwKNHEM5wucRSyVIZrILj2ouatYsYnaDmhOZ1WCXxO3vFtkdQMJKNRWLJMZSrnnRSHzBMAci4Ggv4/9GNVw2VmIu7ybAJK2w/7mOXLWAlczZgxqot1rYjZU984zOsHkHq0QHUu5Ae/lBGWFkrig+92tWDuHU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (unknown [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id 50A59160002E; Tue, 16 Jan 2024 22:07:16 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id 9866522011C; Tue, 16 Jan 2024 21:07:14 +0000 (UTC) Date: Tue, 16 Jan 2024 21:07:14 +0000 From: John David Anglin To: GCC Patches Subject: [committed] Add .data.rel.ro.local to read only sections in gcc.dg/array-quals-1.c Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, 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: 1788282698959187974 X-GMAIL-MSGID: 1788282698959187974 Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave --- Add .data.rel.ro.local to read only sections in gcc.dg/array-quals-1.c 2024-01-16 John David Anglin gcc/testsuite/ChangeLog: * gcc.dg/array-quals-1.c: Add .data.rel.ro.local to read only sections. diff --git a/gcc/testsuite/gcc.dg/array-quals-1.c b/gcc/testsuite/gcc.dg/array-quals-1.c index b9b55f774bc..e379f6121b7 100644 --- a/gcc/testsuite/gcc.dg/array-quals-1.c +++ b/gcc/testsuite/gcc.dg/array-quals-1.c @@ -30,23 +30,23 @@ cia d1 = { 7, 8 }; static cia e[2] = { { 1, 2 }, { 3, 4 } }; /* { dg-final { scan-assembler-symbol-section {^_?e1$} {^\.(const|rodata|srodata|sdata)|\[RO\]} } } */ cia e1[2] = { { 1, 2 }, { 3, 4 } }; -/* { dg-final { scan-assembler-symbol-section {^_?p$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?p$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const p = &a; -/* { dg-final { scan-assembler-symbol-section {^_?q$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?q$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const q = &b; -/* { dg-final { scan-assembler-symbol-section {^_?r$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?r$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const r = &c; -/* { dg-final { scan-assembler-symbol-section {^_?s$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?s$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const s = &d; -/* { dg-final { scan-assembler-symbol-section {^_?t$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?t$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const t = &e; -/* { dg-final { scan-assembler-symbol-section {^_?p1$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?p1$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const p1 = &a1; -/* { dg-final { scan-assembler-symbol-section {^_?q1$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?q1$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const q1 = &b1; -/* { dg-final { scan-assembler-symbol-section {^_?r1$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?r1$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const r1 = &c1; -/* { dg-final { scan-assembler-symbol-section {^_?s1$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?s1$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const s1 = &d1; -/* { dg-final { scan-assembler-symbol-section {^_?t1$} {^\.(const|rodata|srodata|sdata)|\[RW\]} } } */ +/* { dg-final { scan-assembler-symbol-section {^_?t1$} {^\.(const|rodata|srodata|sdata|data.rel.ro.local)|\[RW\]} } } */ void *const t1 = &e1;