aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2012-12-21 15:59:27 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-12-21 15:59:27 +0000
commit3ff15c3be3a3ebeade100538cd6c022154ead68f (patch)
treebc9ea105125006116a605d64dc266f40d61b90da /gcc/go
parentb1ad2a2add33d65405957f46ed09410513ccc1d5 (diff)
downloadgcc-3ff15c3be3a3ebeade100538cd6c022154ead68f.zip
gcc-3ff15c3be3a3ebeade100538cd6c022154ead68f.tar.gz
gcc-3ff15c3be3a3ebeade100538cd6c022154ead68f.tar.bz2
re PR bootstrap/54659 (Bootstrap with --disable-nls broken under Windows)
PR bootstrap/54659 compiler: Don't include <gmp.h>, now included by go-system.h. * go-system.h: Don't include <cstdio>. From-SVN: r194669
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/ChangeLog5
-rw-r--r--gcc/go/go-system.h9
-rw-r--r--gcc/go/gofrontend/expressions.cc2
-rw-r--r--gcc/go/gofrontend/expressions.h1
-rw-r--r--gcc/go/gofrontend/gogo-tree.cc2
-rw-r--r--gcc/go/gofrontend/lex.h1
-rw-r--r--gcc/go/gofrontend/runtime.cc2
-rw-r--r--gcc/go/gofrontend/statements.cc2
-rw-r--r--gcc/go/gofrontend/types.cc2
9 files changed, 5 insertions, 21 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog
index 477e6ed..6d6b14b 100644
--- a/gcc/go/ChangeLog
+++ b/gcc/go/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-21 Ian Lance Taylor <iant@google.com>
+
+ PR bootstrap/54659
+ * go-system.h: Don't include <cstdio>.
+
2012-12-18 Ian Lance Taylor <iant@google.com>
PR go/55201
diff --git a/gcc/go/go-system.h b/gcc/go/go-system.h
index 2decc55..85160cd 100644
--- a/gcc/go/go-system.h
+++ b/gcc/go/go-system.h
@@ -125,15 +125,6 @@ struct hash<T*>
// system.h.
#include <iostream>
-// Some versions of gmp.h assume that #include <iostream> will define
-// std::FILE. This is not true with libstdc++ 4.3 and later. This is
-// fixed in GMP 4.3, but at this point we don't know which version of
-// GMP is in use. Since the top level configure script accepts GMP
-// 4.2, at least for now we #include <cstdio> to ensure that GMP 4.2
-// will work. FIXME: This can be removed when we require GMP 4.3 or
-// later.
-#include <cstdio>
-
#include "system.h"
#include "ansidecl.h"
#include "coretypes.h"
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index f106272..9abd224 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -8,8 +8,6 @@
#include <algorithm>
-#include <gmp.h>
-
#include "toplev.h"
#include "intl.h"
#include "tree.h"
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h
index 66e05a7..152c223 100644
--- a/gcc/go/gofrontend/expressions.h
+++ b/gcc/go/gofrontend/expressions.h
@@ -7,7 +7,6 @@
#ifndef GO_EXPRESSIONS_H
#define GO_EXPRESSIONS_H
-#include <gmp.h>
#include <mpfr.h>
#include "operator.h"
diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc
index 7159dfb..2ffc508 100644
--- a/gcc/go/gofrontend/gogo-tree.cc
+++ b/gcc/go/gofrontend/gogo-tree.cc
@@ -6,8 +6,6 @@
#include "go-system.h"
-#include <gmp.h>
-
#include "toplev.h"
#include "tree.h"
#include "gimple.h"
diff --git a/gcc/go/gofrontend/lex.h b/gcc/go/gofrontend/lex.h
index fc9258b..383a917 100644
--- a/gcc/go/gofrontend/lex.h
+++ b/gcc/go/gofrontend/lex.h
@@ -7,7 +7,6 @@
#ifndef GO_LEX_H
#define GO_LEX_H
-#include <gmp.h>
#include <mpfr.h>
#include "operator.h"
diff --git a/gcc/go/gofrontend/runtime.cc b/gcc/go/gofrontend/runtime.cc
index 059263d..ecc508d 100644
--- a/gcc/go/gofrontend/runtime.cc
+++ b/gcc/go/gofrontend/runtime.cc
@@ -6,8 +6,6 @@
#include "go-system.h"
-#include <gmp.h>
-
#include "gogo.h"
#include "types.h"
#include "expressions.h"
diff --git a/gcc/go/gofrontend/statements.cc b/gcc/go/gofrontend/statements.cc
index fb1322f..7870dad 100644
--- a/gcc/go/gofrontend/statements.cc
+++ b/gcc/go/gofrontend/statements.cc
@@ -6,8 +6,6 @@
#include "go-system.h"
-#include <gmp.h>
-
#include "go-c.h"
#include "types.h"
#include "expressions.h"
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc
index 44d6a61..c0aeb91 100644
--- a/gcc/go/gofrontend/types.cc
+++ b/gcc/go/gofrontend/types.cc
@@ -6,8 +6,6 @@
#include "go-system.h"
-#include <gmp.h>
-
#include "toplev.h"
#include "intl.h"
#include "tree.h"