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.133.124]) by sourceware.org (Postfix) with ESMTPS id 15B893858D38 for ; Fri, 30 Sep 2022 18:15:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 15B893858D38 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=1664561723; 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=kYRu7d6/JRshjTcSVQ9+EfOLTfUeEHHdE70n2c4218U=; b=OjHoxb2rhyia2409JeUZLiHvWCmCf0khCTvql7Bwexvqrqv/L5ArGIXO1c++ueM8yXVnl9 8wK0/D+5kO6fQWIuthorHfKPGC7PyuC0owD4sLHJEszTr+lSThYBX9v5aDqQMVN2KvQU2H QTZte8et8fZeVjJ4N2fVuhoKOg9tjOE= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-202-lGljuvO0Mya6lP3o-P8qUg-1; Fri, 30 Sep 2022 14:15:22 -0400 X-MC-Unique: lGljuvO0Mya6lP3o-P8qUg-1 Received: by mail-qt1-f198.google.com with SMTP id w4-20020a05622a134400b0035cbc5ec9a2so3482157qtk.14 for ; Fri, 30 Sep 2022 11:15:22 -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; bh=kYRu7d6/JRshjTcSVQ9+EfOLTfUeEHHdE70n2c4218U=; b=d0/s5FKYZzwa1LqnnLGYdxbKhEhJOMAkPvvv81PDMZIWUbbYnlJb8Nzlhh9qVCksum /hdP4RUz26pr7g9FLXbIMAB0Uy2cHxCX3BF5C0ena4F9KVw/4gK7Y0inaBc1J4ODZ8e9 YFqqN+7oEWBNU/ov3Dbd+0VH9dV8ozEp2F9wrhXLSGFoEAWCVKHQGLPFgrYae99eRMgS QKyRHnSpQ49jo0VlDaM0lD2oRf8BMTd2o1Jw4IBq/L0H0XYugV1XPjRvEuxHmx5Dh89N DZ/Hm+bsMzyutR9fXeKln9XGGjYncyN11KjqLYHsjNh5gcRBfJqvr2la36WNO95NRU5f 7o4w== X-Gm-Message-State: ACrzQf0VhlBhjlQYDa38+9Ap4wN9HBqECHjpSS2RvkX3fItwknx1jjwq Q9i+juBolqpJy7YG7M/JSV9ODwJAVxiI0wKF8XMagMXSqWLQ5F7/VPLeU42BUX8UwDhQ4jSOeUc 2pRLMj8dTb401HQVieSY+CMm+TCnY4rCLsw== X-Received: by 2002:ac8:5716:0:b0:35c:bd68:d34 with SMTP id 22-20020ac85716000000b0035cbd680d34mr7816657qtw.50.1664561721847; Fri, 30 Sep 2022 11:15:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5L0yyoov0tcihEpW5nGZ4Sa9avxHRaZeUK+5jcUSqP4Pw/4+pkXr39+l7OCgMC83Gd/BaYxLPsCrxROeesGM8= X-Received: by 2002:ac8:5716:0:b0:35c:bd68:d34 with SMTP id 22-20020ac85716000000b0035cbd680d34mr7816635qtw.50.1664561721616; Fri, 30 Sep 2022 11:15:21 -0700 (PDT) MIME-Version: 1.0 References: <20220930164556.1198044-1-arsen@aarsen.me> In-Reply-To: <20220930164556.1198044-1-arsen@aarsen.me> From: Jonathan Wakely Date: Fri, 30 Sep 2022 19:15:10 +0100 Message-ID: Subject: Re: [PATCH 00/10] c-family,libstdc++: P1642 and related changes 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=-6.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,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 List-Id: On Fri, 30 Sept 2022 at 17:46, Arsen Arsenovi=C4=87 via Libstdc++ wrote: > > Hi, > > This patchset: > - Implements the P1642 WG21 paper, with a fair few extensions, > - Fixes libstdc++' build system on systems --without-headers, > - Ports (a large chunk of) the libstdc++ testsuite to freestanding, and > - Changes the semantics of `int main' in freestanding (!!). Thanks for all this work, Arsen! I'm testing these and will approve and commit all except [PATCH 5/10] which is outside libstdc++ and needs review. > > Thanks, > > Arsen Arsenovi=C4=87 (7): > libstdc++: Filter out unconditional default include > libstdc++: Mark headers that must be hosted as such [PR103626] > c-family: Implement new `int main' semantics in freestanding > libstdc++: Rework how freestanding install works [PR106953] > libstdc++: Make some tests work on freestanding [PR103626] > libstdc++: Re-enable std::hash in freestanding [PR103626] > libstdc++: Disable hosted-only tests [PR103626] > > Jonathan Wakely (3): > libstdc++: Make _GLIBCXX_HOSTED respect -ffreestanding [PR103626] > libstdc++: Adjust precompiled headers for freestanding > libstdc++: Add effective-target 'hosted' for testsuite [PR103626] > > gcc/c-family/c-common.cc | 6 + > gcc/c-family/c-common.h | 10 + > gcc/c/c-decl.cc | 4 +- > gcc/c/c-objc-common.cc | 9 +- > gcc/cp/cp-tree.h | 12 +- > gcc/doc/invoke.texi | 20 +- > .../freestanding-main-implicitly-returns.C | 5 + > gcc/testsuite/g++.dg/no-builtin-main.C | 5 + > gcc/testsuite/gcc.dg/c11-noreturn-4.c | 2 +- > .../freestanding-main-implicitly-returns.c | 5 + > gcc/testsuite/gcc.dg/inline-10.c | 2 +- > gcc/testsuite/gcc.dg/no-builtin-main.c | 5 + > gcc/testsuite/gcc.dg/noreturn-4.c | 2 +-