From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 5F2F13858D39 for ; Fri, 4 Mar 2022 09:13:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5F2F13858D39 Received: by mail-wr1-x42f.google.com with SMTP id bk29so11684237wrb.4 for ; Fri, 04 Mar 2022 01:13:14 -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=s02pbaUinOSUCa99YA2Rd+hPWJijQqdXchdpjKntZcM=; b=xq+OacwOE73mqUUQS98P0Z82lcTSsvS3oKIrsEPefZEaseLlhZ/THiPiK1IMvwVlH9 ARc1dsLZoqTNuzDQcpqG625OKbrO4tf57y8OkmZ/McnjhXCa1DMxEnRR8vCAxQsuF3sY L9F+0/+E1GlvoWeSvFtTWLdxjXn/QkEdoLujKsrgS7D4eE+cAUPG8/wDJuDGECBJFpf1 jEI+UU89+6oi/BNEiXVaMZR5r013FcCatK68jBWtG4ErRgZK8dM5LI6MvVeJJmXrXkAb r7kEABfn7S2De17HM7Ypq+vraFt1i6wIw4emK++conWEOptQk01VEpr3gOOazXo6mS9E EN6w== X-Gm-Message-State: AOAM531MX6eau2WHRvCeI+Mh/1By+rYICVhw45TF8ue00ttz5ntWSOJh qfmBnTrHMOcPOZJLJOwhXY4SXU2UXAKUNI9m5sk= X-Google-Smtp-Source: ABdhPJx0TuzAiS7PJG1r/KoLSn94a0MnOsbF6vkD5qQ032+zZ1x+lu24+wiGyN/RegYgPyKjs0qhbTF8TVCc6+HY1xA= X-Received: by 2002:adf:d1e9:0:b0:1ea:7fc0:6625 with SMTP id g9-20020adfd1e9000000b001ea7fc06625mr28149497wrd.152.1646385193151; Fri, 04 Mar 2022 01:13:13 -0800 (PST) MIME-Version: 1.0 References: <649f3dd2-54f0-2258-61e5-1304a1140bbe@gmail.com> In-Reply-To: From: Jonathan Wakely Date: Fri, 4 Mar 2022 09:13:01 +0000 Message-ID: Subject: Re: C++ version for GCC development To: Abdullah Siddiqui Cc: Gabriel Ravier , gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 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 09:13:16 -0000 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++98 compiler,..... Yes, those lines. > > 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? 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.