[PATCH] testsuite: add -fwrapv for 950704-1.c

Jeff Law jeffreyalaw@gmail.com
Wed Jun 23 18:46:16 GMT 2021



On 6/21/2021 10:51 AM, Xi Ruoyao via Gcc-patches wrote:
> This test relies on wrap behavior of signed overflow.  Without -fwrapv
> it is known to fail on mips (and maybe some other targets as well).
>
> gcc/testsuite/
>
> 	* gcc.c-torture/execute/950704-1.c: Add -fwrapv to avoid
> 	  undefined behavior.
Thanks.  I've installed this on the trunk.
jeff



More information about the Gcc-patches mailing list