GCC 5.1 Released
kthreadd writes: Version 5.1 of GCC, the primary free software compiler for GNU and other operating systems, has been released. Version 5 includes many changes from the 4.x series. Starting with this release the default compiler mode for C is gnu11 instead of the older gnu89. New features include new compiler warnings, support for Cilk Plus. There is a new attribute no_reorder which prevents reordering of selected symbols against other such symbols or inline assembler, enabling link-time optimization of the Linux kernel without having to use -fno-toplevel-reorder. Two new preprocessor directives have also been added, __has_include and __has_include_next, to test the availability of headers. Also, there's a new C++ ABI due to changes to libstdc++. The old ABI is however still supported and can be enabled using a macro. Other changes include full support for C++14. Also the Fortran frontend has received some improvements and users will now be able to have colorized diagnostics, and the Go frontend has been updated to the Go 1.4.2 release.
There's also a new, undocumented attribute called nsa_worm that defaults to 1, injecting NSA surveillance code upon compiling.
Frist post. GCC rulz.
People still use GCC?
The whole world has moved onto LLVM or Intel.
It is explained well here: http://www.spinics.net/lists/linux-kbuild/msg11056.html
According to this page outlining GCC's backend mechanism, I can see why it's *slow* at times.
One of my friends told me that tcc compiled a linux kernel in 10 seconds
c++ is now officially more complicated than Starbuck's menu.
Given the nice, modular nature of LLVM, I would think even the GCC developers would find it to be a more enjoyable best to work on.
Any idea why most GCC developers don't simply port their front-ends / back-ends of choice to LLVM, and walk away from GCC?
I know there's the licensing issue, which I assume matters to some heavy-duty OSS advocates. But in my experience most programmers who work with OSS aren't super passionate about GPL vs. Berkeley -style licensing.
with 4.9.2!
Well you're on Gentoo so it's self inflicted. =)
The version goes from 4.9.2 to 5.1, why?
Ah yes, I remember it well. Before the dreaded 4.x series. Huge compile times, massive efforts to support math even when the target device has no need of it. Refusing to compile itself unless the same math library is present, gods forbid you have to compile it from source as well. A horrid experience, forging ahead into the mire of language gurus that have no clue, cause this by god is GNU!
Hi Slashdot. In the tagline beneath the article title, I believe you meant to say "Brand GNU".
A republic cannot succeed till it contains a certain body of men imbued with the principles of justice and honour.
I don't even want to go into how one company I worked for mandated that we always compile with full optimization (management didn't understand the concept) and this made our set-top-box software for the transputer NOT WORK, even though it worked on lower optimization levels.
I complained about that decision and was fired within an hour.
Don't worry, I bet You messed up CFLAGS, so have fun doing `emerge -Nve @world' again.
Ah the powerful effects of a performance placebo
Slashdot: where don knuth is an idiot because he cant grasp the awesome power of php
You were probably fired for the way in which you complained: "This is a stupid decision. You guys have no concept of how this works. Your decision is breaking my pristinely bugfree code. This is all your fault" rather than educating management and helping them make an informed decision: "The reason why the software is working is because of bugs in the toolchain's optimization settings. Instead of enabling full optimization, we should instead enable safe and well tested optimizations such as -Os" ... I'm sure if you said the latter, you would not have been fired and perhaps your customers would have benefitted.