This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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. 		 	   		  

Attachment: patch-overflow-negate-2.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]