This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GOOGLE] Fix -femit-function-names in LIPO profile-use mode
- From: Xinliang David Li <davidxl at google dot com>
- To: Teresa Johnson <tejohnson at google dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 24 Jun 2014 08:32:06 -0700
- Subject: Re: [GOOGLE] Fix -femit-function-names in LIPO profile-use mode
- Authentication-results: sourceware.org; auth=none
- References: <CAAe5K+U2dRPhMR-MbbqRzNGyjR2kEQ6wvSDy6WE+JvnpKvuaCQ at mail dot gmail dot com>
ok.
David
On Tue, Jun 24, 2014 at 5:50 AM, Teresa Johnson <tejohnson@google.com> wrote:
> Emit the proper module name in LIPO profile-use mode.
>
> Passes regression tests, ok for google branches?
>
> Thanks,
> Teresa
>
> 2014-06-24 Teresa Johnson <tejohnson@google.com>
>
> * coverage.c (emit_function_name): Emit module name in LIPO mode.
>
> Index: coverage.c
> ===================================================================
> --- coverage.c (revision 211893)
> +++ coverage.c (working copy)
> @@ -1882,7 +1882,9 @@ void
> emit_function_name (void)
> {
> fprintf (stderr, "Module %s FuncId %u Name %s\n",
> - main_input_file_name,
> + (L_IPO_COMP_MODE
> + ? get_module_name (FUNC_DECL_MODULE_ID (cfun))
> + : main_input_file_name),
> FUNC_DECL_FUNC_ID (cfun),
> IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl)));
> }
> --
> Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413