From patchwork Fri Oct 25 21:09:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 2002658 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4XZwTC38vdz1xw0 for ; Sat, 26 Oct 2024 08:11:59 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6D66F3858D34 for ; Fri, 25 Oct 2024 21:11:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 994B03858CDB for ; Fri, 25 Oct 2024 21:09:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 994B03858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 994B03858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729890601; cv=none; b=Hae+LHkEdlF1/7V+ILy1Q+eUDZWl/hqOZSGejLpH/aKSbhZyu9ZpJzAJrTLX+u9u5u+frFHBMS4XlV8yWlCVUOGSai34P8pEMlYZdDw5r7tUVW3fEOKBJeQirVnTsUtVr/utW60mcYFVgAtM/1sCR2aFH3L1029u6gFnZ6gnV2g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729890601; c=relaxed/simple; bh=zosMffA3pdMH5b/CMiFNXz/Ugj+4V8mPSqcjsvCy0wU=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=ddbEFnM4bUi6Yz86rjoqEToVSSNJQPGS0uAXpwzXq+m6oxU76TJPwPm9eKXDf1NZlisaqYsb9EuEM8lVD/oo3QZCsV91qrpKOyXmpZ/vhiEceIYXBn2up1NMSfo+c60n4+iy6q2ksuwQtlgA7N1B2qgZPHwznOJ1U3otaMhSBsQ= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [COMMITTED 5/8] testsuite: lto: fix tbaa_0 test Date: Fri, 25 Oct 2024 22:09:21 +0100 Message-ID: X-Mailer: git-send-email 2.47.0 In-Reply-To: <5c58823d278db14a0670fb09b0c80fa0558d469e.1729890564.git.sam@gentoo.org> References: <5c58823d278db14a0670fb09b0c80fa0558d469e.1729890564.git.sam@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP 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 These failures were hidden until we started to run the test by fixing the filename earlier: use dg-lto directives, pass -std=gnu89 for implicit-int, and use -flto-partition=none like c-c++-common/hwasan/builtin-special-handling.c. gcc/testsuite/ChangeLog: * gcc.dg/lto/tbaa_0.c: Use dg-lto directives, pass -std=gnu89, and use -flto-partition=none. --- gcc/testsuite/gcc.dg/lto/tbaa_0.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/lto/tbaa_0.c b/gcc/testsuite/gcc.dg/lto/tbaa_0.c index 74c049671133..eb14ea62b896 100644 --- a/gcc/testsuite/gcc.dg/lto/tbaa_0.c +++ b/gcc/testsuite/gcc.dg/lto/tbaa_0.c @@ -1,5 +1,7 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -flto -fdump-tree-evrp" } */ +/* { dg-lto-do link } */ +/* We need -flto=partition=none to get the dump file for scan-tree-dump-times. */ +/* { dg-lto-options {{ -O2 -flto -flto-partition=none -fdump-tree-evrp -std=gnu89 }} } */ + typedef struct rtx_def *rtx; typedef struct cselib_val_struct { @@ -38,4 +40,4 @@ discard_useless_locs (x, info) n_useless_values++; } } -/* { dg-final { scan-tree-dump-times "n_useless_values" 2 "evrp" } } */ +/* { dg-final { scan-tree-dump-times "n_useless_values" 2 "evrp" } } */