Re: Optimize attribute and inlining

2012-07-26 Thread David Brown
On 26/07/2012 14:04, Richard Guenther wrote: On Thu, Jul 26, 2012 at 1:21 PM, David Brown wrote: On 26/07/2012 11:12, Richard Guenther wrote: On Wed, Jul 25, 2012 at 8:25 PM, David Brown wrote: On 25/07/12 17:30, Richard Guenther wrote: On Wed, Jul 25, 2012 at 4:07 PM, Selvaraj, Senthil

Re: Optimize attribute and inlining

2012-07-26 Thread Richard Guenther
On Thu, Jul 26, 2012 at 1:21 PM, David Brown wrote: > On 26/07/2012 11:12, Richard Guenther wrote: >> >> On Wed, Jul 25, 2012 at 8:25 PM, David Brown >> wrote: >>> >>> On 25/07/12 17:30, Richard Guenther wrote: On Wed, Jul 25, 2012 at 4:07 PM, Selvaraj, Senthil_Kumar wrote:

Re: Optimize attribute and inlining

2012-07-26 Thread David Brown
On 26/07/2012 11:12, Richard Guenther wrote: On Wed, Jul 25, 2012 at 8:25 PM, David Brown wrote: On 25/07/12 17:30, Richard Guenther wrote: On Wed, Jul 25, 2012 at 4:07 PM, Selvaraj, Senthil_Kumar wrote: Declaring a function with __attribute__((optimize("O0")) turns off inlining for the t

Re: Optimize attribute and inlining

2012-07-26 Thread Richard Guenther
On Wed, Jul 25, 2012 at 8:25 PM, David Brown wrote: > On 25/07/12 17:30, Richard Guenther wrote: >> >> On Wed, Jul 25, 2012 at 4:07 PM, Selvaraj, Senthil_Kumar >> wrote: >>> >>> Declaring a function with __attribute__((optimize("O0")) turns off >>> inlining for the translation unit (atleast) con

Re: Optimize attribute and inlining

2012-07-25 Thread David Brown
On 25/07/12 17:30, Richard Guenther wrote: On Wed, Jul 25, 2012 at 4:07 PM, Selvaraj, Senthil_Kumar wrote: Declaring a function with __attribute__((optimize("O0")) turns off inlining for the translation unit (atleast) containing the function (see output at the end). Is this expected behavior?

Re: Optimize attribute and inlining

2012-07-25 Thread Richard Guenther
On Wed, Jul 25, 2012 at 4:07 PM, Selvaraj, Senthil_Kumar wrote: > Declaring a function with __attribute__((optimize("O0")) turns off inlining > for the translation unit (atleast) containing the function (see output at the > end). Is this expected behavior? Not really. The optimize attribute pr