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

2021-06-23 Thread Jeff Law via Gcc-patches
On 6/22/2021 3:41 AM, Xi Ruoyao via Gcc-patches wrote: On Tue, 2021-06-22 at 10:37 +0200, Richard Biener wrote: On Mon, Jun 21, 2021 at 6:53 PM 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 som

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

2021-06-23 Thread Jeff Law via Gcc-patches
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 undefin

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

2021-06-22 Thread Xi Ruoyao via Gcc-patches
On Tue, 2021-06-22 at 10:37 +0200, Richard Biener wrote: > On Mon, Jun 21, 2021 at 6:53 PM 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). > > OK. I don

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

2021-06-22 Thread Richard Biener via Gcc-patches
On Mon, Jun 21, 2021 at 6:53 PM 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). OK. Richard. > gcc/testsuite/ > > * gcc.c-torture/execute/950704-1.c: Add -fw

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

2021-06-21 Thread Xi Ruoyao via Gcc-patches
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. --- gcc/testsuite/gcc.c-torture/execute/950704-