diff mbox

[committed] Fix libgomp testsuite failures on hppa*-*-hpux*

Message ID 68948C3C-177E-4DA3-B213-A9A57400A9CC@BELL.NET
State New
Headers show

Commit Message

John David Anglin Feb. 9, 2017, 12:35 a.m. UTC
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.anglin@bell.net
2017-02-08  John David Anglin  <danglin@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.
diff mbox

Patch

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))