From e610549b824fffff1c259b6e00c75d09c19d665e Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 17 Mar 2015 21:37:11 -0400 Subject: cfns.gperf, cfns.h: fix function inlining. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- gcc/cp/cfns.gperf | 6 ------ gcc/cp/cfns.h | 8 +------- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'gcc') diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf index ef1ed083d..91f135e55 100644 --- a/gcc/cp/cfns.gperf +++ b/gcc/cp/cfns.gperf @@ -16,13 +16,7 @@ for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ -#ifdef __GNUC__ -__inline -#endif static unsigned int hash (const char *, unsigned int); -#ifdef __GNUC__ -__inline -#endif const char * libc_name_p (const char *, unsigned int); %} %% diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h index 62cdfab93..17bcd125b 100644 --- a/gcc/cp/cfns.h +++ b/gcc/cp/cfns.h @@ -47,13 +47,7 @@ for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ -#ifdef __GNUC__ -__inline -#endif static unsigned int hash (const char *, unsigned int); -#ifdef __GNUC__ -__inline -#endif const char * libc_name_p (const char *, unsigned int); /* maximum key range = 391, duplicates = 0 */ @@ -124,7 +118,7 @@ hash (register const char *str, register unsigned int len) #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif -- cgit v1.2.3