This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix PR testsuite/43441 on hppa*-*-hpux*
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Cc: janis187 at us dot ibm dot com
- Date: Fri, 18 Jun 2010 19:40:57 -0400 (EDT)
- Subject: [patch] Fix PR testsuite/43441 on hppa*-*-hpux*
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
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2010-06-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR testsuite/43441
gcc.dg/pr42427.c: Use _Complex instead of complex.
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;