3 ms·
> GCC does not require a C++ compiler to build it > GCC front-ends are very mature and already support C++. clang's support for C++ is nowhere near what GCC sup
by ehvatum 6y ago
> GCC does not require a C++ compiler to build it
> GCC front-ends are very mature and already support C++. clang's support for C++ is nowhere near what GCC supports.
These things were true when Apple first went with Clang, and this document must date from that time.
GCC is now implemented in C++, and Clang’s C++ support is excellent. The only issue I have with my c++17 code in Clang is I can’t yet rely on recursive template parameter pack deduction.
- cptwunderlich 6y agoWhat, since when is GCC implemented in C++? I don't see any of that: https://github.com/gcc-mirror/gcc https://github.com/gcc-mirror/gcc Maybe in libstdc++, but what else would you use there. I wanted to know what register allocation algorithms GCC implements, but I can't even find it. It's all files with cryptic names and hundreds in one directory. You can find _even less_ documentation, talks and blog posts about GCC internals :(
- cygx 6y agoThe move to C++ as implementation language was approved in 2010[1]. The switch got flipped in 2013 with the 4.8 series[2]. [1] https://gcc.gnu.org/legacy-ml/gcc/2010-05/msg00705.html https://gcc.gnu.org/legacy-ml/gcc/2010-05/msg00705.html [2] https://gcc.gnu.org/gcc-4.8/changes.html https://gcc.gnu.org/gcc-4.8/changes.html