Re: inline keyword

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 11, 2016 at 10:47:27AM -0800, Greg KH wrote:
> On Fri, Mar 11, 2016 at 01:39:53PM -0500, Wenda Ni wrote:
> > Hi all,
> > 
> > For a function that is defined static but without an explicit "inline" keyword,
> > is there a possibility that compiler will optimize it to be a static inline
> > function?
> 
> Yes there is.
>
see -finline-small-functions/-finline-functions-called-once in the gcc manual,
which are enabled by -O2 but can be controlled via -finline-limit and
-fkeep-inline-functions.

thx!
hofrat

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux