News for hackers. Stuff that matters.
Re:New optimizations for X86 in upcoming GCC 5.0 by justincormack on Saturday November 29, 2014 @06:27PM (#8675419)
Here is a more general list of gcc 5 changes https://gcc.gnu.org/gcc-5/changes.html

EDIT was looking at this for __builtin_mul_overflow which apparently are in clang already, for testing overflow of arbitrary types.

Re:New optimizations for X86 in upcoming GCC 5.0 by username223 on Saturday November 29, 2014 @09:42PM (#8675795)
> ... gcc 5 changes ...

I'm disappointed it says literally nothing about auto-vectorization. I had to do an incredible amount of hand-holding to get GFortran 4.9's auto-vectorization to work worth anything. A few experiments with C code showed that GCC 4.9 was just plain bad at it compared to even Clang, much less ICC. If I work on that project again, I'll probably look into getting DragonEgg [1] to work so I can get decent optimization without contorting the code as much.

The OP mentions an important case with loads and stores of 3D data, but GCC needs to up its game in more ways than that.

[1] http://dragonegg.llvm.org/

Re:New optimizations for X86 in upcoming GCC 5.0 by cremno on Saturday November 29, 2014 @06:53PM (#8675457)
Actually Clang doesn't implement the listed built-in functions (yet?). They're type-generic versions.

http://llvm.org/releases/3.5.0/tools/clang/docs/LanguageExte...

http://clang.llvm.org/docs/LanguageExtensions.html#checked-a...

Re:New optimizations for X86 in upcoming GCC 5.0 by justincormack on Saturday November 29, 2014 @07:05PM (#8675481)
Ah yes. The generic versions are nicer to use, and can be used for mixed types. It seems gcc will implement the clang compatible ones too.
Re:New optimizations for X86 in upcoming GCC 5.0 by nly on Saturday November 29, 2014 @09:57PM (#8675821)
I'm guessing from the libstdc++ change log that GCC 5.x will instigate an ABI break?