diff mbox

Fix gcc.c-torture/execute/920612-1.c

Message ID alpine.LNX.2.00.1105271600060.810@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener May 27, 2011, 2:01 p.m. UTC
The test contains undefined signed integer overflow and fails with
a patch I have in testing.  Fixed by adding -fwrapv.

Richard.

2011-05-27  Richard Guenther  <rguenther@suse.de>

	* gcc.c-torture/execute/920612-1.x: Add -fwrapv.
diff mbox

Patch

Index: gcc/testsuite/gcc.c-torture/execute/920612-1.x
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/920612-1.x	(revision 0)
+++ gcc/testsuite/gcc.c-torture/execute/920612-1.x	(revision 0)
@@ -0,0 +1,2 @@ 
+set additional_flags "-fwrapv"
+return 0