From patchwork Fri Jun 18 23:40:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix PR testsuite/43441 on hppa*-*-hpux* Date: Fri, 18 Jun 2010 13:40:57 -0000 From: John David Anglin X-Patchwork-Id: 56230 Message-Id: <20100618234058.8ED27516B@hiauly1.hia.nrc.ca> To: gcc-patches@gcc.gnu.org Cc: janis187@us.ibm.com 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 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 +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;