[cfe-dev] Clang and glibc 2.25 incompatibilities?

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Sat Apr 1 09:42:55 PDT 2017


On Sat, Apr 01, 2017 at 10:31:54AM -0400, Philippe Proulx via cfe-dev wrote:
> Why does Clang define __GNUC__ by default?

Because it creates less problems than the alternatives. There is a lot
of code in the wild that essentially assumes a random version of gcc for
a lot of code. Given that Clang is implementing almost all the GCC
extensions of GCC 4.2.1, it claims to be that version. It means a bit
more work for newer code, but avoids breaking a lot of older code.

> What's the real solution here?

Create a bug report against glibc.

Joerg



More information about the cfe-dev mailing list