This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] function.c: Remove current_function_assembler_name.


On Thu, Apr 16, 2009 at 10:02 AM, Kazu Hirata <kazu@codesourcery.com> wrote:
> Hi,
>
> Attached is a patch to remove current_function_assembler_name.
>
> AFAICT, this function has been unused ever since it was introduced
> when the dataflow branch was merged.
>
> Bootstrapped on x86_64-pc-linux-gnu. ?OK to apply?

Ok.

Thanks,
Richard.

> Kazu Hirata
>
> 2009-04-16 ?Kazu Hirata ?<kazu@codesourcery.com>
>
> ? ? ? ?* function.c (current_function_assembler_name): Remove.
> ? ? ? ?* function.h: Remove the prototype for
> ? ? ? ?current_function_assembler_name.
>
> Index: gcc/function.c
> ===================================================================
> --- gcc/function.c ? ? ?(revision 146080)
> +++ gcc/function.c ? ? ?(working copy)
> @@ -5340,13 +5340,6 @@ current_function_name (void)
> ?{
> ? return lang_hooks.decl_printable_name (cfun->decl, 2);
> ?}
> -
> -/* Returns the raw (mangled) name of the current function. ?*/
> -const char *
> -current_function_assembler_name (void)
> -{
> - ?return IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (cfun->decl));
> -}
>
>
> ?static unsigned int
> Index: gcc/function.h
> ===================================================================
> --- gcc/function.h ? ? ?(revision 146080)
> +++ gcc/function.h ? ? ?(working copy)
> @@ -677,8 +677,6 @@ extern rtx get_arg_pointer_save_area (vo
>
> ?/* Returns the name of the current function. ?*/
> ?extern const char *current_function_name (void);
> -/* Returns the assembler name (raw, mangled) of the current function. ?*/
> -extern const char *current_function_assembler_name (void);
>
> ?extern void do_warn_unused_parameter (tree);
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]