Inlining (was: GCC 3.3 release criteria)
Andi Kleen
ak@suse.de
Wed Feb 26 11:47:00 GMT 2003
Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
> Olivier Galibert <galibert@pobox.com> writes:
>
> | On Wed, Feb 26, 2003 at 04:37:43AM +0100, Gabriel Dos Reis wrote:
> | > Does -fobey-inline differ from __attribute__((always_inline))?
> |
> | Yes, with -fobey-inline you only need to change the makefiles, not the
> | source.
>
> Ah, I see what you mean.
>
> This
>
> -Dinline="__attribute__((always_inline)) inline"
>
> (or something to that effect) was suggested earlier. It just needs
> Makefile change.
The naive version of this often breaks because the shell does
funny things to the quotes, especially when the makefile uses a shell
script to call the compiler.
-include somefile.h
and putting it in there works however.
Still this is a semantics change to older compilers, because it implicitely
forces -Werror -Winline
There are some functions that are not inlined for legitimate reasons and
these error out now.
-Andi
More information about the Gcc
mailing list