Re: what is static inline void tvec_base

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

 





On Sat, Aug 28, 2010 at 5:39 PM, Greg Freemyer <greg.freemyer@xxxxxxxxx> wrote:

http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Inline.html

note the last sentence of that doc

              GCC does not inline any functions when not optimizing
unless you specify the `always_inline' attribute for the function,
like this:

Thus the inline keyword is always ignored by gcc if your not compiling
with optimization enabled.

Ok I read that link 
"GCC does not inline any functions when not optimizing unless you specify the `always_inline' attribute for the function, like this:" 
you mean to say the use of word static inline in  functions written in timer.c  will make sense only when gcc is used with optimization enabled.
So if this is the case then when some one is compiling his linux kernel is by default optimization enabled in that or Makefiles take care of this.
What is the default behavior of gcc? 
Is it always in optimized mode or we have to do it manually?

[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