From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) by sourceware.org (Postfix) with ESMTPS id C2DD73858D1E for ; Fri, 4 Mar 2022 23:02:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C2DD73858D1E Received: by mail-oo1-xc2e.google.com with SMTP id 6-20020a4a0906000000b0031d7eb98d31so11120802ooa.10 for ; Fri, 04 Mar 2022 15:02:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lFcd1GYb3le+o7X+ZawEzLehPpWDVCWoHf02Gxu/0Ks=; b=jGpJIeYGSIiFQj5Fqe1xG0Tpwzr5Bx3V+Yf/UUoPZqCan0xsjtGikHeTsabMqvagor TmkH6eoPcA5R+loKGfeVtCtCsMmKgclqgPln8/b5fEtxUY+TVQRNSyODha/x9xJOuroU W8lA8Qq8lJe5sj9hGRNF4WXlYKW8vnC3PadJEAQBtS/p+R9RvkhGE93DYrQXfNXjtftz 0oO5HoIlyNMBfySJVFnayGhyKOukGLu76v6t/2eKn72xjVyx83x97ZnrzqJBYY1IDNua 00l8nTdki/zhf+mXts321xGWiI0XTjn2NkI0soBXqZu0ESEye48sFmklpoCK3U3VUwwr FpmQ== X-Gm-Message-State: AOAM532Vk/H03wDQECSFsjuEUjMDTH0AHK5fRtiDfQ95Yi9fOUNx5K0+ zPpY2NXDuA0EQq5fmprKfDfkdSNh/n4S7GwA9Ew= X-Google-Smtp-Source: ABdhPJyiSAMK65l+Jwb4pSUFqQM7MK1x78fR4Kqj0VMNPyKN5PgYntPyTiNG6HY2i26/H5cEvqBZGHe+tEcFIVK4488= X-Received: by 2002:a05:6870:6007:b0:d6:a265:eaad with SMTP id t7-20020a056870600700b000d6a265eaadmr9093802oaa.119.1646434922986; Fri, 04 Mar 2022 15:02:02 -0800 (PST) MIME-Version: 1.0 References: <649f3dd2-54f0-2258-61e5-1304a1140bbe@gmail.com> In-Reply-To: From: Abdullah Siddiqui Date: Fri, 4 Mar 2022 18:01:50 -0500 Message-ID: Subject: Re: C++ version for GCC development To: Xi Ruoyao Cc: Jonathan Wakely , gcc-help X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2022 23:02:05 -0000 Hello Xi. Thank you for the clear explanation. Regards, Abdullah. On Fri, Mar 4, 2022, 1:29 AM Xi Ruoyao, wrote: > On Thu, 2022-03-03 at 22:07 -0500, Abdullah Siddiqui via Gcc-help wrote: > > Hello Jonathan. > > > > Thank you for the detailed clarification. > > > > > At what point did the GCC developers give up C++98 and start using > C++11? > > > > > > For GCC 11. This is stated at > https://gcc.gnu.org/install/prerequisites.html > > > > > > Are you referring to these lines: > > > > ISO C++11 compiler > > > Necessary to bootstrap GCC. > > > > Versions of GCC prior to 11 also allow bootstrapping with an ISO C++98 > > > compiler,..... > > > > > > I thought bootstrapping and compilation are two separate things. In this > > context, are bootstrapping and compilation the same i.e. GCC is a > compiler > > and the ISO C++11 compiler is being used to compile GCC? > > In theory, compiling GCC with --disable-bootstrap may have a *more* > strict restriction on host compiler than bootstrapping (--enable- > bootstrap is the default building a native compiler). It's because with > --disable-bootstrap the entire GCC will be built with the host compiler, > but with --enable-bootstrap only stage 1 is built with the host > compiler, and stage 2 is built with stage 1. In stage 1 some optional > features (Go or D compilers, etc) are not enabled. > > But in practice I don't know. Maybe it's possible to build GCC 11 with > GCC 4.8 and --disable-bootstrap but I've not tried. I don't think it's > really rational to spend an hour testing this in 2022. > > > The exceptions are some tests which have .c extensions but get > > > compiled as both C and C++, when we want to test that both language > > > front-ends pass the test. > > > > > > Are you referring to files in the testsuite folders > > (example: gcc/testsuite/g++.dg/lto/pr65302_1.C)? > > Files in g++.dg are purely C++. Please note ".C" (with a capital > letter) is not same as ".c". > > For example, gcc/testsuite/c-c++-common/pr100785.c is compiled as both C > and C++ during the testing process of GCC. > > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >