re PR bootstrap/54281 (Fails to bootstrap with --disable-nls)
authorDiego Novillo <dnovillo@google.com>
Thu, 16 Aug 2012 13:28:13 +0000 (09:28 -0400)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Thu, 16 Aug 2012 13:28:13 +0000 (09:28 -0400)
2012-08-16  Diego Novillo  <dnovillo@google.com>

PR bootstrap/54281
* double-int.h: Move including of gmp.h ...
* system.h: ... here.
* realmpfr.h: Do not include gmp.h.
* tree-ssa-loop-niter.c: Do not include gmp.h.

fortran/ChangeLog
* gfortran.h: Do not include gmp.h.

From-SVN: r190444

gcc/ChangeLog
gcc/double-int.h
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/realmpfr.h
gcc/system.h
gcc/tree-ssa-loop-niter.c

index ef89872e60047083f8ea591be8f4b91999e00fdf..dff3e9abc8083c3975c6e3e734c819fb1f869266 100644 (file)
@@ -1,3 +1,11 @@
+2012-08-16  Diego Novillo  <dnovillo@google.com>
+
+       PR bootstrap/54281
+       * double-int.h: Move including of gmp.h ...
+       * system.h: ... here.
+       * realmpfr.h: Do not include gmp.h.
+       * tree-ssa-loop-niter.c: Do not include gmp.h.
+
 2012-08-16  Steven Bosscher  <steven@gcc.gnu.org>
 
        PR middle-end/54146
index 3d9aa2caa9deff76750e0e0b06da7d475c5d3768..7ea05288b9ebc3aa3202ccd73df00aa460fc1fbc 100644 (file)
@@ -20,10 +20,6 @@ along with GCC; see the file COPYING3.  If not see
 #ifndef DOUBLE_INT_H
 #define DOUBLE_INT_H
 
-#ifndef GENERATOR_FILE
-#include <gmp.h>
-#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
index 17b14a98ec6e5de71fe1a4e38c2fc778b3f043bd..25b276b4108e84b2419a8fa913476535cfffb13f 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-16   Diego Novillo  <dnovillo@google.com>
+
+       PR bootstrap/54281
+       * gfortran.h: Do not include gmp.h.
+
 2012-08-15  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/54243
index 7c4c0a42bf0822b374d0c6b86ece216ceea14830..611d16d265d24245dd7078d0768dae1536e16d78 100644 (file)
@@ -1681,7 +1681,6 @@ gfc_intrinsic_sym;
    EXPR_COMPCALL   Function (or subroutine) call of a procedure pointer
                   component or type-bound procedure.  */
 
-#include <gmp.h>
 #include <mpfr.h>
 #include <mpc.h>
 #define GFC_RND_MODE GMP_RNDN
index ab234e9195d456761edc324d0281de9ee66b7224..ada876e285462b7f6bba5f28331c8cb666f77ff1 100644 (file)
 #ifndef GCC_REALGMP_H
 #define GCC_REALGMP_H
 
-#include <gmp.h>
+/* Note that we do not include gmp.h.  It is included in system.h
+   because it wrecks intl.h when compiling in C++ mode.
+   See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54281 for details.  */
+
 #include <mpfr.h>
 #include <mpc.h>
 #include "real.h"
index 9e7d5030465b550ac76ef0641f7b1a5586e98f05..0ccd9917b94a359c88e747edef5a528d7af77cc7 100644 (file)
@@ -1037,4 +1037,8 @@ helper_const_non_const_cast (const char *p)
 #define DEBUG_VARIABLE
 #endif
 
+#ifndef GENERATOR_FILE
+#include <gmp.h>
+#endif
+
 #endif /* ! GCC_SYSTEM_H */
index c719a74d47acf31428c5e9852ee2a33d0c7ec35c..4c67c26faf3eb67b618ef065992a72b4d91cab07 100644 (file)
@@ -38,7 +38,6 @@ along with GCC; see the file COPYING3.  If not see
 #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)