This patch to the Go frontend, from Diego, updates it for the conversion of GCC to building with C++. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline.
Ian
diff -r 681a1ae3f72c go/expressions.cc --- a/go/expressions.cc Fri Aug 10 21:07:57 2012 -0700 +++ b/go/expressions.cc Tue Aug 14 19:38:07 2012 -0700 @@ -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 @@ #include "real.h" #include "realmpfr.h" -#ifndef ENABLE_BUILD_WITH_CXX -} -#endif - #include "go-c.h" #include "gogo.h" #include "types.h" diff -r 681a1ae3f72c go/gogo-tree.cc --- a/go/gogo-tree.cc Fri Aug 10 21:07:57 2012 -0700 +++ b/go/gogo-tree.cc Tue Aug 14 19:38:07 2012 -0700 @@ -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 @@ #include "convert.h" #include "output.h" #include "diagnostic.h" +#include "go-c.h" -#ifndef ENABLE_BUILD_WITH_CXX -} -#endif - -#include "go-c.h" #include "types.h" #include "expressions.h" #include "statements.h" diff -r 681a1ae3f72c go/types.cc --- a/go/types.cc Fri Aug 10 21:07:57 2012 -0700 +++ b/go/types.cc Tue Aug 14 19:38:07 2012 -0700 @@ -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 @@ #include "real.h" #include "convert.h" -#ifndef ENABLE_BUILD_WITH_CXX -} -#endif - #include "go-c.h" #include "gogo.h" #include "operator.h"