From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8999 invoked by alias); 13 Jul 2007 03:45:22 -0000 Received: (qmail 8988 invoked by uid 22791); 13 Jul 2007 03:45:21 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Jul 2007 03:45:19 +0000 Received: from zps19.corp.google.com (zps19.corp.google.com [172.25.146.19]) by smtp-out.google.com with ESMTP id l6D3jDbe031853; Thu, 12 Jul 2007 20:45:13 -0700 Received: from localhost (ringworld.smo.corp.google.com [172.29.52.187]) by zps19.corp.google.com with ESMTP id l6D3j88h032369; Thu, 12 Jul 2007 20:45:08 -0700 Received: by localhost (Postfix, from userid 23857) id 8134F4125B9; Thu, 12 Jul 2007 20:45:08 -0700 (PDT) Date: Fri, 13 Jul 2007 05:52:00 -0000 From: Dan Hipschman To: Laurynas Biveinis Cc: gcc-patches@gcc.gnu.org Subject: Re: Remove an RTL usage in the C++ front end Message-ID: <20070713034508.GA2111@google.com> Reply-To: dsh@google.com Mail-Followup-To: Laurynas Biveinis , gcc-patches@gcc.gnu.org References: <20070713032718.GA18363@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg01227.txt.bz2 On Thu, Jul 12, 2007 at 08:36:24PM -0700, Laurynas Biveinis wrote: > The ChangeLog disagrees with the actual patch: Yea, I was using IDENTIFIER_POINTER (DECL_NAME (thunk_fndecl)) before and then changed to get_name(). Revised: 2007-06-12 Dan Hipschman * cp/method.c (use_thunk): Use get_name instead of DECL_RTL to access function name. Index: cp/method.c =================================================================== --- cp/method.c (revision 126593) +++ cp/method.c (working copy) @@ -430,7 +430,7 @@ use_thunk (tree thunk_fndecl, bool emit_ current_function_decl = thunk_fndecl; DECL_RESULT (thunk_fndecl) = build_decl (RESULT_DECL, 0, integer_type_node); - fnname = XSTR (XEXP (DECL_RTL (thunk_fndecl), 0), 0); + fnname = get_name (thunk_fndecl); /* The back end expects DECL_INITIAL to contain a BLOCK, so we create one. */ fn_block = make_node (BLOCK);