From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2022 invoked by alias); 13 Jul 2007 03:27:32 -0000 Received: (qmail 2014 invoked by uid 22791); 13 Jul 2007 03:27:32 -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:27:30 +0000 Received: from zps37.corp.google.com (zps37.corp.google.com [172.25.146.37]) by smtp-out.google.com with ESMTP id l6D3RN94028902 for ; Thu, 12 Jul 2007 20:27:23 -0700 Received: from localhost (ringworld.smo.corp.google.com [172.29.52.187]) by zps37.corp.google.com with ESMTP id l6D3RIj5011512 for ; Thu, 12 Jul 2007 20:27:18 -0700 Received: by localhost (Postfix, from userid 23857) id 843F24125B9; Thu, 12 Jul 2007 20:27:18 -0700 (PDT) Date: Fri, 13 Jul 2007 03:43:00 -0000 From: Dan Hipschman To: gcc-patches@gcc.gnu.org Subject: Remove an RTL usage in the C++ front end Message-ID: <20070713032718.GA18363@google.com> Reply-To: dsh@google.com Mail-Followup-To: gcc-patches@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline 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/msg01224.txt.bz2 This patch gets rid of one usage of RTL in the C++ front end. 2007-06-12 Dan Hipschman * cp/method.c (use_thunk): Use DECL_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);