From: Ian Lance Taylor Date: Wed, 15 Aug 2012 03:47:05 +0000 (+0000) Subject: compiler: Adjust for GCC always being built with C++. X-Git-Tag: misc/gccgo-go1_1_2~1377 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5cc3cbbcf7fd8b80e042f422d3165a1f4c79d39;p=thirdparty%2Fgcc.git compiler: Adjust for GCC always being built with C++. From-SVN: r190405 --- diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index a2ac98703b44..17e28e5e4851 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -10,11 +10,6 @@ #include -#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 bc33769a07a5..c933d9375968 100644 --- a/gcc/go/gofrontend/gogo-tree.cc +++ b/gcc/go/gofrontend/gogo-tree.cc @@ -8,11 +8,6 @@ #include -#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 228f3faa4a4f..c52f41b76ecc 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -8,11 +8,6 @@ #include -#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"