From ee868c89aee79e85af2e6d3e2c1289b78f6b3078 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 3 Oct 2007 18:13:55 +0000 Subject: 2007-10-03 Jakub Jelinek * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+ add __artificial__ attribute. --- misc/sys/cdefs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'misc/sys') diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 4650d5f..56b7f95 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -294,8 +294,13 @@ #if !defined __cplusplus || __GNUC_PREREQ (4,3) # if defined __GNUC_STDC_INLINE__ || defined __cplusplus # define __extern_inline extern __inline __attribute__ ((__gnu_inline__)) -# define __extern_always_inline \ +# if __GNUC_PREREQ (4,3) +# define __extern_always_inline \ + extern __always_inline __attribute__ ((__gnu_inline__, __artificial__)) +# else +# define __extern_always_inline \ extern __always_inline __attribute__ ((__gnu_inline__)) +# endif # else # define __extern_inline extern __inline # define __extern_always_inline extern __always_inline -- cgit v1.1