2013-01-15 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Jan 2013 15:54:05 +0000 (15:54 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Jan 2013 15:54:05 +0000 (15:54 +0000)
PR bootstrap/55961
* system.h: Do not include gmp.h for building host tools.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195205 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/system.h

index cb85e0b..1a44b17 100644 (file)
@@ -1,5 +1,10 @@
 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
        * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
        account for bitpos when computing alignment.
index fbf1f11..41cd565 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"