On Mon, Sep 08, 2025 at 09:51:32PM +0800, Xi Ruoyao wrote:
> Besides r16-3595, there's another bug in this test: with -std=c23 the
> token _Sat isn't recognized as a keyword at all, thus an error massage
> different from the expected will be outputted.
> 
> Fix it by using -std=gnu23 instead.
> 
> gcc/testsuite:
> 
>       * gcc.dg/fixed-point/bitint-1.c (dg-options): Use -std=gnu23
>       instead of -std=c23.
> ---
> 
> Tested on loongarch64-linux-gnu with make check-gcc \
> RUNTESTFLAGS=fixed-point.exp=bitint-1.c.  Ok for trunk?

Ok.

> --- a/gcc/testsuite/gcc.dg/fixed-point/bitint-1.c
> +++ b/gcc/testsuite/gcc.dg/fixed-point/bitint-1.c
> @@ -1,6 +1,6 @@
>  /* PR c/102989 */
>  /* { dg-do compile { target bitint } } */
> -/* { dg-options "-std=c23" } */
> +/* { dg-options "-std=gnu23" } */
>  
>  void
>  foo (void)
> -- 
> 2.51.0

        Jakub

Reply via email to