Commit 6c76b723 by Diego Novillo Committed by Diego Novillo

revert: re PR bootstrap/54281 (Fails to bootstrap with --disable-nls)

2012-08-16   Diego Novillo  <dnovillo@google.com>

	Revert

	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.

From-SVN: r190449
parent e426fa99
2012-08-16 Diego Novillo <dnovillo@google.com>
Revert
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 Segher Boessenkool <segher@kernel.crashing.org> 2012-08-16 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment. * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
......
...@@ -20,6 +20,10 @@ along with GCC; see the file COPYING3. If not see ...@@ -20,6 +20,10 @@ along with GCC; see the file COPYING3. If not see
#ifndef DOUBLE_INT_H #ifndef DOUBLE_INT_H
#define 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. /* A large integer is currently represented as a pair of HOST_WIDE_INTs.
It therefore represents a number with precision of It therefore represents a number with precision of
2 * HOST_BITS_PER_WIDE_INT bits (it is however possible that the 2 * HOST_BITS_PER_WIDE_INT bits (it is however possible that the
......
2012-08-16 Diego Novillo <dnovillo@google.com> 2012-08-16 Diego Novillo <dnovillo@google.com>
Revert
PR bootstrap/54281
* gfortran.h: Do not include gmp.h.
2012-08-16 Diego Novillo <dnovillo@google.com>
PR bootstrap/54281 PR bootstrap/54281
* gfortran.h: Do not include gmp.h. * gfortran.h: Do not include gmp.h.
......
...@@ -1681,6 +1681,7 @@ gfc_intrinsic_sym; ...@@ -1681,6 +1681,7 @@ gfc_intrinsic_sym;
EXPR_COMPCALL Function (or subroutine) call of a procedure pointer EXPR_COMPCALL Function (or subroutine) call of a procedure pointer
component or type-bound procedure. */ component or type-bound procedure. */
#include <gmp.h>
#include <mpfr.h> #include <mpfr.h>
#include <mpc.h> #include <mpc.h>
#define GFC_RND_MODE GMP_RNDN #define GFC_RND_MODE GMP_RNDN
......
...@@ -22,10 +22,7 @@ ...@@ -22,10 +22,7 @@
#ifndef GCC_REALGMP_H #ifndef GCC_REALGMP_H
#define GCC_REALGMP_H #define GCC_REALGMP_H
/* Note that we do not include gmp.h. It is included in system.h #include <gmp.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 <mpfr.h>
#include <mpc.h> #include <mpc.h>
#include "real.h" #include "real.h"
......
...@@ -1037,8 +1037,4 @@ helper_const_non_const_cast (const char *p) ...@@ -1037,8 +1037,4 @@ helper_const_non_const_cast (const char *p)
#define DEBUG_VARIABLE #define DEBUG_VARIABLE
#endif #endif
#ifndef GENERATOR_FILE
#include <gmp.h>
#endif
#endif /* ! GCC_SYSTEM_H */ #endif /* ! GCC_SYSTEM_H */
...@@ -38,6 +38,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -38,6 +38,7 @@ along with GCC; see the file COPYING3. If not see
#include "flags.h" #include "flags.h"
#include "diagnostic-core.h" #include "diagnostic-core.h"
#include "tree-inline.h" #include "tree-inline.h"
#include "gmp.h"
#define SWAP(X, Y) do { affine_iv *tmp = (X); (X) = (Y); (Y) = tmp; } while (0) #define SWAP(X, Y) do { affine_iv *tmp = (X); (X) = (Y); (Y) = tmp; } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment