http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48176
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-18 09:08:41 UTC ---
And the PR42288 variant would be
if (info_section_emitted)
{
switch_to_section (debug_aranges_section);
output_aranges ();
}