https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113182
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note, normally TREE_SYMBOL_REFERENCED should be set through something like output_addr_const (or whatever else) -> assemble_name -> assemble_name_resolve -> mark_referenced. Why doesn't trigger that on PA? Or does it trigger, but the assembler requires the externs to be before the calls?