summaryrefslogtreecommitdiff
path: root/cross/h8300-elf-gcc34/patches/patch-gcc_cp_cfns.h
diff options
context:
space:
mode:
Diffstat (limited to 'cross/h8300-elf-gcc34/patches/patch-gcc_cp_cfns.h')
-rw-r--r--cross/h8300-elf-gcc34/patches/patch-gcc_cp_cfns.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/cross/h8300-elf-gcc34/patches/patch-gcc_cp_cfns.h b/cross/h8300-elf-gcc34/patches/patch-gcc_cp_cfns.h
new file mode 100644
index 00000000000..c84ca0aa218
--- /dev/null
+++ b/cross/h8300-elf-gcc34/patches/patch-gcc_cp_cfns.h
@@ -0,0 +1,24 @@
+$NetBSD: patch-gcc_cp_cfns.h,v 1.1 2014/09/22 11:51:14 joerg Exp $
+
+--- gcc/cp/cfns.h.orig 2014-09-22 10:57:39.000000000 +0000
++++ gcc/cp/cfns.h
+@@ -34,9 +34,6 @@
+ __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 */
+
+@@ -105,9 +102,6 @@ hash (register const char *str, register
+ return hval + asso_values[(unsigned char)str[len - 1]];
+ }
+
+-#ifdef __GNUC__
+-__inline
+-#endif
+ const char *
+ libc_name_p (register const char *str, register unsigned int len)
+ {