From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from arjuna.pair.com (arjuna.pair.com [209.68.5.131]) by sourceware.org (Postfix) with ESMTPS id 012393858D1E; Sun, 13 Feb 2022 21:20:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 012393858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bitrange.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bitrange.com Received: by arjuna.pair.com (Postfix, from userid 3006) id 9017D8A63B; Sun, 13 Feb 2022 16:20:18 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by arjuna.pair.com (Postfix) with ESMTP id 8F83A8A56E; Sun, 13 Feb 2022 16:20:18 -0500 (EST) Date: Sun, 13 Feb 2022 16:20:18 -0500 (EST) From: Hans-Peter Nilsson X-X-Sender: hp@arjuna.pair.com To: Jonathan Wakely cc: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: [committed] libstdc++: Fix test failures at -O0 In-Reply-To: <20220211221551.3383447-1-jwakely@redhat.com> Message-ID: References: <20220211221551.3383447-1-jwakely@redhat.com> User-Agent: Alpine 2.20.16 (BSF 172 2016-09-29) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2022 21:20:20 -0000 On Fri, 11 Feb 2022, Jonathan Wakely via Gcc-patches wrote: > diff --git a/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc b/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc > index c81344a20e4..25e5ce63b58 100644 > --- a/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc > +++ b/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc > @@ -281,10 +281,13 @@ test07() > std::pmr::unsynchronized_pool_resource upr(&cr); > try > { > +#pragma GCC diagnostic push > +#pragma GCC diagnostic ignored "-Walloc-size-larger-than=" > // Try to allocate a ridiculous size (and use a large extended alignment > // so that careful_resource::do_allocate can distinguish this allocation > // from any required for the pool resource's internal data structures): > void* p = upr.allocate(std::size_t(-2), 1024); > +#pragma GCC distinguish pop Isn't it a bug that you (presumably) didn't get an error for that misspelling? Or a diagnostic to distinguish it? 8-} brgds, H-P