Re: C: inline without forcing?

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

 



On Wed, Jun 02, 2021 at 11:25:23AM -0400, Danielle Church via Gcc-help wrote:
> In any case; does this mean that the only way to put a function
> definition into a file without GCC emitting standalone code for it is
> to use the C99 inline keyword, which alters the behavior of the
> optimizer?

Does it?  What makes you think it does?

There are some differences to heuristics, but are you actually seeing
any, or is this a hypothetical thing?

(And heuristics will change all the time between GCC releases).

> Is there no way to get the code-emit behavior (inline the
> function or emit a TU-external reference, don't emit standalone
> definition) without the optimizer changes (more likely to inline the
> function, even if it's a bad idea)?

extern attribute((gnu_inline))


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux