From patchwork Sun Oct 6 20:15:05 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: 1993302 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=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 4XMD775Rmpz1xtb for ; Mon, 7 Oct 2024 07:15:47 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ED6943851C30 for ; Sun, 6 Oct 2024 20:15:43 +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 51A0C3858CD9 for ; Sun, 6 Oct 2024 20:15:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 51A0C3858CD9 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 51A0C3858CD9 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=1728245725; cv=none; b=IDsj+2uzS6FkdP+mEgeLcQOZPVDO/H76wy2mxdusk9XEkTvUhOxyW7ezcs7uA9DyJyjt0Al+4b/VWj1WCSbbpqhlKS6gHPWwxRdyqIH4el39vLmyWWe7h225U42fp3+POhbmLFWfUckFxTSa1rclmqkRHsxWwlCkQHfQj+gtFcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728245725; c=relaxed/simple; bh=qaZGN7ROzeE4RURRXzsYJf/weqXQTWb/wJjSNV+wQ0g=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=ZeCYr7p1VymWsI3qGgLO3kG5k/zcAttdai2r2+JFJrObyx4IPk+Jp2aSrcOZXvBWcEv/hWPjdoKOCVS3wqedtRMYpXY6NyFxVpP/R632trVASRPirEn9rqt1a/oQnKvWjA2FGPlAEDNN3K4ihnPXWxVTEkE+EAmwpUlQ8hSYx4s= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (bras-base-otwaon0906w-grc-03-142-126-114-136.dsl.bell.ca [142.126.114.136]) by dellerweb.de (Postfix) with ESMTPSA id 494ED1600213; Sun, 6 Oct 2024 22:15:12 +0200 (CEST) Received: by mx3210.localdomain (Postfix, from userid 1000) id 6F24ED6027A; Sun, 6 Oct 2024 16:15:05 -0400 (EDT) Date: Sun, 6 Oct 2024 16:15:05 -0400 From: John David Anglin To: GCC Patches Subject: testsuite: Require lto in three tests Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, 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 Committed as obvious. Dave --- testsuite: Require lto in three tests 2024-10-06 John David Anglin gcc/testsuite/ChangeLog: * g++.dg/cpp0x/noexcept87.C: Require lto. * g++.dg/ext/pragma-unroll-lambda-lto.C: Likewise. * gcc.dg/enum-alias-3.c: Likewise. diff --git a/gcc/testsuite/g++.dg/cpp0x/noexcept87.C b/gcc/testsuite/g++.dg/cpp0x/noexcept87.C index 339569d15ae..bb7bb605532 100644 --- a/gcc/testsuite/g++.dg/cpp0x/noexcept87.C +++ b/gcc/testsuite/g++.dg/cpp0x/noexcept87.C @@ -1,5 +1,6 @@ // PR c++/115223 // { dg-do compile { target c++11 } } +// { dg-require-effective-target lto } // { dg-additional-options -flto } template diff --git a/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C b/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C index 64cdf90f34d..ddf11730e33 100644 --- a/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C +++ b/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C @@ -1,4 +1,5 @@ // { dg-do link { target c++11 } } +// { dg-require-effective-target lto } // { dg-options "-O2 -flto -fdump-rtl-loop2_unroll" } // { dg-skip-if "requires hosted libstdc++ for cstdlib rand" { ! hostedlib } } diff --git a/gcc/testsuite/gcc.dg/enum-alias-3.c b/gcc/testsuite/gcc.dg/enum-alias-3.c index 36a4f02a455..322c8d82952 100644 --- a/gcc/testsuite/gcc.dg/enum-alias-3.c +++ b/gcc/testsuite/gcc.dg/enum-alias-3.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target lto } */ /* { dg-options "-O2 -flto" } */ typedef int *A;