From patchwork Wed May 18 00:31:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 623333 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r8ZrG6vdnz9t7x for ; Wed, 18 May 2016 10:31:25 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=JMopIE72; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:date:subject:to:message-id:mime-version; q=dns; s= default; b=EN0MmrYwyS0no2f6OAc4kk4sTxJgO7nNN/I08SfHk0trscdkLzOW2 1Jq8Ip81jJP6tVC1v0RZTObv5bCquJSEnhkW4lHbxtaDiCV+iXOKPcpv9wpUPLC3 eo74/8VXAlvxCoHBB/VDlxRBQnbiH+fEcPdMJQKnIJuAj9aG9bChyM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:date:subject:to:message-id:mime-version; s= default; bh=jqk4BUFYv/bkF+cHJL9kALZe3kE=; b=JMopIE72WK9PMr6t/Gmo 33IMFiCYcZ71s/HIhpm1aXu2j7WTlByS5N8Rjogh9TtVru/wem41XoOTbcRBxx3c qoxordo1bv8h/7+aQ7x7qwMnI+wGzomID8ewFKS6uelutHdycS/Ky8WL1wXyrcxs K85m1vq8bCqNukucOMKzoVM= Received: (qmail 55936 invoked by alias); 18 May 2016 00:31:18 -0000 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 Received: (qmail 55919 invoked by uid 89); 18 May 2016 00:31:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=limits.h, limitsh, UD:limits.h X-HELO: mtlfep01.bell.net Received: from belmont79srvr.owm.bell.net (HELO mtlfep01.bell.net) (184.150.200.79) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 18 May 2016 00:31:03 +0000 Received: from bell.net mtlfep01 184.150.200.30 by mtlfep01.bell.net with ESMTP id <20160518003101.JSGK15641.mtlfep01.bell.net@mtlspm01.bell.net> for ; Tue, 17 May 2016 20:31:01 -0400 Received: from [192.168.2.10] (really [184.144.122.130]) by mtlspm01.bell.net with ESMTP id <20160518003101.TOPP16461.mtlspm01.bell.net@[192.168.2.10]>; Tue, 17 May 2016 20:31:01 -0400 From: John David Anglin Date: Tue, 17 May 2016 20:31:00 -0400 Subject: [PATCH] Fix bootstrap on hppa*-*-hpux* To: GCC Patches Message-Id: Mime-Version: 1.0 (Apple Message framework v1085) X-Opwv-CommTouchExtSvcRefID: str=0001.0A020205.573BB7C5.00EE, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 r235550 introduced the use of long long, and the macros LLONG_MIN and LLONG_MAX. These macros are not defined by default and we need to include when compiling with c++ to define them. Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. Okay for trunk? Dave --- John David Anglin dave.anglin@bell.net 2016-05-17 John David Anglin PR bootstrap/71014 * system.h: Include climits instead of limits.h when compiling with c++. Index: system.h =================================================================== --- system.h (revision 236287) +++ system.h (working copy) @@ -301,8 +301,12 @@ # undef m_slot #endif -#if HAVE_LIMITS_H -# include +#ifdef __cplusplus +# include +#else +# if HAVE_LIMITS_H +# include +# endif #endif /* A macro to determine whether a VALUE lies inclusively within a