]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/linux/compiler-gcc4.h
Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6.git] / include / linux / compiler-gcc4.h
index ab3af40a53c6d6ffbc4b296fa46ed656e9099dc7..94dea3ffbfa19576e2cd8bb59b56658465101b49 100644 (file)
 #endif
 
 #endif
+
+#if __GNUC_MINOR__ > 0
+#define __compiletime_object_size(obj) __builtin_object_size(obj, 0)
+#endif
+#if __GNUC_MINOR__ >= 4
+#define __compiletime_warning(message) __attribute__((warning(message)))
+#define __compiletime_error(message) __attribute__((error(message)))
+#endif