http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48174
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-19 23:35:12 UTC --- (In reply to comment #5) > - else if (sym->attr.is_main_program) > + else if (sym->attr.if_source != IFSRC_UNKNOWN) Probably better OR the old condition (is_main_program || if_source != UNKNOWN).