I committed the patch to google/gcc-4_6 branch.
Thanks,
-Sri.
* output.h (SECTION_EXCLUDE): New flag for exclude sections.
* varasm.c (default_elf_asm_named_section): Add "e" to section flags
marked as SECTION_EXCLUDE.
* final.c (rest_of_handle_final): Exclude .gn
> 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_fun
Submitted the SECTION_EXCLUDE part to trunk.
Thanks,
-Sri.
On Tue, Sep 27, 2011 at 10:51 AM, Kai Tietz wrote:
>
> 2011/9/27 Richard Henderson :
> > On 09/23/2011 04:45 PM, Sriraman Tallam wrote:
> >> I also want the SECTION_EXCLUDE part alone to be considered for trunk.
> >
> > This is ok for tr
2011/9/27 Richard Henderson :
> On 09/23/2011 04:45 PM, Sriraman Tallam wrote:
>> I also want the SECTION_EXCLUDE part alone to be considered for trunk.
>
> This is ok for trunk.
>
> Kai, is there a similar flag for pe-coff? I.e. is there something
> reasonable that we can add to i386_pe_asm_named
On 09/23/2011 04:45 PM, Sriraman Tallam wrote:
> I also want the SECTION_EXCLUDE part alone to be considered for trunk.
This is ok for trunk.
Kai, is there a similar flag for pe-coff? I.e. is there something
reasonable that we can add to i386_pe_asm_named_section?
r~
This patch adds a new flag to mark sections as exclude sections. Such
sections will be discarded by the linker. Also, mark .gnu.callgraph
sections which store the callgraph edge profile info as exclude
sections.
I also want the SECTION_EXCLUDE part alone to be considered for trunk.
Index: final