Go patch committed: Update for C++

Submitted by Ian Taylor on Aug. 15, 2012, 3:47 a.m.

Details

Message ID mcr1uj8hl4t.fsf@dhcp-172-18-216-180.mtv.corp.google.com
State New
Headers show

Commit Message

Ian Taylor Aug. 15, 2012, 3:47 a.m.
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

Patch hide | download patch | download mbox

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"