[gcc r17-2992] XFAIL default_format_2.f90 and default_format_denormal_2.f90 on hppa*-*-hpux*
John David Anglin via Gcc-cvs <[email protected]> Wed, 5 Aug 2026 20:22:25 +0000 (GMT)
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:49d761addfa3786d36e6ffcaa62536e61a59c9fc commit r17-2992-g49d761addfa3786d36e6ffcaa62536e61a59c9fc Author: John David Anglin <[email protected]> Date: Wed Aug 5 16:21:38 2026 -0400 XFAIL default_format_2.f90 and default_format_denormal_2.f90 on hppa*-*-hpux* On hppa*-*-hpux*, snprintf only provides 33 digits of decimal precision for long doubles. This is insufficient to uniquely identify long double values. As a result, these tests fail. 2026-08-05 John David Anglin <[email protected]> gcc/testsuite/ChangeLog: * gfortran.dg/default_format_2.f90: XFAIL on hppa*-*-hpux*. * gfortran.dg/default_format_denormal_2.f90: Likewise. Diff: --- gcc/testsuite/gfortran.dg/default_format_2.f90 | 5 ++++- gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gfortran.dg/default_format_2.f90 b/gcc/testsuite/gfortran.dg/default_format_2.f90 index dd04d3aae981..35c234120998 100644 --- a/gcc/testsuite/gfortran.dg/default_format_2.f90 +++ b/gcc/testsuite/gfortran.dg/default_format_2.f90 @@ -1,7 +1,10 @@ -! { dg-do run { xfail long_double_is_ibm128 } } +! { dg-do run { xfail { long_double_is_ibm128 || hppa*-*-hpux* } } } ! { dg-require-effective-target fortran_large_real } ! Test XFAILed on these platforms because the system's printf() lacks ! proper support for denormalized long doubles. See PR24685 +! On hppa*-*-hpux*, snprintf only provides 33 digits of decimal +! precision for long doubles. This is insufficient to uniquely +! identify long double values. ! ! This tests that the default formats for formatted I/O of reals are ! wide enough and have enough precision, by checking that values can diff --git a/gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 b/gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 index ae056d506a29..37d62bbfb65c 100644 --- a/gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 +++ b/gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 @@ -1,7 +1,10 @@ -! { dg-do run { xfail long_double_is_ibm128 } } +! { dg-do run { xfail { long_double_is_ibm128 || hppa*-*-hpux* } } } ! { dg-require-effective-target fortran_large_real } ! Test XFAILed on this platform because the system's printf() lacks ! proper support for denormalized long doubles. See PR24685 +! On hppa*-*-hpux*, snprintf only provides 33 digits of decimal +! precision for long doubles. This is insufficient to uniquely +! identify long double values. ! ! This tests that the default formats for formatted I/O of reals are ! wide enough and have enough precision, by checking that values can