diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-03-02 15:56:03 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-03-02 15:56:03 +0000 |
commit | 6219e3cc0e614730261a0663776e0f1f82315fb2 (patch) | |
tree | cf4e14e034de1619464c70fe7dc9f2afbeb024c0 /misc | |
parent | 134a97667f1d50963af87713840ffd2efddfc1f2 (diff) | |
download | glibc-6219e3cc0e614730261a0663776e0f1f82315fb2.tar.gz glibc-6219e3cc0e614730261a0663776e0f1f82315fb2.tar.xz 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.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/sys/cdefs.h | 9 |
1 files changed, 7 insertions, 2 deletions
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 |