The libgomp.oacc-c-c++-common/loop-dim-default.c test uses asms and needs to be skipped on hppa.
We don't have the complex.h header on hppa*-*-hpux*. The libgomp.oacc-c-c++-common/reduction-cplx-dbl.c and libgomp.oacc-c-c++-common/reduction-cplx-flt.c tests compile fine on hppa without it. As a result, we have no fails in libgomp testsuite on hppa64-hp-hpux11.11. Dave -- John David Anglin dave.ang...@bell.net
2017-02-08 John David Anglin <dang...@gcc.gnu.org> * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on hppa*-*-*. * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't include complex.h on hppa*-*-hpux*. * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise. Index: testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c =================================================================== --- testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (revision 245238) +++ testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (working copy) @@ -1,6 +1,7 @@ /* This code uses nvptx inline assembly guarded with acc_on_device, which is not optimized away at -O0, and then confuses the target assembler. { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ + { dg-skip-if "" { hppa*-*-* } { "*" } { "" } } */ /* { dg-additional-options "-fopenacc-dim=16:16" } */ #include <openacc.h> Index: testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c =================================================================== --- testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (revision 245238) +++ testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (working copy) @@ -1,5 +1,7 @@ +#if !defined(__hppa__) || !defined(__hpux__) #include <complex.h> +#endif /* Double float has 53 bits of fraction. */ #define FRAC (1.0 / (1LL << 48)) Index: testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c =================================================================== --- testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (revision 245238) +++ testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (working copy) @@ -1,5 +1,7 @@ +#if !defined(__hppa__) || !defined(__hpux__) #include <complex.h> +#endif /* Single float has 23 bits of fraction. */ #define FRAC (1.0f / (1 << 20))