http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48094
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> 2011-03-12 18:34:51 UTC --- (In reply to comment #2) > (b) the second needs more checking - the tests pass on darwin9 (and darwin10 > with 3.2.5 - last time I tried) it looks like the .lazy_reference to . objc_class_name_myRootObject is getting dropped somewhere; in this instance, because the code is self-contained, it works OK (when ld doesn't barf). ... in other cases in the test-suite, the only external object is usually "Object" which is in libobjc and therefore it also works. I have an idea about getting rid of the TARGET_ASM method to make these references and use a real variable to carry the information (just make it zero-sized, and use that + a meta-data tag to emit the efficient asm). I was intending to make that a stage-1 investigation -- but perhaps it might warrant trying sooner.