From patchwork Tue Apr 12 18:51:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 90850 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 E6B8EB6F3E for ; Wed, 13 Apr 2011 04:51:43 +1000 (EST) Received: (qmail 11181 invoked by alias); 12 Apr 2011 18:51:39 -0000 Received: (qmail 11172 invoked by uid 22791); 12 Apr 2011 18:51:38 -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, 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) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Apr 2011 18:51:32 +0000 Received: from kpbe18.cbf.corp.google.com (kpbe18.cbf.corp.google.com [172.25.105.82]) by smtp-out.google.com with ESMTP id p3CIpVav020873 for ; Tue, 12 Apr 2011 11:51:31 -0700 Received: from gxk10 (gxk10.prod.google.com [10.202.11.10]) by kpbe18.cbf.corp.google.com with ESMTP id p3CIoiSl024013 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 12 Apr 2011 11:51:30 -0700 Received: by gxk10 with SMTP id 10so3156954gxk.39 for ; Tue, 12 Apr 2011 11:51:30 -0700 (PDT) Received: by 10.42.62.203 with SMTP id z11mr5323ich.343.1302634277004; Tue, 12 Apr 2011 11:51:17 -0700 (PDT) Received: from coign.google.com (dhcp-172-22-127-165.mtv.corp.google.com [172.22.127.165]) by mx.google.com with ESMTPS id i26sm4005296iby.7.2011.04.12.11.51.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 11:51:16 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: Go patch committed: Call cgraph_get_node Date: Tue, 12 Apr 2011 11:51:15 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.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 This patch to the Go frontend brings it up to date with Martin's change to the cgraph code. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r cc9719612058 go/gogo-tree.cc --- a/go/gogo-tree.cc Thu Apr 07 10:07:32 2011 -0700 +++ b/go/gogo-tree.cc Tue Apr 12 11:48:59 2011 -0700 @@ -401,7 +401,7 @@ gimplify_function_tree(fndecl); cgraph_add_new_function(fndecl, false); - cgraph_mark_needed_node(cgraph_node(fndecl)); + cgraph_mark_needed_node(cgraph_get_node(fndecl)); current_function_decl = NULL_TREE; pop_cfun();