From patchwork Sun Dec 9 17:45:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 204755 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 B698E2C0156 for ; Mon, 10 Dec 2012 04:45:59 +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=1355679961; 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=pV+nh5HMwcFyk+uI/JdOpo+6gP8=; b=Q10f6K5fyKfj0z6 XTixzEoFyUESshovaAFN3sDZUMYLw1W3F33KE3b4YYGUqsR1CwNFIesh45mvtmKG 1dESYIOxFLaIp84cu/g3njNkhhhWclVCcfUhncUYeRMscKIun+BuuB4M6IYHa5yW PtPpRJcOLy0tHCZ8xsEJQqYvnhk8= 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=GhiYVcOFQAdIiqFKX8g6zsqDH8pxW/jBzn2wqaTI9EgIFeLxFPyz3TnIQehpOb j4v3pR6rNl+/0BMYE77s1bZ1q5R+LOrhRHGgjuS0DrFpjG8AxSCPTuNit9CZfbxY hYK3KXNmQLFr7WgpDfEHvEYV90um0nvGOw6roT7hOyZDM=; Received: (qmail 4240 invoked by alias); 9 Dec 2012 17:45:56 -0000 Received: (qmail 4232 invoked by uid 22791); 9 Dec 2012 17:45:55 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, 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; Sun, 09 Dec 2012 17:45:49 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 424DA4CF1; Sun, 9 Dec 2012 12:45:29 -0500 (EST) Date: Sun, 9 Dec 2012 12:45:27 -0500 From: John David Anglin To: gcc-patches@gcc.gnu.org Subject: [committed] Defined MAP_FAILED in gcc.dg/20050826-1.c and gcc.dg/20050826-1.c if not defined Message-ID: <20121209174526.GA19911@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 This fixes gcc.dg/20030711-1.c and gcc.dg/20050826-1.c on HP-UX 10. Committed to trunk. Dave Index: gcc.dg/20030711-1.c =================================================================== --- gcc.dg/20030711-1.c (revision 194272) +++ gcc.dg/20030711-1.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 void __attribute__((noinline)) test (const char *p) Index: gcc.dg/20050826-1.c =================================================================== --- gcc.dg/20050826-1.c (revision 194272) +++ gcc.dg/20050826-1.c (working copy) @@ -12,6 +12,9 @@ #ifndef MAP_ANON #define MAP_ANON 0 #endif +#ifndef MAP_FAILED +#define MAP_FAILED ((void *)-1) +#endif #include struct Flags {