This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Remove an RTL usage in the C++ front end
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Laurynas Biveinis <laurynas dot biveinis at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 05 Aug 2007 20:34:40 -0700
- Subject: Re: Remove an RTL usage in the C++ front end
- References: <20070713032718.GA18363@google.com> <d1e3ff2b0707122036o5b46b29bk9ba4657d697da3cf@mail.gmail.com> <20070713034508.GA2111@google.com>
Dan Hipschman wrote:
> 2007-06-12 Dan Hipschman <dsh@google.com>
>
> * 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);
Why use get_name here? I'd actually prefer that we use name
IDENTIFIER_POINTER (DECL_NAME (thunk_fndecl)); we don't want the
recursive ADDR_EXPR behavior in get_name, do we?
OK with that change.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713