From patchwork Wed Aug 31 20:10:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 874 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp384970wro; Wed, 31 Aug 2022 13:12:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YgPscgwi59WHhYsgVuwBwRNJ2AmrtsQJnXfmhJgE0AbEK1DT9RxxIMeLsEbxGF/xjqXaK X-Received: by 2002:aa7:cdc8:0:b0:447:f0cf:8de with SMTP id h8-20020aa7cdc8000000b00447f0cf08demr21434003edw.131.1661976752513; Wed, 31 Aug 2022 13:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661976752; cv=none; d=google.com; s=arc-20160816; b=jJ8nf2f0/RWfFsviKZYFyvmRSg9/llXrZ/fH2T8CGgFdRIVUZ2Uag6oFtWz1j+5W+q OcieHa31hROpR37g3xmBAmK3+fBy6rhJ94mzE22UXSwFz521v2JkvJIb+KA60oRyJmAx ZxMJyJll9kML0x0wOibCjFOW9QQrRQwwKim/cY2QZcaVER4Cj9EIt2shNUvaSKasedAL ngBYdGbERaOyMWxTdG/U1Nw3CRf5AQEqUPH8MpBsH9x7fhm4N3i94PDAJ23ytevg0qkQ Km8jKDaAxbFA/NsZmY8ghLMCrk4etf3bLECW0DH8ksfr7mpZbeagBQib3W53oyOKsVpV y+bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=hYh7Ly1vFO/zIt7Kn3di14tVAxWad2dywbu41rKJyQU=; b=Bjwu3bPn7ooA4lIAvFgGDvUtNvSL7RIpg+502PKg0i2h20ps/oIh8ZQn6aAoDz6LMX 2GD5cVzOFHXgWhj+vbiA9kMLIsTMQvRziN9TIOyNeqivnb6dao0yLvsEixeglpynA3LJ GjYb2EBAmRgHFwxkNqHgnDz27R6na30t+EeGDVwQ7qPUQd7LP79PTIH2kTZcAgmi0Qpl A94XJquc2RJJCbFemC4kxZrt+zRVrCgZw4uzshBoRcL3WIde/x+dIMXrQ2DlGKLoDSTD dPkmLtsTT4ogKrbuNjiS6Qb58wetKaHXnsZrEo6qZRN9Z66ZllsKkNkntDOY7I8064t2 +pcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=fxYih56O; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id y22-20020a056402359600b0043d00293d23si147830edc.391.2022.08.31.13.12.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Aug 2022 13:12:32 -0700 (PDT) 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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=fxYih56O; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 564FA385140B for ; Wed, 31 Aug 2022 20:11:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 564FA385140B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661976700; bh=hYh7Ly1vFO/zIt7Kn3di14tVAxWad2dywbu41rKJyQU=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=fxYih56OFadxTxlgpcuLmb5F8vovnkrg8npgQ/Q53svEBhCk0TUYxIznY45wj4mPL RzxTOoAylo1VoIHlnijEjC1TGy427pI/kO7/fthmEVtnTcqSPvq6dkfPy9BvYBhIsS 5hsDX7ukjHbPjEnB+voH62Q/rQDVFwYPSxSjps4Q= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 7A3BC38515DF for ; Wed, 31 Aug 2022 20:10:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7A3BC38515DF Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-63-cEct_824OkGUsp9OSILFow-1; Wed, 31 Aug 2022 16:10:51 -0400 X-MC-Unique: cEct_824OkGUsp9OSILFow-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 875EE811E80; Wed, 31 Aug 2022 20:10:51 +0000 (UTC) Received: from localhost (unknown [10.33.36.187]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E01D2026D4C; Wed, 31 Aug 2022 20:10:51 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix warning regression due to std::string changes [PR106795] Date: Wed, 31 Aug 2022 21:10:50 +0100 Message-Id: <20220831201050.159907-1-jwakely@redhat.com> In-Reply-To: <20220826201638.214427-1-jwakely@redhat.com> References: <20220826201638.214427-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1742708934889332537?= X-GMAIL-MSGID: =?utf-8?q?1742708934889332537?= I missed this testsuite fix in the libstdc++ commit. Tested x86_64-linux, pushed to trunk. -- >8 -- std::string now has [[nodiscard]] attributes on most members, causing -Wunused-result warnings for this test. gcc/testsuite/ChangeLog: PR testsuite/106795 * g++.dg/tree-ssa/empty-loop.C: Use -Wno-unused-result. --- gcc/testsuite/g++.dg/tree-ssa/empty-loop.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C b/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C index 6b1e879e6a9..dca7868f3c9 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C +++ b/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-cddce2 -ffinite-loops" } */ +/* { dg-options "-O2 -fdump-tree-cddce2 -ffinite-loops -Wno-unused-result" } */ #include #include