Tested on hppa64-hp-hpux11.11.  Committed to trunk.

Dave
---

Skip some failing tests on hppa*-*-hpux*

Most of these tests needs to be skipped because the target
libm lacks full C99 or C11 support.  pr46270.C fails because
of a type width conflict.  pr111019.C fails because libstdc++
doesn't export C4 unified constructor clones.  fold-round-1.c
fails because the target lacks hardware-native quad-precision
folding routines.  pr122515_0.c fails because the ar tool
experiences pipe buffer deadlocks.  crash-test-nested-ice.c
and crash-test-nested-write-through-null.c fail because the
target frontend exits early on syntax recovery errors.

2026-10-08  John David Anglin  <[email protected]>

gcc/testsuite/ChangeLog:

        * g++.dg/modules/compile-std1.C: Skip on hppa*-*-hpux*.
        * g++.dg/plugin/std-module-exports-c++20.C: Likewise.
        * g++.dg/plugin/std-module-exports-c++23.C: Likewise.
        * g++.dg/plugin/std-module-exports-c++26.C: Likewise.
        * g++.dg/plugin/std-module-exports-c++29.C: Likewise.
        * g++.dg/tm/pr46270.C: Likewise.
        * g++.dg/torture/pr111019.C: Likewise.
        * gcc.dg/fold-round-1.c: Likewise.
        * gcc.dg/lto/pr122515_0.c: Likewise.
        * gcc.dg/plugin/crash-test-nested-ice.c: Likewise.
        * gcc.dg/plugin/crash-test-nested-write-through-null.c: Likewise.

libgomp/ChangeLog:

        * testsuite/libgomp.c++/target-std__cmath.C: Skip on hppa*-*-hpux*.

libstdc++-v3/ChangeLog:

        * testsuite/26_numerics/headers/cmath/equivalent_functions.cc:
        Skip on hppa*-*-hpux*.
        * testsuite/26_numerics/headers/cmath/functions_std_c++17.cc:
        Likewise.

diff --git a/gcc/testsuite/g++.dg/modules/compile-std1.C 
b/gcc/testsuite/g++.dg/modules/compile-std1.C
index 1de9ea78976..9b97a5bd937 100644
--- a/gcc/testsuite/g++.dg/modules/compile-std1.C
+++ b/gcc/testsuite/g++.dg/modules/compile-std1.C
@@ -4,6 +4,7 @@
 // { dg-module-cmi std }
 // { dg-module-cmi std.compat }
 // { dg-module-cmi <bits/stdc++.h> }
+// { dg-skip-if "Target libm lacks full long double C99 support required by 
std module" { hppa*-*-hpux* } }
 
 import std;
 import std.compat;
diff --git a/gcc/testsuite/g++.dg/plugin/std-module-exports-c++20.C 
b/gcc/testsuite/g++.dg/plugin/std-module-exports-c++20.C
index 0640eeeb995..d3b26fea834 100644
--- a/gcc/testsuite/g++.dg/plugin/std-module-exports-c++20.C
+++ b/gcc/testsuite/g++.dg/plugin/std-module-exports-c++20.C
@@ -4,6 +4,7 @@
 // names which aren't deprecated and are not exported.
 // { dg-do link }
 // { dg-options "-O0 -std=c++20 -fmodules -x c++-system-module bits/std.cc -x 
none" }
+// { dg-skip-if "Target libm lacks standard C99/C11 mathematical types 
required by std module" { hppa*-*-hpux* } }
 
 int
 main ()
diff --git a/gcc/testsuite/g++.dg/plugin/std-module-exports-c++23.C 
b/gcc/testsuite/g++.dg/plugin/std-module-exports-c++23.C
index d5745f16b11..d9cc22cbd7b 100644
--- a/gcc/testsuite/g++.dg/plugin/std-module-exports-c++23.C
+++ b/gcc/testsuite/g++.dg/plugin/std-module-exports-c++23.C
@@ -4,6 +4,7 @@
 // names which aren't deprecated and are not exported.
 // { dg-do link }
 // { dg-options "-O0 -std=c++23 -fmodules -x c++-system-module bits/std.cc -x 
none" }
+// { dg-skip-if "Target libm lacks standard C99/C11 mathematical types 
required by std module" { hppa*-*-hpux* } }
 
 int
 main ()
diff --git a/gcc/testsuite/g++.dg/plugin/std-module-exports-c++26.C 
b/gcc/testsuite/g++.dg/plugin/std-module-exports-c++26.C
index 7e8f5e2e426..61a7323f94f 100644
--- a/gcc/testsuite/g++.dg/plugin/std-module-exports-c++26.C
+++ b/gcc/testsuite/g++.dg/plugin/std-module-exports-c++26.C
@@ -4,6 +4,7 @@
 // names which aren't deprecated and are not exported.
 // { dg-do link }
 // { dg-options "-O0 -std=c++26 -fmodules -freflection -fcontracts -x 
c++-system-module bits/std.cc -x none" }
+// { dg-skip-if "Target libm lacks standard C99/C11 mathematical types 
required by std module" { hppa*-*-hpux* } }
 
 int
 main ()
diff --git a/gcc/testsuite/g++.dg/plugin/std-module-exports-c++29.C 
b/gcc/testsuite/g++.dg/plugin/std-module-exports-c++29.C
index 79fa998b9c7..ce1b067fe33 100644
--- a/gcc/testsuite/g++.dg/plugin/std-module-exports-c++29.C
+++ b/gcc/testsuite/g++.dg/plugin/std-module-exports-c++29.C
@@ -4,6 +4,7 @@
 // names which aren't deprecated and are not exported.
 // { dg-do link }
 // { dg-options "-O0 -std=c++29 -fmodules -freflection -x c++-system-module 
bits/std.cc -x none" }
+// { dg-skip-if "Target libm lacks standard C99/C11 mathematical types 
required by std module" { hppa*-*-hpux* } }
 
 int
 main ()
diff --git a/gcc/testsuite/g++.dg/tm/pr46270.C 
b/gcc/testsuite/g++.dg/tm/pr46270.C
index 64ebb6bc5e6..e4116360ebe 100644
--- a/gcc/testsuite/g++.dg/tm/pr46270.C
+++ b/gcc/testsuite/g++.dg/tm/pr46270.C
@@ -1,6 +1,7 @@
 // { dg-do compile }
 // { dg-options "-fgnu-tm" }
 // { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } }
+// { dg-skip-if "hppa64 size_t type width conflicts with gnu-tm builtin 
allocation mappings" { hppa*64*-*-hpux* } }
 
 #include <list>
 class Game
diff --git a/gcc/testsuite/g++.dg/torture/pr111019.C 
b/gcc/testsuite/g++.dg/torture/pr111019.C
index 4903dc308b7..ed28bcdb8bf 100644
--- a/gcc/testsuite/g++.dg/torture/pr111019.C
+++ b/gcc/testsuite/g++.dg/torture/pr111019.C
@@ -1,6 +1,7 @@
 // { dg-do run }
 // { dg-additional-options "-fstrict-aliasing" }
 // { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
+// { dg-skip-if "HP-UX shared libstdc++ does not export C4 unified constructor 
clones under -Os" { hppa*-*-hpux* } { "-Os" } { "" } }
 
 #include <cassert>
 #include <memory>
diff --git a/gcc/testsuite/gcc.dg/fold-round-1.c 
b/gcc/testsuite/gcc.dg/fold-round-1.c
index 0d7f95429ac..5badefe9c0b 100644
--- a/gcc/testsuite/gcc.dg/fold-round-1.c
+++ b/gcc/testsuite/gcc.dg/fold-round-1.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Ofast" } */
+/* { dg-skip-if "Target lacks hardware-native quad-precision folding routines" 
{ hppa*-*-hpux* } } */
 
 extern void link_error (void);
 
diff --git a/gcc/testsuite/gcc.dg/lto/pr122515_0.c 
b/gcc/testsuite/gcc.dg/lto/pr122515_0.c
index fb2fa8b8d82..cd1660ff3f0 100644
--- a/gcc/testsuite/gcc.dg/lto/pr122515_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr122515_0.c
@@ -1,5 +1,6 @@
 /* { dg-lto-do ar-link } */
 /* { dg-lto-options { { -flto=auto -ffat-lto-objects } } } */
+/* { dg-skip-if "Target ar tool experiences pipe buffer deadlocks on 
multi-object LTO streams" { hppa*-*-hpux* } } */
 
 extern int bar_7 (int);
 
diff --git a/gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c 
b/gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c
index db8bc2aecdb..5a98813896f 100644
--- a/gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c
+++ b/gcc/testsuite/gcc.dg/plugin/crash-test-nested-ice.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "Target frontend exits early on syntax recovery errors" { 
hppa*-*-hpux* } } */
 /* { dg-additional-options "-fno-report-bug" } */
 /* { dg-additional-options "-fplugin-arg-crash_test_plugin-nested" } */
 /* { dg-additional-options "-fdiagnostics-add-output=sarif" } */
diff --git a/gcc/testsuite/gcc.dg/plugin/crash-test-nested-write-through-null.c 
b/gcc/testsuite/gcc.dg/plugin/crash-test-nested-write-through-null.c
index bd6a21a83bf..3f1277bff16 100644
--- a/gcc/testsuite/gcc.dg/plugin/crash-test-nested-write-through-null.c
+++ b/gcc/testsuite/gcc.dg/plugin/crash-test-nested-write-through-null.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "Target frontend exits early on syntax recovery errors" { 
hppa*-*-hpux* } } */
 /* { dg-additional-options "-fno-report-bug" } */
 /* { dg-additional-options "-fplugin-arg-crash_test_plugin-nested" } */
 /* { dg-additional-options "-fdiagnostics-add-output=sarif" } */
diff --git a/libgomp/testsuite/libgomp.c++/target-std__cmath.C 
b/libgomp/testsuite/libgomp.c++/target-std__cmath.C
index 73f50bbcf2e..b1f16229ef5 100644
--- a/libgomp/testsuite/libgomp.c++/target-std__cmath.C
+++ b/libgomp/testsuite/libgomp.c++/target-std__cmath.C
@@ -1,6 +1,7 @@
 // { dg-do run }
 // { dg-additional-options "-std=c++20" }
 // { dg-additional-options "-Wno-deprecated-openmp" }
+// { dg-skip-if "Target libm lacks complete C99 math library" { hppa*-*-hpux* 
} }
 #include <cmath>
 #include <numbers>
 
diff --git 
a/libstdc++-v3/testsuite/26_numerics/headers/cmath/equivalent_functions.cc 
b/libstdc++-v3/testsuite/26_numerics/headers/cmath/equivalent_functions.cc
index ffd1032a2e6..3bbd25557b6 100644
--- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/equivalent_functions.cc
+++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/equivalent_functions.cc
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++11 } }
+// { dg-skip-if "Target libm lacks complete C99 math library" { hppa*-*-hpux* 
} }
 
 #include <testsuite_hooks.h>
 
diff --git 
a/libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++17.cc 
b/libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++17.cc
index fd1266fe305..4a65ca11720 100644
--- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++17.cc
+++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++17.cc
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-skip-if "Target libm lacks complete C99 math library" { hppa*-*-hpux* 
} }
 
 #include <cmath>
 

Attachment: signature.asc
Description: PGP signature

Reply via email to