[llvm-commits] [llvm-gcc-4.2] r71287 - in /llvm-gcc-4.2/trunk: build_gcc gcc/ChangeLog.apple gcc/config/arm/arm.c gcc/cp/mangle.c gcc/objc/ChangeLog.apple gcc/objc/objc-act.c gcc/testsuite/ChangeLog.apple gcc/testsuite/g++.apple/anon-1.C gcc/testsuite/gcc.apple/weak.c gcc/testsuite/objc.dg/property-16.m gcc/tree-eh.c gcc/version.c

Mike Stump mrs at apple.com
Wed May 13 11:52:25 PDT 2009


On May 10, 2009, at 11:58 PM, Mike Stump wrote:
> I don't know why that would be the case.  Also, chosen for symmetry
> with the case just before it.  I don't see why one can't have a weak
> definition that winds up not being used that turns out to be not
> defined as runtime, thus, being 0.  Anything prevent that case?

Ah, curiouser and curiouser...  I talked with my expert, and at least  
on darwin, things conspire so that only weak references can be 0.  If  
it were just weak, it would wind up having a real address.  The case I  
was thinking about can't happen as the weak definition would be  
retained and used, thus preventing the address from being 0.



More information about the llvm-commits mailing list