[klibc] [PATCH 1/2] Fix must_inline macro in klibc/compiler.h for gcc-4.3
Jon Ringle
jon at ringle.org
Wed Jul 22 00:09:29 PDT 2009
On Monday 20 July 2009 01:02:59 H. Peter Anvin wrote:
> Jon Ringle wrote:
> > See http://gcc.gnu.org/gcc-4.3/porting_to.html for details.
> > # if __GNUC__ >= 3
> > -# define __must_inline extern __inline__ __attribute__((always_inline))
> > +# ifdef __GNUC_STDC_INLINE__
> > +# define __must_inline extern __inline__ __attribute__((__gnu_inline__))
> > +# else
> > +# define __must_inline extern __inline__ __attribute__((__always_inline__))
> > +# endif
> > # else
>
> Are you sure we don't need both gnu_inline and always_inline here?
Yeah, you're probably right. Here is an amended patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-must_inline-gcc-4.3.patch
Type: text/x-diff
Size: 975 bytes
Desc: not available
URL: <http://www.zytor.com/pipermail/klibc/attachments/20090722/9210c0bc/attachment.bin>
More information about the klibc
mailing list