Re: [RFC 1/3] compiler.h: enable builtin overflow checkers and add fallback code

2015-07-21 Thread Ingo Molnar
Linus Cc:-ed so he can chime in if he wants to. Thanks, Ingo * Rasmus Villemoes wrote: > On Mon, Jul 20 2015, Sasha Levin wrote: > > > On 07/19/2015 07:17 PM, Rasmus Villemoes wrote: > >> Last year, Sasha Levin suggested adding wrappers for the > >> __builtin_*_overflow functions in

Re: [RFC 1/3] compiler.h: enable builtin overflow checkers and add fallback code

2015-07-20 Thread Rasmus Villemoes
On Mon, Jul 20 2015, Sasha Levin wrote: > On 07/19/2015 07:17 PM, Rasmus Villemoes wrote: >> Last year, Sasha Levin suggested adding wrappers for the >> __builtin_*_overflow functions introduced with gcc 5.1 (based on >> similar, but type-specific, functions in clang). This is another >> attempt

Re: [RFC 1/3] compiler.h: enable builtin overflow checkers and add fallback code

2015-07-19 Thread Sasha Levin
On 07/19/2015 07:17 PM, Rasmus Villemoes wrote: > Last year, Sasha Levin suggested adding wrappers for the > __builtin_*_overflow functions introduced with gcc 5.1 (based on > similar, but type-specific, functions in clang). This is another > attempt at providing such wrappers and fallback code for

[RFC 1/3] compiler.h: enable builtin overflow checkers and add fallback code

2015-07-19 Thread Rasmus Villemoes
Last year, Sasha Levin suggested adding wrappers for the __builtin_*_overflow functions introduced with gcc 5.1 (based on similar, but type-specific, functions in clang). This is another attempt at providing such wrappers and fallback code for older compilers. There are a few problems with the 'a+