summaryrefslogtreecommitdiff
path: root/tools/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
authorWolfram Sang <wsa@kernel.org>2021-10-11 08:15:48 +0200
committerWolfram Sang <wsa@kernel.org>2021-10-11 08:15:48 +0200
commitc5c34f5793f384ed2895584c6e2350b059c3f161 (patch)
tree14a73568207fb3d38d7aa43439493ac8bc906bde /tools/include/linux/compiler-gcc.h
parent669b2e4aa1a869def4dc207ea084fdd77366d646 (diff)
parent64570fbc14f8d7cb3fe3995f20e26bc25ce4b2cc (diff)
Merge branch 'i2c/for-current' into i2c/for-mergewindow
Diffstat (limited to 'tools/include/linux/compiler-gcc.h')
-rw-r--r--tools/include/linux/compiler-gcc.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/include/linux/compiler-gcc.h b/tools/include/linux/compiler-gcc.h
index 95c072b70d0e..8816f06fc6c7 100644
--- a/tools/include/linux/compiler-gcc.h
+++ b/tools/include/linux/compiler-gcc.h
@@ -16,9 +16,9 @@
# define __fallthrough __attribute__ ((fallthrough))
#endif
-#if GCC_VERSION >= 40300
+#if __has_attribute(__error__)
# define __compiletime_error(message) __attribute__((error(message)))
-#endif /* GCC_VERSION >= 40300 */
+#endif
/* &a[0] degrades to a pointer: a different type from an array */
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
@@ -38,7 +38,3 @@
#endif
#define __printf(a, b) __attribute__((format(printf, a, b)))
#define __scanf(a, b) __attribute__((format(scanf, a, b)))
-
-#if GCC_VERSION >= 50100
-#define COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 1
-#endif