diff mbox

[gccgo] Functions in Go can now throw exceptions

Message ID mcrfx0ccjcy.fsf@dhcp-172-17-9-151.mtv.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor June 24, 2010, 7:37 p.m. UTC
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
diff mbox

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))
 	    ;