From patchwork Mon Jan 22 19:11:33 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: 190349 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2780936dyb; Mon, 22 Jan 2024 11:12:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhuNbFA2K/+N/z0UyCynlqNMp7AmnnY5oQ4ewXBRS8H4wquU6zjw5TBc/GkQ95iHOMr3Yn X-Received: by 2002:a05:6808:4d8:b0:3bd:692d:b234 with SMTP id a24-20020a05680804d800b003bd692db234mr2279734oie.46.1705950777592; Mon, 22 Jan 2024 11:12:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705950777; cv=pass; d=google.com; s=arc-20160816; b=pAvFiNjy0awTQGw9wWBp48IoU5+GklVRDP3JYfCbhRPuJOBzey9/M7TikzmS3RYQBL 5jIUT91vT7obG0xf7nWGr42Nm+KEWRsagmTnWVbqAhZ41PeGvrqTSfONeuxvH5xTqLVp UQErcHAwNJo4E1jcK2/w7KaEhh39E2k3g7CJn3ni9+fcLCkz7a18t3UDB+kYBfSfN93v 8dBkAK+49mf+AWCO6MacmGVTNDfLRh4xkkHtCceUz2bD2B2JKL3HBs1aMoJpo5hO6KvG ipoIIwttyJuDsPOepm8ax0LcZeIP4EQqt6slpu4ECb0t1L1qIc0LENioGpGjrXVx3Qaa qLqw== 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=W96H2Dc2E5ZUyF1eHPdnrNc9z2jGaHuy8A/v68p6J2Y=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=rpwEwJtuayKWTYc7ogLmA9HjP6Uk+OIeiRxatHhHJ9M8bUdFTfTbgiMl9CcU3oNQMK aPD8cmse7n7rHaFN3JlDB5Wo8dmTMfIa4iweuAnnYWvMl6s+bByg6C0ejsbYbxfiIrPF 5Fiqp6evPszmf37ywcYFSzXvTHudxPPAMa28d1zqjA8ZCt4eFni3mv6T2rVjZlEhqO3U x8Yulvo6QKEDfSc5q5kBmaeDCIP2PBb+J+owp7hz+EoTKSUs/6LAWJSUEgojIzdcdJFq OsVffRdjxefS15r7/gnWAhB4+ZuxW872z7hPREn40lDQuQDcJObDduxaMU4JH3fi8qnT DQjQ== 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 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id x22-20020a05622a001600b0042a3c052248si3300826qtw.314.2024.01.22.11.12.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:12:57 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; 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 8.43.85.97 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 497543858C5E for ; Mon, 22 Jan 2024 19:12:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (unknown [IPv6:2a02:c207:3003:236::1]) by sourceware.org (Postfix) with ESMTPS id 212CF385841F for ; Mon, 22 Jan 2024 19:11:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 212CF385841F 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 212CF385841F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:c207:3003:236::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705950710; cv=none; b=mAMJwgEVPMLnE5KV7wXkvazuSdQeIM31U7usZi5LlUJvrCikozNoab0kyAvXeE6hK8SoXZZIOu6uXdvrUITbTh3eb4hw4Mf3lppwrUrP55AAn3cg8Gb+d6sYhfvPnpqtd82oDg0VV5/qbXYBg0yvVz2TlYnYGLY4ciOj/3g/TxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705950710; c=relaxed/simple; bh=cD4Sdh52VXZMMXOlWMcrU33cLkegYIfoUxBbnG8KSzQ=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=ravg8JDWox3Sh5uVoOaNaO0NV7ME6b2tOVXD5+bZR4Q9PexS3PFm2EPVcUobtgg9YFHMh7DP3Dz5vupFsV6Ha7HPkx58KBRoUw+cE6j/VbQJmbt2RiyekeWHh573FOpEISWKOPuKm4/6HwlFLam6Op5AXgBGI3etjSXSil58WOc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (bras-base-otwaon0906w-grc-03-142-126-114-79.dsl.bell.ca [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id 4B84916001D8; Mon, 22 Jan 2024 20:11:46 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id 4678C22012C; Mon, 22 Jan 2024 19:11:34 +0000 (UTC) Date: Mon, 22 Jan 2024 19:11:33 +0000 From: John David Anglin To: GCC Patches Subject: [committed] Add -gno-strict-dwarf to dg-options in various btf enum tests Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.6 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: 1788819042426811090 X-GMAIL-MSGID: 1788819042426811090 Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave --- Add -gno-strict-dwarf to dg-options in various btf enum tests The -gno-strict-dwarf option is needed to ensure enum signedness is added to type_die. 2024-01-22 John David Anglin gcc/testsuite/ChangeLog: PR debug/113382 * gcc.dg/debug/btf/btf-bitfields-3.c: Add -gno-strict-dwarf option to dg-options. * gcc.dg/debug/btf/btf-enum-1.c: Likewise. * gcc.dg/debug/btf/btf-enum-small.c: Likewise. * gcc.dg/debug/btf/btf-enum64-1.c: Likewise. diff --git a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c index 78b8b7d49ad..08622b771e6 100644 --- a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c +++ b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c @@ -14,7 +14,7 @@ */ /* { dg-do compile } */ -/* { dg-options "-O0 -gbtf -dA" } */ +/* { dg-options "-O0 -gbtf -gno-strict-dwarf -dA" } */ /* Enum with 4 members. */ /* { dg-final { scan-assembler-times "\[\t \]0x6000004\[\t \]+\[^\n\]*btt_info" 1 } } */ diff --git a/gcc/testsuite/gcc.dg/debug/btf/btf-enum-1.c b/gcc/testsuite/gcc.dg/debug/btf/btf-enum-1.c index 021ce0345e4..7873c8837a0 100644 --- a/gcc/testsuite/gcc.dg/debug/btf/btf-enum-1.c +++ b/gcc/testsuite/gcc.dg/debug/btf/btf-enum-1.c @@ -1,7 +1,7 @@ /* Test BTF generation for enums. */ /* { dg-do compile } */ -/* { dg-options "-O0 -gbtf -fno-short-enums -dA" } */ +/* { dg-options "-O0 -gbtf -gno-strict-dwarf -fno-short-enums -dA" } */ /* { dg-final { scan-assembler-times "\[\t \]0x6000004\[\t \]+\[^\n\]*btt_info" 1 } } */ /* { dg-final { scan-assembler-times "\[\t \]0x86000003\[\t \]+\[^\n\]*btt_info" 1 } } */ diff --git a/gcc/testsuite/gcc.dg/debug/btf/btf-enum-small.c b/gcc/testsuite/gcc.dg/debug/btf/btf-enum-small.c index eb8a1bd2c43..ccc92c92ba9 100644 --- a/gcc/testsuite/gcc.dg/debug/btf/btf-enum-small.c +++ b/gcc/testsuite/gcc.dg/debug/btf/btf-enum-small.c @@ -1,7 +1,7 @@ /* Test BTF generation for small enums. */ /* { dg-do compile } */ -/* { dg-options "-O2 -gbtf -dA" } */ +/* { dg-options "-O2 -gbtf -gno-strict-dwarf -dA" } */ /* { dg-final { scan-assembler-not "bte_value_lo32" } } */ /* { dg-final { scan-assembler-not "bte_value_hi32" } } */ diff --git a/gcc/testsuite/gcc.dg/debug/btf/btf-enum64-1.c b/gcc/testsuite/gcc.dg/debug/btf/btf-enum64-1.c index 5d1487c1183..3ba885af17f 100644 --- a/gcc/testsuite/gcc.dg/debug/btf/btf-enum64-1.c +++ b/gcc/testsuite/gcc.dg/debug/btf/btf-enum64-1.c @@ -1,7 +1,7 @@ /* Test BTF generation for 64 bits enums. */ /* { dg-do compile } */ -/* { dg-options "-O0 -gbtf -dA" } */ +/* { dg-options "-O0 -gbtf -gno-strict-dwarf -dA" } */ /* { dg-final { scan-assembler-times "\[\t \].size\[\t \]_?myenum1,\[\t \]8" 1 } } */ /* { dg-final { scan-assembler-times "\[\t \].size\[\t \]_?myenum2,\[\t \]8" 1 } } */