This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/48176] [4.6/4.7 Regression] .debug_aranges is no longer emitted
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Mar 2011 09:32:20 +0000
- Subject: [Bug debug/48176] [4.6/4.7 Regression] .debug_aranges is no longer emitted
- Auto-submitted: auto-generated
- References: <bug-48176-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48176
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-18 09:32:13 UTC ---
If we want to be extra safe (and for 4.6 we need to be), I think
if (fde_table_in_use && info_section_emitted)
or
if ((arange_table_in_use || text_section_used || cold_text_section_used)
&& info_section_emitted)
are the conditions to use. I think I prefer the latter, which is more explicit
on what it is testing, in particular output only if there will be any aranges
within the section actually emitted, and when there is a .Ldebug_info0 to point
the aranges to.