[PATCH] Make __always_inline macro compatible with glibc
Sebastian Huber
sebastian.huber@embedded-brains.de
Wed Jan 17 09:42:00 GMT 2018
On 16/01/18 20:30, Yaakov Selkowitz wrote:
> For example, this is used when cross-compiling the Linux kernel on Cygwin.
>
> Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
> ---
> newlib/libc/include/sys/cdefs.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
> index db5f2bf2d..fc564a5c6 100644
> --- a/newlib/libc/include/sys/cdefs.h
> +++ b/newlib/libc/include/sys/cdefs.h
> @@ -385,7 +385,7 @@
> #endif
>
> #if __GNUC_PREREQ__(3, 1) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800)
> -#define __always_inline __attribute__((__always_inline__))
> +#define __always_inline __inline__ __attribute__((__always_inline__))
> #else
> #define __always_inline
> #endif
Which problem resolves this patch? I ask since I added this for FreeBSD
compatibility and here the definition is still the same.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Newlib
mailing list