From 6219e3cc0e614730261a0663776e0f1f82315fb2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 2 Mar 2009 15:56:03 +0000 Subject: * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__ attribute also for non-C99 inline semantics variant. 2009-03-02 Richard Guenther * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__ attribute also for non-C99 inline semantics variant. --- misc/sys/cdefs.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'misc/sys') diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index efdc4f9..c9495a4 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 -- cgit v1.1