re PR bootstrap/55961 (system.h includes gmp.h but system.h is included for build...
authorRichard Biener <rguenther@suse.de>
Tue, 15 Jan 2013 15:54:05 +0000 (15:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 15 Jan 2013 15:54:05 +0000 (15:54 +0000)
2013-01-15  Richard Biener  <rguenther@suse.de>

PR bootstrap/55961
* system.h: Do not include gmp.h for building host tools.

From-SVN: r195205

gcc/ChangeLog
gcc/system.h

index cb85e0bee36f6d86e6bb50c000606a5409a7612b..1a44b1777f27df5ad79d7e3f21aa3c499c45f2f5 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-15  Richard Biener  <rguenther@suse.de>
+
+       PR bootstrap/55961
+       * system.h: Do not include gmp.h for building host tools.
+
 2013-01-15  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/55882
index fbf1f11d85b6356aed810cec248405ba9df1dd8e..41cd565538aecb039afea67a1f959df96cfa0c5b 100644 (file)
@@ -636,7 +636,10 @@ extern int vsnprintf(char *, size_t, const char *, va_list);
 #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"