On Mon, Jun 21, 2021 at 6:53 PM Xi Ruoyao via Gcc-patches
<gcc-patches@gcc.gnu.org> 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 -fwrapv to avoid
>           undefined behavior.
> ---
>  gcc/testsuite/gcc.c-torture/execute/950704-1.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gcc/testsuite/gcc.c-torture/execute/950704-1.c 
> b/gcc/testsuite/gcc.c-torture/execute/950704-1.c
> index f11aff8cabc..67fe0885e5a 100644
> --- a/gcc/testsuite/gcc.c-torture/execute/950704-1.c
> +++ b/gcc/testsuite/gcc.c-torture/execute/950704-1.c
> @@ -1,3 +1,4 @@
> +/* { dg-additional-options "-fwrapv" } */
>  int errflag;
>
>  long long
> --
> 2.32.0
>
>
>

Reply via email to