compiler: Ensure __builtin_*_overflow() support
Both gcc and clang support this for a long time. Make sure the feature is present. Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
committed by
Tom Rini
parent
35f75d2a46
commit
a29805d822
@@ -70,6 +70,13 @@ extern void __chk_io_ptr(const volatile void __iomem *);
|
|||||||
#error "Unknown compiler"
|
#error "Unknown compiler"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* At least gcc 5.1 or clang 8 are needed.
|
||||||
|
*/
|
||||||
|
#ifndef COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW
|
||||||
|
#error Unsupported compiler
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some architectures need to provide custom definitions of macros provided
|
* Some architectures need to provide custom definitions of macros provided
|
||||||
* by linux/compiler-*.h, and can do so using asm/compiler.h. We include that
|
* by linux/compiler-*.h, and can do so using asm/compiler.h. We include that
|
||||||
|
|||||||
Reference in New Issue
Block a user