From patchwork Thu Jun 24 19:37:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] Functions in Go can now throw exceptions From: Ian Taylor X-Patchwork-Id: 56824 Message-Id: To: gcc-patches@gcc.gnu.org Date: Thu, 24 Jun 2010 12:37:33 -0700 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 -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)) ;