X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Flinux%2Fcompiler-gcc4.h;h=450fa597c94d22dce8cf28d6387d04145c046f97;hb=bc47ab0241c7c86da4f5e5f82fbca7d45387c18d;hp=aa426214331bb81002113692a42a0580316d12fa;hpb=f153b82121b0366fe0e5f9553545cce237335175;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h index aa42621..450fa59 100644 --- a/include/linux/compiler-gcc4.h +++ b/include/linux/compiler-gcc4.h @@ -2,6 +2,13 @@ #error "Please don't include directly, include instead." #endif +/* GCC 4.1.[01] miscompiles __weak */ +#ifdef __KERNEL__ +# if __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 1 +# 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)