aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-10-03 18:13:55 +0000
committerUlrich Drepper <drepper@redhat.com>2007-10-03 18:13:55 +0000
commitee868c89aee79e85af2e6d3e2c1289b78f6b3078 (patch)
tree550f1bc9e57af7312665b326429a0fdf2f57d504
parent6e682cf5c1abaa1689549ea4208269ff4939d824 (diff)
downloadglibc-ee868c89aee79e85af2e6d3e2c1289b78f6b3078.zip
glibc-ee868c89aee79e85af2e6d3e2c1289b78f6b3078.tar.gz
glibc-ee868c89aee79e85af2e6d3e2c1289b78f6b3078.tar.bz2
2007-10-03 Jakub Jelinek
* misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+ add __artificial__ attribute.
-rw-r--r--ChangeLog5
-rw-r--r--misc/sys/cdefs.h7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 50d30f1..f25bf7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-03 Jakub Jelinek
+
+ * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
+ add __artificial__ attribute.
+
2007-10-02 Ulrich Drepper <drepper@redhat.com>
* string/strcoll_l.c (STRCOLL): Correct handling of switching from
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