g++v5.2.1 problems with LTO and funtional behavior

Mason slash.tmp@free.fr
Tue Feb 9 09:20:00 GMT 2016


On 08/02/2016 19:09, Rigoberto L. Salgado Reyes wrote:

>      I have a question, maybe a foolish one but here I go, i'm using g++ 
> v5.2.1(the one in the oSUSE Leap), and when I set the flag "-flto", the 
> optimization mess with the heavy use of functional programming features 
> presents in c++14 that I have in my code. There is any formula to active 
> LTO and don't mess with high order functions?

Hello,

I think it might help the GCC developers if you would provide a small
example of a program that works with LTO disabled, and breaks once you
enable LTO.

Regards.



More information about the Gcc-help mailing list