Inlining (was: GCC 3.3 release criteria)

Gabriel Dos Reis gdr@integrable-solutions.net
Wed Feb 26 11:53:00 GMT 2003


Andi Kleen <ak@suse.de> writes:

| 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

Well, -fobey-inline is also  semantics change to older compilers.

| forces -Werror -Winline

Why so?

-- Gaby



More information about the Gcc mailing list