X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fgcc%2Fpatches%2F4.6-linaro%2F999-gcc5-gcc_cp_cfns_h.patch;fp=toolchain%2Fgcc%2Fpatches%2F4.6-linaro%2F999-gcc5-gcc_cp_cfns_h.patch;h=7ab0d4c7a1695c572c32bbde6d4d2c492cf9c4f7;hb=b2739f37d641f613ab3b1d254ca5c68fde587a21;hp=0000000000000000000000000000000000000000;hpb=16fb050055ad792a8dae8db8deb255e22ad3ced2;p=openwrt%2F.git 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) + {