Hi!

-std=gnu23/-std=c23 changes LDBL_EPSILON for IBM long double, see r13-3029 and
https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602738.html
for details.

That change even had a note:
"and when we move to a C2x
default, gcc.target/powerpc/rs6000-ldouble-2.c will need an
appropriate option added to keep using an older language version"

The following patch just implements it to fix rs6000-ldouble-2.c regression.

Tested on powerpc64le-linux, committed to trunk as obvious.

2024-12-02  Jakub Jelinek  <ja...@redhat.com>

        PR testsuite/117663
        * gcc.target/powerpc/rs6000-ldouble-2.c: Add -std=gnu17 to dg-options.

--- gcc/testsuite/gcc.target/powerpc/rs6000-ldouble-2.c.jj      2020-01-11 
16:31:55.821281713 +0100
+++ gcc/testsuite/gcc.target/powerpc/rs6000-ldouble-2.c 2024-12-02 
13:47:58.368301037 +0100
@@ -1,5 +1,5 @@
 /* { dg-do run { target { { powerpc*-*-darwin* powerpc*-*-aix* rs6000-*-* } || 
{ powerpc*-*-linux* && lp64 } } } } */
-/* { dg-options "-mlong-double-128" } */
+/* { dg-options "-mlong-double-128 -std=gnu17" } */
 
 /* Check that LDBL_EPSILON is right for 'long double'.  */
 

        Jakub

Reply via email to