summarylogtreecommitdiffstats
path: root/patch-gcc_cp_cfns.h
diff options
context:
space:
mode:
authorABDULLATIF Mouhamadi2017-05-22 23:17:02 +0200
committerABDULLATIF Mouhamadi2017-05-22 23:17:02 +0200
commitba2850f48602d49f223ad6499566d81a4e6b0351 (patch)
tree5693e289509159c9e4da1f2eef905b67653a6aaa /patch-gcc_cp_cfns.h
downloadaur-gcc-msp430.tar.gz
first commit
Diffstat (limited to 'patch-gcc_cp_cfns.h')
-rw-r--r--patch-gcc_cp_cfns.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/patch-gcc_cp_cfns.h b/patch-gcc_cp_cfns.h
new file mode 100644
index 000000000000..79d3dcf3a9fc
--- /dev/null
+++ b/patch-gcc_cp_cfns.h
@@ -0,0 +1,22 @@
+--- gcc/cp/cfns.h.orig 2015-02-13 08:27:46.000000000 +0200
++++ gcc/cp/cfns.h 2015-02-13 10:23:53.000000000 +0200
+@@ -53,6 +53,9 @@
+ static unsigned int hash (const char *, unsigned int);
+ #ifdef __GNUC__
+ __inline
++#ifdef __GNUC_STDC_INLINE__
++__attribute__ ((__gnu_inline__))
++#endif
+ #endif
+ const char * libc_name_p (const char *, unsigned int);
+ /* maximum key range = 391, duplicates = 0 */
+@@ -96,7 +99,7 @@
+ 400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
+ 400, 400, 400, 400, 400, 400, 400
+ };
+- register int hval = len;
++ register int hval = (int)len;
+
+ switch (hval)
+ {
+