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]
Other format: [Raw text]

Re: Inlining (was: GCC 3.3 release criteria)


Gabriel Dos Reis <gdr at integrable-solutions dot net> writes:

> Olivier Galibert <galibert at pobox dot 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


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