]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Adjust rs6000-ldouble-2.c for switch to -std=gnu23 by default [PR117663]
authorJakub Jelinek <jakub@redhat.com>
Mon, 2 Dec 2024 12:55:02 +0000 (13:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 2 Dec 2024 12:59:28 +0000 (13:59 +0100)
-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.

2024-12-02  Jakub Jelinek  <jakub@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

index 5dc74cd2de48d5a57b572311c59c65a80d6bd8eb..46167376c03d6b68792e70d16ac3feae4435dda9 100644 (file)
@@ -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'.  */