From patchwork Tue Oct 4 14:11:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp149334wrs; Tue, 4 Oct 2022 07:14:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZdhLLq6cYnfDiEHY7TY0IVAfgsAxbPSn08j56eq4MN+ZWk+d5P6Qx6FZGgz8PIQPkUCcJ X-Received: by 2002:a17:907:e8c:b0:78a:7b6f:fe7 with SMTP id ho12-20020a1709070e8c00b0078a7b6f0fe7mr9766021ejc.54.1664892867328; Tue, 04 Oct 2022 07:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892867; cv=none; d=google.com; s=arc-20160816; b=UrX4w2BHe0GhfiQmdPVO8fSzkayzuYFabSIixEpoRsm6gyvdvcpzYL5utHyLyrq2wk nr6DL5eFg2CrYFfpWl0N9dbPi/YqIPs8msr03KbeBOR8x0j5X+O+XFCcfj1JKkNc4SCa 7TC2syDeE4obtlnks/dydY1AoBXGiMkEODTKNPHYTAjTrluWvS8fciDSd0vqMBosMvV9 XvDU+RSF0IfrpE/dUwsu1QV2E/jL6Wo5p2AtHpTB2mjZvsjSpheQaEbpNfhO+oiwRKB4 cslBMlRKA4WiKxqOLjaO0dZscs/fD68raYRvkTozEks3SiTHkO4lLqAdMQPb2JV6AL22 Jtsw== 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:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=lAlVmZSanzlD39pCORGjqCaSMDJuNAdsvfrty4Qg++Y=; b=tF5ivOzxw4gVssPVylmgC9w+57M8J3R9LrGceTUsYa/uQzFKk4O1HSLXufBQ4/D6RY 0eu+CqDZu+tK3C1uddjE1fbocn5AJP4AYYjRn0Gv8LJNKIga5HM1Hs5VCONSizLgIKTO 149zQhUvPX92Ilr0Rz+4zKc7hjnjd9WKajbJMIDnQ+7tLg1ykFN6bXCR/PORvZZRlZlV Ot05Hu1aAHV9ixOMiyJVygBsUP8SAf9dfuZjXa1dvyAmkZ/YahWgfy7jxnT1kCZqSLAD fPB4G1ccxVZ52wxyjBXnWH69I3xomfSvu/Rw9YUSpWkv0eNvWekPPTbthNxlNiffPCH2 jO9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bq9O7oNg; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id sc29-20020a1709078a1d00b0078384e03826si2027227ejc.529.2022.10.04.07.14.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 07:14:27 -0700 (PDT) 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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bq9O7oNg; 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"; 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 673743850879 for ; Tue, 4 Oct 2022 14:13:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 673743850879 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664892787; bh=lAlVmZSanzlD39pCORGjqCaSMDJuNAdsvfrty4Qg++Y=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=bq9O7oNg7NDlUGVS+8kdUHwE5WFl7FEdwq9ETFd0Y7uzjnha8mckHWDyZcS/apDnt Ra8NoeIMZsiytZ9IRpoTfUEB6PKnSjoPlRfTiD6JzACCeTypoNlUKGAWPNpFR/0Y8w 9sOnxPDgaORcBuzRWRl4Xgnt1zBBJDHbm4gVbjCw= 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 5C5093858400 for ; Tue, 4 Oct 2022 14:11:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5C5093858400 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-127-79ucRZPcPXi4Xunra7iRsQ-1; Tue, 04 Oct 2022 10:11:43 -0400 X-MC-Unique: 79ucRZPcPXi4Xunra7iRsQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2EE213C1022B; Tue, 4 Oct 2022 14:11:42 +0000 (UTC) Received: from localhost (unknown [10.33.36.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id EB309140EBF3; Tue, 4 Oct 2022 14:11:41 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Disable test for freestanding Date: Tue, 4 Oct 2022 15:11:38 +0100 Message-Id: <20221004141138.530214-4-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP 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?1745766703315491914?= X-GMAIL-MSGID: =?utf-8?q?1745766703315491914?= Tested x86_64-linux with -ffreestanding. Pushed to trunk. -- >8 -- This test checks the exception-safety of std::stable_sort if copying a value throws. For freestanding we don't allocate in std::stable_sort anyway, and the exception thrown via __throw_runtime_error terminates, so disable the test. libstdc++-v3/ChangeLog: * testsuite/25_algorithms/stable_sort/mem_check.cc: Do nto run for freestanding. --- libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc b/libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc index d1f76906890..9dde4fb2b38 100644 --- a/libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc +++ b/libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-require-effective-target hosted } + // 25.3.1.2 [lib.stable.sort] #include