Rebased from upstream / out of band repository.
[librecmc/librecmc.git] / tools / mkimage / patches / 080-remove_compiler_check.patch
1 --- a/include/linux/compiler-gcc.h
2 +++ b/include/linux/compiler-gcc.h
3 @@ -146,13 +146,6 @@
4  
5  #if GCC_VERSION >= 40000
6  
7 -/* GCC 4.1.[01] miscompiles __weak */
8 -#ifdef __KERNEL__
9 -# if GCC_VERSION >= 40100 &&  GCC_VERSION <= 40101
10 -#  error Your version of gcc miscompiles the __weak directive
11 -# endif
12 -#endif
13 -
14  #define __used                 __attribute__((__used__))
15  #define __compiler_offsetof(a, b)                                      \
16         __builtin_offsetof(a, b)