gcc 4.2.1: backport cfns inline fix

This commit is contained in:
rofl0r 2019-10-22 17:12:26 +00:00
parent 5dfaec7669
commit 3889a9b28a
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--- gcc-4.2.1.orig/gcc/cp/cfns.h
+++ gcc-4.2.1/gcc/cp/cfns.h
@@ -37,6 +37,9 @@
#ifdef __GNUC__
__inline
#endif
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
const char * libc_name_p (const char *, unsigned int);
/* maximum key range = 391, duplicates = 0 */
@@ -107,6 +110,9 @@
#ifdef __GNUC__
__inline
+#endif
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
#endif
const char *
libc_name_p (register const char *str, register unsigned int len)