This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]