X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fmkimage%2Fpatches%2F080-remove_compiler_check.patch;fp=tools%2Fmkimage%2Fpatches%2F080-remove_compiler_check.patch;h=3e71ad5b07502cfccbebeabdac719d2a2e2c8784;hb=b759373524ee98afb11f67b6f03791d231403f5a;hp=0000000000000000000000000000000000000000;hpb=c73005f2890ce6129f923a07bf8ed03894f72fea;p=openwrt-github%2F.git diff --git a/tools/mkimage/patches/080-remove_compiler_check.patch b/tools/mkimage/patches/080-remove_compiler_check.patch new file mode 100644 index 0000000000..3e71ad5b07 --- /dev/null +++ b/tools/mkimage/patches/080-remove_compiler_check.patch @@ -0,0 +1,16 @@ +--- a/include/linux/compiler-gcc4.h ++++ b/include/linux/compiler-gcc4.h +@@ -2,13 +2,6 @@ + #error "Please don't include directly, include instead." + #endif + +-/* GCC 4.1.[01] miscompiles __weak */ +-#ifdef __KERNEL__ +-# if GCC_VERSION >= 40100 && GCC_VERSION <= 40101 +-# error Your version of gcc miscompiles the __weak directive +-# endif +-#endif +- + #define __used __attribute__((__used__)) + #define __must_check __attribute__((warn_unused_result)) + #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)