From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25695 invoked by alias); 15 Jan 2013 13:16:20 -0000 Received: (qmail 25626 invoked by uid 22791); 15 Jan 2013 13:16:19 -0000 X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Jan 2013 13:16:11 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 2284FA3A4A for ; Tue, 15 Jan 2013 14:16:10 +0100 (CET) Date: Tue, 15 Jan 2013 13:16:00 -0000 From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR55961, do not include gmp.h for building host tools Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00776.txt.bz2 This makes sure to not include gmp.h for building generator programs on the host (and thus require gmp.h on the host). Configury might need updating for the use of GENERATOR_FILE from system.h as well, but the patch below is a strict improvement over the current situation, restoring previous behavior. Bootstrapped on x86_64-unknown-linux-gnu. Ok? Thanks, Richard. 2013-01-15 Richard Biener PR bootstrap/55961 * system.h: Do not include gmp.h for building host tools. Index: gcc/system.h =================================================================== *** gcc/system.h (revision 195194) --- gcc/system.h (working copy) *************** extern int vsnprintf(char *, size_t, con *** 636,642 **** --- 636,645 ---- #include #endif + /* Do not introduce a gmp.h dependency on the build system. */ + #ifndef GENERATOR_FILE #include + #endif /* Get libiberty declarations. */ #include "libiberty.h"