Function-specific optimization flags and inlining
Bingfeng Mei
bmei@broadcom.com
Wed Sep 8 12:28:00 GMT 2010
I dug a little deeper into internal manual and source code.
I think currently only functions with target-specific attribute
are not inlinable, not with function-specific optimize attribute.
Bingfeng
> -----Original Message-----
> From: Richard Guenther [mailto:richard.guenther@gmail.com]
> Sent: 08 September 2010 11:26
> To: Bingfeng Mei
> Cc: gcc@gcc.gnu.org
> Subject: Re: Function-specific optimization flags and inlining
>
> On Wed, Sep 8, 2010 at 12:07 PM, Bingfeng Mei <bmei@broadcom.com> wrote:
> > Hello,
> > I found that currently if a function with specific optimization flags
> is inlined,
> > the flags are lost during compilation. This will happen much more
> often with
> > LTO (which still cannot handle it in bytecode). I wonder whether this
> > is the best way to do it. Maybe we just don't inline any function
> with
> > specific optimization flags or have an extra option to choose that.
> What do
> > you think?
>
> I think they are already inlining-disabled. Maybe check why it doesn't
> work for you?
>
> Richard.
>
> > Cheers,
> > Bingfeng Mei
> >
> >
More information about the Gcc
mailing list