Author: nbd
Date: 2014-12-01 12:07:30 +0100 (Mon, 01 Dec 2014)
New Revision: 43458

Added:
   trunk/tools/mkimage/patches/080-remove_compiler_check.patch
Log:
mkimage: remove check for miscompiled __weak

Signed-off-by: Felix Fietkau <[email protected]>

Added: trunk/tools/mkimage/patches/080-remove_compiler_check.patch
===================================================================
--- trunk/tools/mkimage/patches/080-remove_compiler_check.patch                 
        (rev 0)
+++ trunk/tools/mkimage/patches/080-remove_compiler_check.patch 2014-12-01 
11:07:30 UTC (rev 43458)
@@ -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 <linux/compiler-gcc4.h> directly, include 
<linux/compiler.h> 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)
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to