From patchwork Fri Jun 18 23:40:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 56230 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 55F8F1007D4 for ; Sat, 19 Jun 2010 09:41:33 +1000 (EST) Received: (qmail 27704 invoked by alias); 18 Jun 2010 23:41:32 -0000 Received: (qmail 27694 invoked by uid 22791); 18 Jun 2010 23:41:30 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Jun 2010 23:41:06 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 8ED27516B; Fri, 18 Jun 2010 19:40:57 -0400 (EDT) Subject: [patch] Fix PR testsuite/43441 on hppa*-*-hpux* To: gcc-patches@gcc.gnu.org Date: Fri, 18 Jun 2010 19:40:57 -0400 (EDT) From: "John David Anglin" Cc: janis187@us.ibm.com MIME-Version: 1.0 Message-Id: <20100618234058.8ED27516B@hiauly1.hia.nrc.ca> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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;