aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-03-02 15:56:03 +0000
committerJakub Jelinek <jakub@redhat.com>2009-03-02 15:56:03 +0000
commit6219e3cc0e614730261a0663776e0f1f82315fb2 (patch)
treecf4e14e034de1619464c70fe7dc9f2afbeb024c0
parent134a97667f1d50963af87713840ffd2efddfc1f2 (diff)
downloadglibc-6219e3cc0e614730261a0663776e0f1f82315fb2.tar
glibc-6219e3cc0e614730261a0663776e0f1f82315fb2.tar.gz
glibc-6219e3cc0e614730261a0663776e0f1f82315fb2.tar.bz2
glibc-6219e3cc0e614730261a0663776e0f1f82315fb2.zip
* misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
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.
-rw-r--r--ChangeLog5
-rw-r--r--misc/sys/cdefs.h9
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fdb284959e..d83fc5ef2b 100644
--- 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.
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index efdc4f97e0..c9495a479e 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -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.
@@ -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