From 6219e3cc0e614730261a0663776e0f1f82315fb2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 2 Mar 2009 15:56:03 +0000 Subject: [PATCH] * 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. --- ChangeLog | 5 +++++ misc/sys/cdefs.h | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fdb2849..d83fc5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-02 Richard Guenther + + * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__ + attribute also for non-C99 inline semantics variant. + 2009-02-12 Carlos Eduardo Seo * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file. 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 -- 2.7.4