This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [google] Add SECTION_EXCLUDE flag and exclude .gnu.callgraph sections (issue5126041)
- From: Cary Coutant <ccoutant at google dot com>
- To: Sriraman Tallam <tmsriram at google dot com>
- Cc: reply at codereview dot appspotmail dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Sep 2011 11:02:50 -0700
- Subject: Re: [google] Add SECTION_EXCLUDE flag and exclude .gnu.callgraph sections (issue5126041)
- References: <20110923234552.68D7CB2195@azwildcat.mtv.corp.google.com>
> 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