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: [google] Add SECTION_EXCLUDE flag and exclude .gnu.callgraph sections (issue5126041)


> Index: final.c
> ===================================================================
> --- final.c ? ? (revision 179104)
> +++ final.c ? ? (working copy)
> @@ -4428,7 +4428,7 @@ rest_of_handle_final (void)
> ? ? ? && cgraph_node (current_function_decl) != NULL
> ? ? ? && (cgraph_node (current_function_decl))->callees != NULL)
> ? ? {
> - ? ? ?flags = SECTION_DEBUG;
> + ? ? ?flags = SECTION_DEBUG | SECTION_EXCLUDE;
> ? ? ? asprintf (&profile_fnname, ".gnu.callgraph.text.%s", fnname);
> ? ? ? switch_to_section (get_section (profile_fnname, flags, NULL));
> ? ? ? fprintf (asm_out_file, "\t.string \"Function %s\"\n", fnname);

This part is OK for the google/gcc-4_6 branch.

-cary


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