aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/linux/compiler-gcc.h')
-rw-r--r--tools/include/linux/compiler-gcc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/linux/compiler-gcc.h b/tools/include/linux/compiler-gcc.h
index 0d35f18006a1..95c072b70d0e 100644
--- a/tools/include/linux/compiler-gcc.h
+++ b/tools/include/linux/compiler-gcc.h
@@ -6,9 +6,11 @@
6/* 6/*
7 * Common definitions for all gcc versions go here. 7 * Common definitions for all gcc versions go here.
8 */ 8 */
9#ifndef GCC_VERSION
9#define GCC_VERSION (__GNUC__ * 10000 \ 10#define GCC_VERSION (__GNUC__ * 10000 \
10 + __GNUC_MINOR__ * 100 \ 11 + __GNUC_MINOR__ * 100 \
11 + __GNUC_PATCHLEVEL__) 12 + __GNUC_PATCHLEVEL__)
13#endif
12 14
13#if GCC_VERSION >= 70000 && !defined(__CHECKER__) 15#if GCC_VERSION >= 70000 && !defined(__CHECKER__)
14# define __fallthrough __attribute__ ((fallthrough)) 16# define __fallthrough __attribute__ ((fallthrough))