This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Stick __artificial__ attribute also on non-C99 semantics__extern_always_inline
- From: Richard Guenther <rguenther at suse dot de>
- To: libc-alpha at sourceware dot org
- Cc: Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 2 Mar 2009 11:13:33 +0100 (CET)
- Subject: [PATCH] Stick __artificial__ attribute also on non-C99 semantics__extern_always_inline
This was probably an oversight. It is needed for non-C99 inline
semantics _FORTIFY_SOURCE implementations for GCC to properly warn.
Thanks,
Richard.
2009-03-02 Richard Guenther <rguenther@suse.de>
* misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
attribute also for non-C99 inline semantics variant.
--- misc/sys/cdefs.h.orig 2009-02-27 16:05:10.000000000 +0100
+++ misc/sys/cdefs.h 2009-02-27 16:06:32.000000000 +0100
@@ -303,7 +303,12 @@
# endif
# else
# define __extern_inline extern __inline
-# define __extern_always_inline extern __always_inline
+# if __GNUC_PREREQ (4,3)
+# define __extern_always_inline \
+ extern __always_inline __attribute__ ((__artificial__))
+# else
+# define __extern_always_inline extern __always_inline
+# endif
# endif
#endif