Re: C++ version for GCC development

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 4 Mar 2022 at 03:07, Abdullah Siddiqui
<siddiquiabdullah92@xxxxxxxxx> 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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux