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 4F1333882159 for ; Fri, 21 Oct 2022 09:52:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4F1333882159 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666345938; 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=/Ilm2oOv7KnTtWqYXaSS206emAzcyhHmiUCw0AWJqOg=; b=DuQGjhKFUMt/4WyTtq3YtedLuXeR7F0Z6QIsamnpjx1Mebykh6BR2STj17lATIphHKGHS8 lrHp0xvzYhsnE7Te0ItK0UrAmosVul6ux9LbjOxRJJDWYTZehMVKCeAbJSXzq1aqRImD/W XTOdLWwq8ALPe0otT8p1dV2frbPBN+k= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-461-1P3HL3kOPl-m_zW3rmm6XA-1; Fri, 21 Oct 2022 05:52:09 -0400 X-MC-Unique: 1P3HL3kOPl-m_zW3rmm6XA-1 Received: by mail-qk1-f200.google.com with SMTP id n13-20020a05620a294d00b006cf933c40feso3003198qkp.20 for ; Fri, 21 Oct 2022 02:52:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=/Ilm2oOv7KnTtWqYXaSS206emAzcyhHmiUCw0AWJqOg=; b=KN66BECnIuMQNmLJ/UA+BEy41gS91Y/kRdndeR7d5UALKj3ytFEDlKEI/jbysr2Sd0 1vBaXSPXeVhPKA3cgO/Nlyl4ARsf3RHBb8ZZtA6WzFe9AcHU/WcD6xZRWorZSAkaktEh F1RTy3WXHdAacT+6gwgyezNo03P4tTdU+Kzla/BEJbmlDqFstgfM1leno2OGP75819bK Yy24w7rm0k0/VJZWaZtYOE3KQ2JNZBeVFpfX+Jb3RrA+0f5UQ5PiBFumVyFMM7+DlULW IXatkQuhnHW0z4AD4A3jx4+uz/SfKzBREChgcgjLA0NMCSLLQkj7yjhxnDnk/5QxLuha YFnA== X-Gm-Message-State: ACrzQf3vNJCVa4n2awCkRj5nCwVcpsHKv3asS/zZXFFqk4g9Atskm/F9 Lh2H9ik2xMWuMry4kEaX+zZc20iKFfZMxo9KVZ6N7MXzNkRfbolN1FyhmkSrgZwAXkJQsfGMrUz 8vy+7D8cq9zLlqpiSi792TnVdhLFCXv0= X-Received: by 2002:a37:4454:0:b0:6e7:9bd0:bf53 with SMTP id r81-20020a374454000000b006e79bd0bf53mr12874683qka.616.1666345929100; Fri, 21 Oct 2022 02:52:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wZC0wK+KNn9ZRqmid6ott0ujpyM6zWYJuHa71uyLAs3pYzCCgs0OQu0umXcE9tOve+WLLHJhLbZFaftt+zis= X-Received: by 2002:a37:4454:0:b0:6e7:9bd0:bf53 with SMTP id r81-20020a374454000000b006e79bd0bf53mr12874675qka.616.1666345928903; Fri, 21 Oct 2022 02:52:08 -0700 (PDT) MIME-Version: 1.0 References: <20221012194734.85319-1-arsen@aarsen.me> In-Reply-To: <20221012194734.85319-1-arsen@aarsen.me> From: Jonathan Wakely Date: Fri, 21 Oct 2022 10:51:57 +0100 Message-ID: Subject: Re: [PATCH] libstdc++: respect with-{headers, newlib} for default hosted value 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=-12.8 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_H2,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 List-Id: Pushed to trunk, thanks. On Wed, 12 Oct 2022 at 20:48, Arsen Arsenovi=C4=87 via Libstdc++ 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=3Dno > ;; > *) > - enable_hosted_libstdcxx=3Dyes > + case "${with_newlib}-${with_headers}" in > + no-no) enable_hosted_libstdcxx=3Dno ;; > + *) enable_hosted_libstdcxx=3Dyes ;; > + esac > ;; > esac]) > > -- > 2.38.0 >