[GOOGLE] Fix -femit-function-names in LIPO profile-use mode
Teresa Johnson
tejohnson@google.com
Tue Jun 24 12:51:00 GMT 2014
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
More information about the Gcc-patches
mailing list