From patchwork Thu Jun 24 19:37:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 56824 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 1E641B6EDD for ; Fri, 25 Jun 2010 05:37:50 +1000 (EST) Received: (qmail 30213 invoked by alias); 24 Jun 2010 19:37:48 -0000 Received: (qmail 30202 invoked by uid 22791); 24 Jun 2010 19:37:48 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, TW_CC, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Jun 2010 19:37:42 +0000 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id o5OJbcn5014284 for ; Thu, 24 Jun 2010 12:37:39 -0700 Received: from pwi4 (pwi4.prod.google.com [10.241.219.4]) by wpaz1.hot.corp.google.com with ESMTP id o5OJbbjV012640 for ; Thu, 24 Jun 2010 12:37:37 -0700 Received: by pwi4 with SMTP id 4so3437314pwi.29 for ; Thu, 24 Jun 2010 12:37:37 -0700 (PDT) Received: by 10.142.207.15 with SMTP id e15mr9840963wfg.14.1277408257211; Thu, 24 Jun 2010 12:37:37 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id u18sm4812427wfh.19.2010.06.24.12.37.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Jun 2010 12:37:36 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [gccgo] Functions in Go can now throw exceptions From: Ian Lance Taylor Date: Thu, 24 Jun 2010 12:37:33 -0700 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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)) ;