Patchwork [gccgo] Functions in Go can now throw exceptions

login
register
mail settings
Submitter Ian Taylor
Date June 24, 2010, 7:37 p.m.
Message ID <mcrfx0ccjcy.fsf@dhcp-172-17-9-151.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/56824/
State New
Headers show

Comments

Ian Taylor - June 24, 2010, 7:37 p.m.
With the new panic/recover support, functions in Go can now throw
exceptions.  This patch removes the previous marking that that could
not happen.  Committed to gccgo branch.

Ian

Patch

diff -r 94f14e2122df go/gogo-tree.cc
--- a/go/gogo-tree.cc	Tue Jun 22 15:19:37 2010 -0700
+++ b/go/gogo-tree.cc	Thu Jun 24 12:35:45 2010 -0700
@@ -1096,8 +1096,6 @@ 
 
 	  this->fndecl_ = decl;
 
-	  TREE_NOTHROW(decl) = 1;
-
 	  gcc_assert(no->package() == NULL);
 	  if (this->enclosing_ != NULL || Gogo::is_thunk(no))
 	    ;