From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21635 invoked by alias); 15 Jan 2013 13:05:54 -0000 Received: (qmail 21463 invoked by uid 48); 15 Jan 2013 13:05:24 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/55961] [4.8 Regression] system.h includes gmp.h but system.h is included for build and not just target Date: Tue, 15 Jan 2013 13:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: build X-Bugzilla-Severity: blocker X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Priority Status AssignedTo Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg01337.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55961 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org |gnu.org | --- Comment #4 from Richard Biener 2013-01-15 13:05:23 UTC --- Index: gcc/system.h =================================================================== --- gcc/system.h (revision 195194) +++ gcc/system.h (working copy) @@ -636,7 +636,10 @@ extern int vsnprintf(char *, size_t, con #include #endif +/* Do not introduce a gmp.h dependency on the build system. */ +#ifndef GENERATOR_FILE #include +#endif /* Get libiberty declarations. */ #include "libiberty.h" should restore previous behavior. I'm not sure if any configure check for the build system includes system.h and does _not_ define GENERATOR_FILE. So, does the build configury define GENERATOR_FILE?