aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-07-14 07:43:50 +0000
committerJohn Crispin <blogic@openwrt.org>2015-07-14 07:43:50 +0000
commitc2c5f889574f0f0a93c09aa8502b81d2cb38c1fe (patch)
tree0266652ff1481d485334902d101d3d94602616fc /toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch
parentb49590198a29b72726a673a9226ffb1100ffa111 (diff)
downloadmaster-187ad058-c2c5f889574f0f0a93c09aa8502b81d2cb38c1fe.tar.gz
master-187ad058-c2c5f889574f0f0a93c09aa8502b81d2cb38c1fe.tar.bz2
master-187ad058-c2c5f889574f0f0a93c09aa8502b81d2cb38c1fe.zip
toolchain: fix gcc 4.6 build with gcc5
build error: cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p' cfns.gperf:26:14: error: but not here observed on Arch Linux affected versions gcc 4.6, gcc 4.7 reported & fixed in DragonFlyBSD issue #136 https://github.com/DragonFlyBSD/DPorts/issues/136 Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46355 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch')
-rw-r--r--toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch b/toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch
new file mode 100644
index 0000000000..7ab0d4c7a1
--- /dev/null
+++ b/toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch
@@ -0,0 +1,21 @@
+--- a/gcc/cp/cfns.h
++++ b/gcc/cp/cfns.h
+@@ -53,6 +53,9 @@ __inline
+ 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 @@ hash (register const char *str, register
+ 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)
+ {