]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/compiler-gcc4.h
Disallow gcc versions 4.1.{0,1}
[linux-2.6-omap-h63xx.git] / include / linux / compiler-gcc4.h
index aa426214331bb81002113692a42a0580316d12fa..09992718f9e8e58add025dd8aebc4911f6a6c58f 100644 (file)
@@ -2,6 +2,11 @@
 #error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
 #endif
 
+/* GCC 4.1.[01] miscompiles __weak */
+#if __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 1
+# error Your version of gcc miscompiles the __weak directive
+#endif
+
 #define __used                 __attribute__((__used__))
 #define __must_check           __attribute__((warn_unused_result))
 #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)