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


Andi Kleen <ak at suse dot de> writes:

|> 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 

I also got it working with
-Dinline=__inline__\ __attribute__\(\(always_inline\)\)

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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