From patchwork Thu Aug 26 17:20:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 62793 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 CC2A6B70DE for ; Fri, 27 Aug 2010 03:20:47 +1000 (EST) Received: (qmail 2428 invoked by alias); 26 Aug 2010 17:20:45 -0000 Received: (qmail 2418 invoked by uid 22791); 26 Aug 2010 17:20:44 -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 snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 Aug 2010 17:20:39 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 5C902648; Thu, 26 Aug 2010 19:20:37 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0VcGPl7mjrOu; Thu, 26 Aug 2010 19:20:36 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 00F5B646; Thu, 26 Aug 2010 19:20:36 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.3+Sun/8.14.3/Submit) id o7QHKZFF029800; Thu, 26 Aug 2010 19:20:35 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Richard Henderson Subject: [libcpp] Include if available Date: Thu, 26 Aug 2010 19:20:35 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes 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 recent patch to libcpp/lex.c broke Tru64 UNIX V5.1B bootstrap: the platform has uintptr_t, but it's only declared in . To fix this, this patch includes the header in system.h if it exists. With it, I can at least build libcpp and the bootstrap continues. Ok for mainline (probably obvious)? Rainer 2010-08-26 Rainer Orth * system.h [HAVE_INTTYPES_H]: Include inttypes.h. diff -r 0cf77b5772bf libcpp/system.h --- a/libcpp/system.h Mon Aug 23 13:25:29 2010 +0200 +++ b/libcpp/system.h Thu Aug 26 19:04:15 2010 +0200 @@ -1,6 +1,6 @@ /* Get common system includes and various definitions and declarations based on autoconf macros. - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009 + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -32,6 +32,9 @@ #ifdef HAVE_STDINT_H # include #endif +#ifdef HAVE_INTTYPES_H +# include +#endif #include