From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10152 invoked by alias); 21 Dec 2012 13:15:55 -0000 Received: (qmail 10143 invoked by uid 22791); 21 Dec 2012 13:15:54 -0000 X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,T_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; Fri, 21 Dec 2012 13:15:49 +0000 Received: from relay2.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 D26D7A52D8; Fri, 21 Dec 2012 14:15:47 +0100 (CET) Date: Fri, 21 Dec 2012 13:15:00 -0000 From: Richard Biener To: gcc-patches@gcc.gnu.org Cc: Diego Novillo , iant@google.com Subject: [PATCH] Fix PR54659, include gmp.h from system.h 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: 2012-12/txt/msg01316.txt.bz2 After the Ada fix including gmp.h from system.h is trivial (by means of double-int.h it was included from almost everywhere already) Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. Ok for trunk? (Go frontend "unfixed") Thanks, Richard. 2012-12-21 Richard Biener PR bootstrap/54659 * system.h: Include gmp.h. * tree-ssa-loop-niter.c: Do not include gmp.h here. * double-int.h: Likewise. * realmpfr.h: Likewise. fortran/ * gfortran.h: Do not include gmp.h here. Index: gcc/tree-ssa-loop-niter.c =================================================================== *** gcc/tree-ssa-loop-niter.c (revision 194659) --- gcc/tree-ssa-loop-niter.c (working copy) *************** along with GCC; see the file COPYING3. *** 38,44 **** #include "flags.h" #include "diagnostic-core.h" #include "tree-inline.h" - #include "gmp.h" #define SWAP(X, Y) do { affine_iv *tmp = (X); (X) = (Y); (Y) = tmp; } while (0) --- 38,43 ---- Index: gcc/double-int.h =================================================================== *** gcc/double-int.h (revision 194659) --- gcc/double-int.h (working copy) *************** along with GCC; see the file COPYING3. *** 20,29 **** #ifndef DOUBLE_INT_H #define DOUBLE_INT_H - #ifndef GENERATOR_FILE - #include - #endif - /* A large integer is currently represented as a pair of HOST_WIDE_INTs. It therefore represents a number with precision of 2 * HOST_BITS_PER_WIDE_INT bits (it is however possible that the --- 20,25 ---- Index: gcc/fortran/gfortran.h =================================================================== *** gcc/fortran/gfortran.h (revision 194659) --- gcc/fortran/gfortran.h (working copy) *************** gfc_intrinsic_sym; *** 1699,1705 **** EXPR_COMPCALL Function (or subroutine) call of a procedure pointer component or type-bound procedure. */ - #include #include #include #define GFC_RND_MODE GMP_RNDN --- 1699,1704 ---- Index: gcc/realmpfr.h =================================================================== *** gcc/realmpfr.h (revision 194659) --- gcc/realmpfr.h (working copy) *************** *** 22,28 **** #ifndef GCC_REALGMP_H #define GCC_REALGMP_H - #include #include #include #include "real.h" --- 22,27 ---- Index: gcc/system.h =================================================================== *** gcc/system.h (revision 194660) --- gcc/system.h (working copy) *************** extern int vsnprintf(char *, size_t, con *** 638,643 **** --- 638,645 ---- #include #endif + #include + /* Get libiberty declarations. */ #include "libiberty.h"