Re: [Qemu-devel] [PATCH v2 1/5] compiler: support Darwin weak references

2012-11-04 Thread TeLeMan
On Fri, Nov 2, 2012 at 10:43 PM, Paolo Bonzini wrote: > Weakrefs only tell you if the symbol was defined elsewhere, so you > need a further check at runtime to pick the default definition > when needed. > > This could be automated by the compiler, but it does not do it. > > Signed-off-by: Paolo Bo

[Qemu-devel] [PATCH v2 1/5] compiler: support Darwin weak references

2012-11-02 Thread Paolo Bonzini
Weakrefs only tell you if the symbol was defined elsewhere, so you need a further check at runtime to pick the default definition when needed. This could be automated by the compiler, but it does not do it. Signed-off-by: Paolo Bonzini --- v1->v2: add unused attribute compiler.h |