This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Preventing link time optimization from inlining
- From: Adam <adam dot j dot lewis at gmail dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 20 Dec 2012 11:33:23 -0500
- Subject: Preventing link time optimization from inlining
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