diff options
author | David S. Miller <davem@davemloft.net> | 2015-10-23 12:49:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-23 12:49:41 +0300 |
commit | ec3661b42257d9a06cf0d318175623ac7a660113 (patch) | |
tree | 00351145ca8f839024370cf1909358845357bf3a /include/linux/compiler-gcc.h | |
parent | c80dbe04612986fd6104b4a1be21681b113b5ac9 (diff) | |
parent | b72a2b01b686f242028038f630555513c9e4de38 (diff) | |
download | linux-ec3661b42257d9a06cf0d318175623ac7a660113.tar.xz |
Merge branch 'ipv6-overflow-arith'
Hannes Frederic Sowa says:
====================
overflow-arith: begin to add support for overflow builtins functions
I add a new header, linux/overflow-arith.h, as the central place to add
overflow and wrap-around checking functions. The reason I am doing so
is that it can make use of compiler supported builtin functions which
can leverage hardware.
As I need this for a fix in the ipv6 stack, which is also included in
this series, I propose to add it sooner than later over Davem's net
tree. This is also the reason why I start slowly with only the one
function I need at this time.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/compiler-gcc.h')
-rw-r--r-- | include/linux/compiler-gcc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index dfaa7b3e9ae9..82c159e0532a 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -237,6 +237,10 @@ #define KASAN_ABI_VERSION 3 #endif +#if GCC_VERSION >= 50000 +#define CC_HAVE_BUILTIN_OVERFLOW +#endif + #endif /* gcc version >= 40000 specific checks */ #if !defined(__noclone) |