[cfe-commits] r70404 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Eli Friedman eli.friedman at gmail.com
Wed Apr 29 14:32:17 PDT 2009


On Wed, Apr 29, 2009 at 1:54 PM, Fariborz Jahanian <fjahanian at apple.com> wrote:
> It is not needed for 32bit code gen of  objc_msgSend. But when
> objc_msgSend is used in 64bit API (something I have done locally),
> it is necessary for the lower byte of %rax register to get set to 0. I
> thought that I set this unconditionally
> for now.

I assume you don't mean that %rax *always* gets set to 0?  It should
depend on the number of floating-point arguments.

On a side note, the handling for floating-point return values looks
seriously broken; see
http://lists.apple.com/archives/cocoa-dev/2008/Feb/msg02338.html .

-Eli




More information about the cfe-commits mailing list