[Bug bootstrap/88623] gcc build uses CXX_FOR_BUILD but files have .c extension
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88623 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Target Milestone|--- |12.0 --- Comment #6 from Andrew Pinski --- All c++ files were renamed at r12-6650-5c69acb32329d49e58c26f .
[Bug bootstrap/88623] gcc build uses CXX_FOR_BUILD but files have .c extension
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88623 Andrew Pinski changed: What|Removed |Added Keywords||build --- Comment #5 from Andrew Pinski --- So GCC is written in C++ but has the .c extension because the files were not moved to a new extension. There is nothing to fix here. Yes some compilers have to use an extra option to be able to compile GCC that is ok. Ok, it looks like GCC and clang might be the one of the few C++ compiler which defines __STDC__ and the code just works. Can you attach the exact patch as there are two places where __STDC__ is used even? Also was there any other error messages?
[Bug bootstrap/88623] gcc build uses CXX_FOR_BUILD but files have .c extension
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88623 --- Comment #4 from Andrew Paprocki --- ... relying on the fact that `g++` will compile the `.c` files as C.
[Bug bootstrap/88623] gcc build uses CXX_FOR_BUILD but files have .c extension
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88623 --- Comment #3 from Andrew Paprocki --- Sorry, I said 'libgcc', but I meant the 'gcc/' sub-directory. It is always using the C++ compiler for the build and relying on the fact that `g++`
[Bug bootstrap/88623] gcc build uses CXX_FOR_BUILD but files have .c extension
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88623 --- Comment #2 from Richard Biener --- why would a C++ compiler ever compile sth as C?
[Bug bootstrap/88623] gcc build uses CXX_FOR_BUILD but files have .c extension
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88623 --- Comment #1 from joseph at codesourcery dot com --- gcc/ is not libgcc. libgcc is only ever built using exactly the same version of GCC.