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 125EC3858D1E for ; Fri, 30 Sep 2022 18:15:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 125EC3858D1E 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-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-202-NMZB8LXYO1KkYIDMNMgkng-1; Fri, 30 Sep 2022 14:15:22 -0400 X-MC-Unique: NMZB8LXYO1KkYIDMNMgkng-1 Received: by mail-qt1-f197.google.com with SMTP id h7-20020ac85047000000b0035a6794699bso3455505qtm.3 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=ZmdW0YwzmBI4+oCH/9PfnDIEIAa7ipnAhCyhWHb1wy2K67YGpuD4xoY5kFFEqkvc2x h81WbvGUiVSYbZYhVM+0NoV6+vkheBaZP0nbuo9MOh1r/Tm+DE0o8X+f9ubjpwrGdgSt /33SKgxGEwJtq4W3zUUQAaQ0C3nN3Bq7FSdNm06s9A4MFzkBFukowwjt9LRuOq7NAmNf k9/QJqyjJl2VffNTtQG4Fp+Olj8LWEul0nuA7dNpTSi8hyUvbj7NvTI6+bDhZoeP8wWv xxlC5/w5b7/ekGd0XjZhjP4CdNjMLvtUWlYW395PZ1vhz9WVMvDkxCqJ02nV9uv3t+3y vq2A== X-Gm-Message-State: ACrzQf0asFrIPWuaxCZJNN0q3H869EDZ11O+Nm89lGbn+wYLrh2GGmDz JX05qjH6SE+TArEqA2c7+TqtfrdQAJdjM0iuweXb0mVMp/ablsDuz5GVPVMQJ05ZfQoKsyr5Pk1 2ebP/etQGq+Ki6NxCMZXVi4DJPEn7r8o= X-Received: by 2002:ac8:5716:0:b0:35c:bd68:d34 with SMTP id 22-20020ac85716000000b0035cbd680d34mr7816655qtw.50.1664561721843; 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=-3.6 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 +-