------- Comment #13 from hp at gcc dot gnu dot org 2008-08-22 02:24 ------- Patch in comment #12 is as previously mentioned, except because of Darwin's weird symbol handling, the symbol_ref's didn't pass through the same way as other operands, so it has to mark weak references "manually". (No, this is not how -fPIC usually works; targets still pass around a symbol_ref, just wrapped in unspec rtx's.) Tested manually on crosses to ia64-elf, cris-elf, avr-elf and i686-darwin; AFAICT the failures still present with the previous version are gone.
Currently testing this patch native x86_64-unknown-linux-gnu and cross to cris-elf, plan to post a RFA to gcc-patches@ tomorrow (in about 12h, that is). If you read this before reading the RFA, you're very welcome to test the patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37170