From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 390E83857C41 for ; Fri, 4 Mar 2022 23:03:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 390E83857C41 Received: by mail-oi1-x236.google.com with SMTP id ay7so9349971oib.8 for ; Fri, 04 Mar 2022 15:03:20 -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=ATG6WQOROJbGR6cWrbc32F37VgIllj2riUgaBQ9MEC8=; b=AcL4DpAq72ikbZBDqcj4F2yMeIria105vMGtkxYpLIe4VrqgIP3skqYJLJYgVPm0qd ereF2w/UA5dKdWcsDINwgUlJ7bJQs5Ty/+/BjyNOZAYi0QSMdfL/xolm16AENQozKR66 W9gjIMiOjxSYpbdlhDi7wiD/Cc1NyDEImMDovQNC7BuHf306zv4D0Av3f3clNlw/Nz69 lceuL9TqTk26Yb/fCwO5+XTtCXp+mUzDWM1iHUA4PJgG1qFJ1prQ3Yfwc8ikCJUa/Kro EKWoKF5mYbRoram8cLAqDXHiqkhKS1swgzx3H9x+TrjCPDF3SV7Gy4bX3KKQbFIPJU2q 8ZcA== X-Gm-Message-State: AOAM531B6ZwXbvhm+lJCA79d+YFjFH07a5j9poL7iXw0YC0/MdLk0nls Gk8UkbWBEcK5Lp/BkKCbXAuTMe6qolwpa3oYCBq0NJhLRoU= X-Google-Smtp-Source: ABdhPJx4PWRU4dc+b9j6fVpWFyvv3rmIGyOlc6GfiNEXSy1BiSxVC4rK88MbPoJA6ppBB+vrRTJmsbubkTghok5h14g= X-Received: by 2002:a05:6808:2026:b0:2d5:409e:1dc2 with SMTP id q38-20020a056808202600b002d5409e1dc2mr10914792oiw.130.1646434999581; Fri, 04 Mar 2022 15:03:19 -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:03:06 -0500 Message-ID: Subject: Re: C++ version for GCC development To: Jonathan Wakely Cc: Gabriel Ravier , gcc-help X-Spam-Status: No, score=-0.4 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" Content-Transfer-Encoding: quoted-printable 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:03:21 -0000 Hello Jonathan. Thank you again =F0=9F=99=82. Regards, Abdullah. On Fri, Mar 4, 2022, 4:13 AM Jonathan Wakely, wrote= : > On Fri, 4 Mar 2022 at 03:07, Abdullah Siddiqui > 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++9= 8 > compiler,..... > > Yes, those lines. > > > > > I thought bootstrapping and compilation are two separate things. In thi= s > context, are bootstrapping and compilation the same i.e. GCC is a compile= r > and the ISO C++11 compiler is being used to compile GCC? > > Yes, that's right. > > In this context bootstrapping GCC means building it from source (which > includes compilation but also linking, and then repeating the whole > process using the just-built GCC to build itself again). > > Since GCC 11, the first stage where you build GCC with a pre-existing > compiler must be done with a C++11 compiler. Before GCC 11 a C++98 > compiler was needed. > > > > >> 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)? > > See Xi Ruoyao's answer. >