* misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
authorJakub Jelinek <jakub@redhat.com>
Mon, 2 Mar 2009 15:56:03 +0000 (15:56 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 2 Mar 2009 15:56:03 +0000 (15:56 +0000)
attribute also for non-C99 inline semantics variant.
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.

ChangeLog
misc/sys/cdefs.h

index fdb2849..d83fc5e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
index efdc4f9..c9495a4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2001, 2002, 2004, 2005, 2006, 2007
+/* Copyright (C) 1992-2001, 2002, 2004, 2005, 2006, 2007, 2009
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
 #  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