]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commite36eae19f3a4cc9e5efa9ebfa31e081c7ee52fdc
tree92c5585f8f49345f00b754fd94e43871729a42e8
parent275197057677406d575bfdbffa259ba7225e671f
testsuite: Adjust rs6000-ldouble-2.c for switch to -std=gnu23 by default [PR117663]

-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