From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 073DC3858CDB for ; Thu, 9 Nov 2023 23:07:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 073DC3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 073DC3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699571261; cv=none; b=B/R7eZaGigplVm88yBQgAtD/Sx7kpRDYxAksjgN6uV8N+rDuKuyUaW6SfX9+Bq6oZB1eBuk6SWTN/1ZfAFTEhvEE/FptleoL3naJERRpzAyWeO+y0Bm7oDOzIWS8F36gFwS+RkQ13F347TS4Mx7AIO6nbPBfoS2CaDqcPHS6Xjs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699571261; c=relaxed/simple; bh=zUJn1Ql8FAylPZvC8uxZkW90qeELQo1DzgRqaJfLcKM=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=d6TihB4KwuY4kB07LlXMNYQa8pRsHQCYvlK2QrQ4F9a+9LnQVBQahLL1vqWfkf/07hNFAHFEF+38naDSQHVLAsmnb0Kvm3FYXMplFt6r/uD4faGOe1NrVYZA+NbpJRwOZpT4rBnT1Qui7u5uoKwYNCd1KurN+tHPf02Uey8qNkE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699571259; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=COpQYxenDDMMa3rN8+lNIzCkGaPocMui/FBEbcnYNWM=; b=cBO5NgCkUS0mIX5+P/5bKbi4jGlWq28utEV4rEMd276UoQjiBgjcGxC7maFuukQH7j9ygR ediDfefk1+krXIUBGQKSUZzYD/RZnt3lWpjUWCPhSVkq/zrATIjN+/kWO5xuupwxinsi1X fn7nIe+yDqRL8Vdd/LuVloQglN6af4A= Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-483-ZM9xCdH7PFG32UYhMch3HQ-1; Thu, 09 Nov 2023 18:07:38 -0500 X-MC-Unique: ZM9xCdH7PFG32UYhMch3HQ-1 Received: by mail-yb1-f198.google.com with SMTP id 3f1490d57ef6-da2b8af7e89so1789932276.1 for ; Thu, 09 Nov 2023 15:07:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699571258; x=1700176058; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=COpQYxenDDMMa3rN8+lNIzCkGaPocMui/FBEbcnYNWM=; b=Dfo7/dJ8d3mi6j20yP3i13bnByQHxj1617uwS6Kml42kcTMVDtHqQafJOhUv/q9Pf0 JdTijzJJqE0MmylE+0BLvjxTshFqDX1vCO1nfhjlNkFEqPqmf6DDUkuvDJmWtzUe5xZ8 ytUN/pND8U19SOhVcVPKdYjC4GE5/SaxTj4RxmYa26vCCK0N0apuvtwWCnkMWe/euKmS Ty/TD7Pny7kloEP9cpYFsT9aYYqpILvHd37GkgyuSEjgVrA+86ko4QpJvb4Q+ls0GvKU B8+CXOHIEfNmQTlyueMBQqwrPGvtw+1vqXYWfkHZpl5CSzZfGiLli78pNBX7cEwD2wm+ YAog== X-Gm-Message-State: AOJu0YyVnN2DZcgLmddrc/SzhvA490phFEtguLyDsrw0itiLnz2sJ65/ NMcFA8AzF1hw5r4KvBgG8ELAkEqlS/G/4oRKYrsZiX2MaB3WGk7F1HPvlsplL0DH8QcFaeMudtf Q8HNi7xgxeu+pJaZMCLnpDKJRwJ60C1k= X-Received: by 2002:a25:ad14:0:b0:d9b:4f28:4f7a with SMTP id y20-20020a25ad14000000b00d9b4f284f7amr6680898ybi.55.1699571257823; Thu, 09 Nov 2023 15:07:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk/DNpxhu8P7/qwyTtJCeu1gUOoe6Qn6vmrkjSZRkkkwLMM3TvUbUhwFUaTL33GfxOzsrLRna6D4Cv3Oe2R0U= X-Received: by 2002:a25:ad14:0:b0:d9b:4f28:4f7a with SMTP id y20-20020a25ad14000000b00d9b4f284f7amr6680883ybi.55.1699571257561; Thu, 09 Nov 2023 15:07:37 -0800 (PST) MIME-Version: 1.0 References: <20231109193009.2391070-1-arsen@aarsen.me> In-Reply-To: <20231109193009.2391070-1-arsen@aarsen.me> From: Jonathan Wakely Date: Thu, 9 Nov 2023 23:07:26 +0000 Message-ID: Subject: Re: [PATCH 1/2] libstdc++: declare std::allocator in !HOSTED as an extension To: =?UTF-8?Q?Arsen_Arsenovi=C4=87?= Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-11.4 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_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 9 Nov 2023 at 19:32, Arsen Arsenovi=C4=87 wrote: > > This allows us to add features to freestanding which allow specifying > non-default allocators (generators, collections, ...) without having to > modify them. > > libstdc++-v3/ChangeLog: > > * include/bits/memoryfwd.h: Remove HOSTED check around allocator > and its specializations. > --- > Evening, > > This patch adds std::allocator as a declaration to freestanding, so that > it doesn't block various other bits of the library (such as collections > or the generators that I intend to send in soon) from being added to > freestanding anymore. > > I don't intend to pull in anything but into freestanding > in this release, though, so, this patch will have little impact for now. > > Testing on x86_64-pc-linux-gnu (the tests are not done yet, but I see no > relevant fails in previous test runs). The follow-up patch also marks a > new test as freestanding (as it was failing). > > OK for trunk? OK > > Have a lovely evening! > > libstdc++-v3/include/bits/memoryfwd.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/libstdc++-v3/include/bits/memoryfwd.h b/libstdc++-v3/include= /bits/memoryfwd.h > index 330a6df7f44a..2b79cd8880a1 100644 > --- a/libstdc++-v3/include/bits/memoryfwd.h > +++ b/libstdc++-v3/include/bits/memoryfwd.h > @@ -60,13 +60,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION > * @{ > */ > > -#if _GLIBCXX_HOSTED > + // Included in freestanding as a libstdc++ extension. > template > class allocator; > > template<> > class allocator; > -#endif > > #if __cplusplus >=3D 201103L > /// Declare uses_allocator so it can be specialized in `` etc. > -- > 2.42.1 >