Re[6]: [Gc] Fwd: unable to compile GC using Apple's llvm-gcc(from XCode4)

Ivan Maidanski ivmai at mail.ru
Sun Apr 10 05:01:21 PDT 2011


Hi,

I've added AO_XCHGB_RET_WORD to workaround a bug in llvm-gcc. It worked for me (llvm-gcc produced .bo files).

All AO_x macros are libatomic-specific.

Regards.

Sun, 10 Apr 2011 19:51:13 +0800  "Asst. Prof. Dmitrii (Dima) Pasechnik" <dima at ntu.edu.sg>:

> Ivan,
> you added in
> libatomic_ops/ChangeLog:        Recognize AO_XCHGB_RET_WORD new macro (to
> workaround a bug).
> 
> where is that AO_XCHGB_RET_WORD is coming from? Is it Linux-specific?
> On MacOSX (64bit) it's not defined.
> 
> On 10 April 2011 15:03, Ivan Maidanski <ivmai at mail.ru> wrote:
> > unsigned char  oldval;
> >  __asm__ __volatile__("xchgb %0, %1"
> >                : "=q"(oldval), "=m"(*addr)
> >                : "0"(0xff), "m"(*addr) : "memory");
> >
> 
> 
> 
> --
> Dmitrii Pasechnik
> -----
> DISCLAIMER: Any text following this sentence does not constitute a
> part of this message, and was added automatically during transmission.
> 
> CONFIDENTIALITY: This email is intended solely for the person(s) named and may
> be confidential and/or privileged. If you are not the intended recipient,
> please delete it, notify us and do not copy, use, or disclose its content.
> Thank you.
> 
> Towards A Sustainable Earth: Print Only When Necessary



More information about the Gc mailing list