[klibc] [PATCH 1/2] Fix must_inline macro in klibc/compiler.h for gcc-4.3
H. Peter Anvin
hpa at zytor.com
Sun Jul 19 22:02:59 PDT 2009
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?
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
More information about the klibc
mailing list