News for hackers. Stuff that matters.
Re:GCC 4.9 is doing “some seriously crazy shit” according to... by parax on Saturday July 26, 2014 @06:16AM (#8089367)
Just use LLVM: http://llvm.org/
Re:GCC 4.9 is doing “some seriously crazy shit” according to... by keeperofdakeys on Saturday July 26, 2014 @06:24AM (#8089384)
Unfortunately the linux kernel still relies on some gnu C extensions for some low-level control of the output. I don't know if comparable stuff exists in llvm and clang, and if so, if linus has any plans on supporting them. However this is just bugs in a new compiler, and the Linux kernel is probably one of those things that hits cornercases.
Re:GCC 4.9 is doing “some seriously crazy shit” according to... by exDM69 on Saturday July 26, 2014 @08:13AM (#8089533)
I'm not sure which C extensions do you mean, but Clang supports most of the same GNU extensions that GCC does. Indeed, it's one of the goals of Clang to be compatible with GCC whenever possible. However, there might be some things that are not (yet?) supported.

And the kernel can be compiled using LLVM and Clang, but not quite in all configurations. But compiling mainline kernel for x86 using LLVM was achieved some years ago.

Re:GCC 4.9 is doing “some seriously crazy shit” according to... by gillianseed on Saturday July 26, 2014 @11:29AM (#8089918)
A lot (if not the majority) of GCC extensions used by Linux exist in GCC because the Linux kernel developers requested them in order to have a great level of control in terms of the generated machine code, so it's not exactly surprising that the Linux kernel relies on a lot of said GCC extensions.

Many of these extensions which the Linux kernel relies on have been added to LLVM, but obviously not all, and from the looks of it some never will, which means either Linux needs to refrain from using said extensions, or building Linux using LLVM will continue to require patching.

Re:GCC 4.9 is doing “some seriously crazy shit” according to... by kzrdude on Saturday July 26, 2014 @06:18AM (#8089371)
And if you find one bug in llvm, switch back?
Re:GCC 4.9 is doing “some seriously crazy shit” according to... by LeoNatan25 on Saturday July 26, 2014 @06:40AM (#8089410)
Move to MSVC++ :P
Re:GCC 4.9 is doing “some seriously crazy shit” according to... by a3_nm on Saturday July 26, 2014 @06:21AM (#8089378)
People are working on it http://llvm.linuxfoundation.org but it is not a trivial thing to do.
Re:GCC 4.9 is doing “some seriously crazy shit” according to... by userbinator on Saturday July 26, 2014 @11:25AM (#8089914)
The optimiser in LLVM does some even more "seriously crazy shit" - usually revolving around obscure edge cases involving officially undefined behaviour. Linus would definitely not be happy with that.
Re:GCC 4.9 is doing “some seriously crazy shit” according to... by _stephan on Saturday July 26, 2014 @06:24AM (#8089386)
As if LLVM had no bugs.