Patchwork Fix PR testsuite/43441 on hppa*-*-hpux*

login
register
mail settings
Submitter John David Anglin
Date June 18, 2010, 11:40 p.m.
Message ID <20100618234058.8ED27516B@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/56230/
State New
Headers show

Comments

John David Anglin - June 18, 2010, 11:40 p.m.
The following change fixes gcc.dg/pr42427.c on versions of hppa*-*-hpux*
that don't have complex.h.  Tested on hppa2.0w-hp-hpux11.11 and
hppa64-hp-hpux11.11.

Ok?

Dave

Patch

Index: gcc.dg/pr42427.c
===================================================================
--- gcc.dg/pr42427.c	(revision 160946)
+++ gcc.dg/pr42427.c	(working copy)
@@ -2,12 +2,10 @@ 
 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions -fpeel-loops" } */
 /* { dg-require-effective-target ilp32 } */
 
-#include <complex.h>
+extern double myabs (_Complex double);
 
-extern double myabs (complex double);
-
 void
-test (double *help, complex double *wm, long nz)
+test (double *help, _Complex double *wm, long nz)
 {
   long k;
   double znew;