This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How inlined are inlined functions?



> >>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
> 
>     Alexandre> break?  Shouldn't such functions only be inlined when
>     Alexandre> they're explicitly declared inline?
> 
> The new code only inlines functions that are marked `inline'.  It
> could be extended to what -O3 does now, but in that case, we would
> have to be careful about some of these things.

You are more of an expert on the standard than I am, but it seems that
the issue of trashing of automatic variables shouldn't be ignored even
if the keyword "inline" appears.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]