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: -fobey-inline (was Re: gcc and inlining)


Andrew Haley <aph at redhat dot com> writes:

> Yeah.  I gotta admit that 
> 
> #define inline          __inline__ __attribute__((always_inline))
> 
> solves the problem so completely that an new gcc option is unnecessary.
> It can even be written "gcc -D inline=__inline__ __attribute__((always_inline))"

Actually not. First you forgot the `"'s, but even when you add them 
they are in grave danger of being eaten by various Makefiles who 
first execute a shell script or similar to run the compiler.
I had this problem with the Linux kernel Makefiles. The only thing that worked
reliable was

-include file 

in the Makefile and putting the define into file. But that's quite ugly.

-fobey-inline would be much easier.

-Andi


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