Preventing link time optimization from inlining

Adam adam.j.lewis@gmail.com
Thu Dec 20 18:25:00 GMT 2012


Hi,

When using -flto is there a way to tell gcc to not inline a particular function? attribute noinline appears to have no effect. I am using gcc 4.7.2. The use case is for certain functions that cause optimization problems when they are inlined. An example is when the function is throwing a c++ exception. 

Thanks,
Adam



More information about the Gcc mailing list