This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fobey-inline
- From: Andreas Schwab <schwab at suse dot de>
- To: Andi Kleen <ak at suse dot de>
- Cc: Andrew Haley <aph at redhat dot com>, neil at daikokuya dot co dot uk,lars dot segerlund at comsys dot se, gcc at gcc dot gnu dot org
- Date: Fri, 14 Mar 2003 10:57:33 +0100
- Subject: Re: -fobey-inline
- References: <200303131400.h2DE0ZB24570@pc960.cambridge.arm.com.suse.lists.egcs><3E709381.5090500@comsys.se.suse.lists.egcs><20030313192518.GF21522@daikokuya.co.uk.suse.lists.egcs><15984.56422.24671.261942@cuddles.cambridge.redhat.com.suse.lists.egcs><p73isun3pjh.fsf@amdsimf.suse.de>
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."