Re: [PATCH] Fix c-c++-common/ubsan/overflow-negate-2.c

2014-02-14 Thread Richard Earnshaw
On 14/02/14 09:57, Bernd Edlinger wrote: > Hi, > > this test case fails on ARM, because this target has by default unsigned char > type. > > Attached please find my proposed (almost obvious) fix for this, > by using signed char, instead of char alone. > > > Boot-Strapped and tested on X86_64 a

[PATCH] Fix c-c++-common/ubsan/overflow-negate-2.c

2014-02-14 Thread Bernd Edlinger
Hi, this test case fails on ARM, because this target has by default unsigned char type. Attached please find my proposed (almost obvious) fix for this, by using signed char, instead of char alone. Boot-Strapped and tested on X86_64 and ARM. Thanks Bernd.