aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-08-15 03:47:05 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-08-15 03:47:05 +0000
commitf5cc3cbbcf7fd8b80e042f422d3165a1f4c79d39 (patch)
treee4332e86fae0aee8539d9715450f4e6694a7d646
parent18da4303c191c561224dd04b9012ffa06c096800 (diff)
downloadgcc-f5cc3cbbcf7fd8b80e042f422d3165a1f4c79d39.zip
gcc-f5cc3cbbcf7fd8b80e042f422d3165a1f4c79d39.tar.gz
gcc-f5cc3cbbcf7fd8b80e042f422d3165a1f4c79d39.tar.bz2
compiler: Adjust for GCC always being built with C++.
From-SVN: r190405
-rw-r--r--gcc/go/gofrontend/expressions.cc9
-rw-r--r--gcc/go/gofrontend/gogo-tree.cc11
-rw-r--r--gcc/go/gofrontend/types.cc9
3 files changed, 1 insertions, 28 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index a2ac987..17e28e5 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -10,11 +10,6 @@
#include <gmp.h>
-#ifndef ENABLE_BUILD_WITH_CXX
-extern "C"
-{
-#endif
-
#include "toplev.h"
#include "intl.h"
#include "tree.h"
@@ -24,10 +19,6 @@ extern "C"
#include "real.h"
#include "realmpfr.h"
-#ifndef ENABLE_BUILD_WITH_CXX
-}
-#endif
-
#include "go-c.h"
#include "gogo.h"
#include "types.h"
diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc
index bc33769..c933d93 100644
--- a/gcc/go/gofrontend/gogo-tree.cc
+++ b/gcc/go/gofrontend/gogo-tree.cc
@@ -8,11 +8,6 @@
#include <gmp.h>
-#ifndef ENABLE_BUILD_WITH_CXX
-extern "C"
-{
-#endif
-
#include "toplev.h"
#include "tree.h"
#include "gimple.h"
@@ -22,12 +17,8 @@ extern "C"
#include "convert.h"
#include "output.h"
#include "diagnostic.h"
-
-#ifndef ENABLE_BUILD_WITH_CXX
-}
-#endif
-
#include "go-c.h"
+
#include "types.h"
#include "expressions.h"
#include "statements.h"
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc
index 228f3fa..c52f41b 100644
--- a/gcc/go/gofrontend/types.cc
+++ b/gcc/go/gofrontend/types.cc
@@ -8,11 +8,6 @@
#include <gmp.h>
-#ifndef ENABLE_BUILD_WITH_CXX
-extern "C"
-{
-#endif
-
#include "toplev.h"
#include "intl.h"
#include "tree.h"
@@ -20,10 +15,6 @@ extern "C"
#include "real.h"
#include "convert.h"
-#ifndef ENABLE_BUILD_WITH_CXX
-}
-#endif
-
#include "go-c.h"
#include "gogo.h"
#include "operator.h"