Message ID | 20221012194734.85319-1-arsen@aarsen.me |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2776980wrs; Wed, 12 Oct 2022 12:49:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55jVUowMvfLEjMj+K8YdG3VwbfrlARVwvmcn7QYMVQJhpk6zAeeinYlBV5Wwht/XKAQCS4 X-Received: by 2002:a05:6402:51ce:b0:45c:197d:c64f with SMTP id r14-20020a05640251ce00b0045c197dc64fmr16291637edd.58.1665604164380; Wed, 12 Oct 2022 12:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665604164; cv=none; d=google.com; s=arc-20160816; b=Nmt/F++XKniLmRm3lbCtP15/j3VZM9RFZbgiMehxhXq4wGj/2cRv1SViDmP3At0i3O AaaAEDlmQ1XBWrsRMQZAybmrY6DrUwVgpOAjGaxgC5bEHY8ASvrr+MJ55cYGeFzJeIBa Vp+IL6Kq9PpY0sGntn5tv39XltcqRUD5I8ak0t1XxajEOnU87GSj9XhURzeU3oIA2RpZ JzCxBv8HSfOOhz0eK8C8weC9QHx6p2yds2MsSadeX/HsIpv/tYDLlvat+NBeKyLx7M3b Q14b+OtWJtPmYOOMS8SylOTutOW8nDJ2g+fcQawlnVn3+Ow80PSXxWOeiC7fmv75WVJ4 tIhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=t4RfjJ/pVozqTZqxq3byKcbQs4Y3IYM3ocgTLV+Amkw=; b=E5jrYaUmdKZXrdmzbLt1taXtcSbmnlfJonSZvP31C8DjRR9yGtJdYY9jvQskDZD3cs aaiBjNBK45hfYYuYONit9D2/KGYa+ikP8C5jv+gAG1CozAZLGxvrWJMLqdT/cTIH2GYu Zs9nkBvy63OR3EfxaMYQ0JpMkFp0xKFZtZffPjLFdaWEPYDOftRAneOTBa3d94YHl1jC h6R+DzBjExxhfNrSdg3V1Jo0phchcg/4i1WNrdJ8nRG1E9jyzgxAc52EeKFXBh11hjMO 0rR6w4xVyMBDWGIFlVMyDNSxcVgAFlKhKpZl7txCwArg0tPYPvwSXcEb0aUtB2c9EQWt BK6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=lLWNkuKP; 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 jr5-20020a170906a98500b007317ad1f9a4si15910636ejb.310.2022.10.12.12.49.24 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 12:49:24 -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=lLWNkuKP; 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 0CBD8385117D for <ouuuleilei@gmail.com>; Wed, 12 Oct 2022 19:49:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CBD8385117D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665604150; bh=t4RfjJ/pVozqTZqxq3byKcbQs4Y3IYM3ocgTLV+Amkw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=lLWNkuKPEpAbh+XtLPE8H2bWDnca+CLo+Ib4TI93VK0ETzCBGJYzp6sEL4n3BHUD+ eFG2570mwVxEJxKKIdb0D50nPd2vU1imr5SEwlWhJeHSkf44f/IHwIGFWJaSnjmE1F xuwgmPysoz98HKtb32+6Svr0WUBlCF6/wQm+VWfQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by sourceware.org (Postfix) with ESMTPS id AD94A3858290; Wed, 12 Oct 2022 19:48:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AD94A3858290 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Mnjr64Frdz9sPl; Wed, 12 Oct 2022 21:48:22 +0200 (CEST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] libstdc++: respect with-{headers, newlib} for default hosted value Date: Wed, 12 Oct 2022 21:47:35 +0200 Message-Id: <20221012194734.85319-1-arsen@aarsen.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Mnjr64Frdz9sPl X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: =?utf-8?q?Arsen_Arsenovi=C4=87_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Arsen_Arsenovi=C4=87?= <arsen@aarsen.me> Cc: libstdc++@gcc.gnu.org Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746512552330098898?= X-GMAIL-MSGID: =?utf-8?q?1746512552330098898?= |
Series |
libstdc++: respect with-{headers, newlib} for default hosted value
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Arsen Arsenović
Oct. 12, 2022, 7:47 p.m. UTC
This saves us a build flag when building for freestanding targets. libstdc++-v3/ChangeLog: * acinclude.m4: Default hosted to off if building without headers and without newlib. --- Tested for x86_64-elf. libstdc++-v3/acinclude.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Comments
Pushed to trunk, thanks. On Wed, 12 Oct 2022 at 20:48, Arsen Arsenović via Libstdc++ <libstdc++@gcc.gnu.org> wrote: > > This saves us a build flag when building for freestanding targets. > > libstdc++-v3/ChangeLog: > > * acinclude.m4: Default hosted to off if building without > headers and without newlib. > --- > Tested for x86_64-elf. > > libstdc++-v3/acinclude.m4 | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 > index 719eab15c77..8f4e901c909 100644 > --- a/libstdc++-v3/acinclude.m4 > +++ b/libstdc++-v3/acinclude.m4 > @@ -2982,7 +2982,10 @@ AC_DEFUN([GLIBCXX_ENABLE_HOSTED], [ > enable_hosted_libstdcxx=no > ;; > *) > - enable_hosted_libstdcxx=yes > + case "${with_newlib}-${with_headers}" in > + no-no) enable_hosted_libstdcxx=no ;; > + *) enable_hosted_libstdcxx=yes ;; > + esac > ;; > esac]) > > -- > 2.38.0 >
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 719eab15c77..8f4e901c909 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -2982,7 +2982,10 @@ AC_DEFUN([GLIBCXX_ENABLE_HOSTED], [ enable_hosted_libstdcxx=no ;; *) - enable_hosted_libstdcxx=yes + case "${with_newlib}-${with_headers}" in + no-no) enable_hosted_libstdcxx=no ;; + *) enable_hosted_libstdcxx=yes ;; + esac ;; esac])