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 <rguent...@suse.de> 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 <dlfcn.h> #endif + /* Do not introduce a gmp.h dependency on the build system. */ + #ifndef GENERATOR_FILE #include <gmp.h> + #endif /* Get libiberty declarations. */ #include "libiberty.h"