This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]