Re: Preventing link time optimization from inlining

2012-12-21 Thread Adam Lewis
On Fri, Dec 21, 2012 at 11:08 AM, Richard Günther wrote: > Adam Lewis wrote: > >>On Fri, Dec 21, 2012 at 4:41 AM, Richard Biener >>wrote: >> >>> On Thu, Dec 20, 2012 at 5:33 PM, Adam wrote: >>> > Hi, >>> > >>> > When using -flto is there a way to tell gcc to not inline a >>particular >>> functio

Re: Preventing link time optimization from inlining

2012-12-21 Thread Richard Günther
Adam Lewis wrote: >On Fri, Dec 21, 2012 at 4:41 AM, Richard Biener >wrote: > >> On Thu, Dec 20, 2012 at 5:33 PM, Adam wrote: >> > 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.

Re: Preventing link time optimization from inlining

2012-12-21 Thread Adam Lewis
On Fri, Dec 21, 2012 at 4:41 AM, Richard Biener wrote: > > On Thu, Dec 20, 2012 at 5:33 PM, Adam wrote: > > 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 fo

Re: Preventing link time optimization from inlining

2012-12-21 Thread Richard Biener
On Thu, Dec 20, 2012 at 5:33 PM, Adam wrote: > 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

Preventing link time optimization from inlining

2012-12-20 Thread Adam
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+