This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/48109] Objective-C class defs/refs are lost under LTO on Darwin for ABI0/1
- From: "iains at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Mar 2011 10:29:49 +0000
- Subject: [Bug objc/48109] Objective-C class defs/refs are lost under LTO on Darwin for ABI0/1
- Auto-submitted: auto-generated
- References: <bug-48109-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48109
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.14 10:29:40
Ever Confirmed|0 |1
--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> 2011-03-14 10:29:40 UTC ---
(In reply to comment #1)
> Not sure it matters, but, marking them as used should be enough... Note, there
> are a couple of ways to mark things. TREE_USED and the lto incantation.
they never exist to be marked:
handle_next_class_ref (tree chain)
{
const char *name = IDENTIFIER_POINTER (TREE_VALUE (chain));
char *string = (char *) alloca (strlen (name) + 30);
sprintf (string, ".objc_class_name_%s", name);
#ifdef ASM_DECLARE_UNRESOLVED_REFERENCE
ASM_DECLARE_UNRESOLVED_REFERENCE (asm_out_file, string);
>>>> this just emits .lazy_reference .objc_class_name_xxxxx
#else
return ; /* NULL build for targets other than Darwin. */
#endif
}