------- Comment #41 from howarth at nitro dot med dot uc dot edu 2010-05-03 23:41 ------- I wonder if...
/* Given the decl DECL, return the prevailing decl with the same name. */ tree lto_symtab_prevailing_decl (tree decl) { lto_symtab_entry_t ret; /* Builtins and local symbols are their own prevailing decl. */ if (!TREE_PUBLIC (decl) || is_builtin_fn (decl)) return decl; /* DECL_ABSTRACTs are their own prevailng decl. */ if (TREE_CODE (decl) == FUNCTION_DECL && DECL_ABSTRACT (decl)) return decl; /* Ensure DECL_ASSEMBLER_NAME will not set assembler name. */ gcc_assert (DECL_ASSEMBLER_NAME_SET_P (decl)); /* Walk through the list of candidates and return the one we merged to. */ ret = lto_symtab_get (DECL_ASSEMBLER_NAME (decl)); if (!ret) return NULL_TREE; return ret->decl; } in lto-symtab.c is at all relevant to the problem. Otherwise, could we somehow access the status of lto_mode_d from collect2.c from within darwin.c? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43729