From patchwork Thu Jan 3 01:50:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 209167 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 798912C007E for ; Thu, 3 Jan 2013 12:50:40 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1357782641; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:Reply-To:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=HU1Hd3FJyBSUncRv8btjQ1cYt+Q=; b=fLz+qAaf3kkEHAu AQUGUMuYTYOAZrmNGPH1c26MixJoxFrtJhdcbaN4Z7z4hXKzhg8IePqNC/3rUlCa /DFlJTYJPIjzSae0W6gMHBz1P//ivDbniVVPU4eJfMD9I8Gju8BPhkNEl7PV1xsF fbnyf+6J7T2PfD5jZBNWKATtVMJs= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Date:From:To:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=J3efr+MQ26jyrNtdMeVXcxNtMkdInz1H1CZ9YXxrKLyr48hNUqLpqeVUOTfCbJ HIG6+RuvS9fD//6krs7QBASQ2adsP9L2SgTLFUrdKm/u0ERcih+st6oY5I2d8Epm Ke/1vZ8MNuc0Q0UcUDWfXoyqo31ZR/3v27NeNtPSba9mY=; Received: (qmail 22476 invoked by alias); 3 Jan 2013 01:50:36 -0000 Received: (qmail 22314 invoked by uid 22791); 3 Jan 2013 01:50:34 -0000 X-SWARE-Spam-Status: No, hits=-2.0 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.10.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Jan 2013 01:50:29 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 0B7DA50F8; Wed, 2 Jan 2013 20:50:26 -0500 (EST) Date: Wed, 2 Jan 2013 20:50:26 -0500 From: John David Anglin To: gcc-patches@gcc.gnu.org Subject: [committed] gcc.dg/pr55430.c: Define MAP_FAILED if not defined Message-ID: <20130103015025.GA8936@hiauly1.hia.nrc.ca> Reply-To: John David Anglin MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) 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 Tested on hppa1.1-hp-hpux10.20. Dave Index: gcc.dg/pr55430.c =================================================================== --- gcc.dg/pr55430.c (revision 194729) +++ gcc.dg/pr55430.c (working copy) @@ -11,6 +11,9 @@ #ifndef MAP_ANON #define MAP_ANON 0 #endif +#ifndef MAP_FAILED +#define MAP_FAILED ((void *)-1) +#endif #include struct S