[committed] testsuite: Adjust rs6000-ldouble-2.c for switch to -std=gnu23 by default [PR117663]

Message ID Z02vnHrZIZqNnmdi@tucnak
State New
Headers
Series [committed] testsuite: Adjust rs6000-ldouble-2.c for switch to -std=gnu23 by default [PR117663] |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply

Commit Message

Jakub Jelinek Dec. 2, 2024, 1:01 p.m. UTC
  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  <jakub@redhat.com>

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


	Jakub
  

Patch

--- 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'.  */