This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49887] [4.7 regression] .debug_macro breaks many Solaris/SPARC tests
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jul 2011 12:59:09 +0000
- Subject: [Bug debug/49887] [4.7 regression] .debug_macro breaks many Solaris/SPARC tests
- Auto-submitted: auto-generated
- References: <bug-49887-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49887
--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-07-29 12:58:25 UTC ---
> --- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-07-28 14:52:35 UTC ---
>> --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-28 14:45:11 UTC ---
>> So, how are the group signature symbols supposed to be emitted on
>> SPARC/Solaris? A dummy symbol of that name somewhere in the section? Can it
>> be local, or must it be global symbol?
>
> This is usually handled in gcc/config/sol2.c
> (solaris_elf_asm_comdat_section, solaris_define_comdat_signature,
> solaris_code_end). I haven't yet checked why this doesn't trigger here.
I see now what's going on: output_macinfo is run from toplev.c (compile_file):
(*debug_hooks->finish) (main_input_filename);
which runs *after*
targetm.asm_out.code_end ();
I've no idea what's a good way to resolve this.
Rainer