Re: C++ version for GCC development

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

 



Hello.

Hello.
>
> This question is for the developers of GCC:
>
> Which C++ version are you using to write the C++ code of the current GCC
> version?


>
> C++11


I know Jonathan said earlier that GCC is implemented in C++11. However, this
<https://dmalcolm.fedorapeople.org/gcc/newbies-guide/gotchas-and-faq.html>
page states the following:

 As of version 4.8, GCC is (mostly) implemented in C++, C++98 specifically.


The current version is GCC 11.2, isn't it? At what point did the GCC
developers give up C++98 and start using C++11? Is it correct to say that
the C++ code of GCC is composed of both C++98 and C++11?

Additionally, Jonathan also stated the following in one of his emails in
this thread:

It also looks like they haven't updated those numbers since April last
> year, *so it will wrongly count all .c files as C even the ones which
> contain C++ instead*. A huge number of files were renamed from .c to .cc
> recently, because they contain C++ and so had a misleading .c extension.
> That doesn't seem to be accounted for in those numbers.


The page linked above also has a similar claim:

 As of version 4.8, GCC is (mostly) implemented in C++, but we haven’t
> renamed the source files. Hence you will see source files with a .c
> extension throughout the source tree. *These are generally handled by the
> build system as C++, rather than C*.


Does this mean that ALL the files with the ".c" extension in the GCC
codebase are C++ files? How shall I determine which files are C++ files and
which ones are in C?

Regards,
Abdullah.










On Tue, Feb 8, 2022 at 10:40 PM Abdullah Siddiqui <
siddiquiabdullah92@xxxxxxxxx> wrote:

> Thank you.
>
> On Tue, Feb 8, 2022, 12:07 PM Jonathan Wakely, <jwakely.gcc@xxxxxxxxx>
> wrote:
>
>>
>>
>> On Tue, 8 Feb 2022 at 17:04, Abdullah Siddiqui <
>> siddiquiabdullah92@xxxxxxxxx> wrote:
>>
>>> Jonathan,
>>>
>>> Oh ok. I already checked out GCC from your second link
>>> https://gcc.gnu.org/git.html. I just wanted to know if I could access
>>> the code from the browser itself (like on GitHub).
>>>
>>
>> Like it says at that link, you can browse it at
>> https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git
>>
>>




[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