[cfe-dev] Deviation from x86-64 calling convention

Joe Groff arcata at gmail.com
Sun Dec 25 18:42:44 PST 2011


On Sunday, December 25, 2011, Eli Friedman <eli.friedman at gmail.com> wrote:

> Yes... unfortunately, that case wasn't clear in the original standard,
> and versions of gcc from before that clarification implement generate
> the same code you're seeing from clang.  clang uses the old gcc
> behavior on OSX, and the spec-compliant behavior on other platforms.
> If you're interested in the relevant code in clang, search for
> honorsRevision0_98 in lib/CodeGen/TargetInfo.cpp.
>
> -Eli

Thanks for the reference, Eli. Out of curiosity, is this platform-specific
behavior documented anywhere other than the gcc and clang source? Apple's
documentation states that Mac OS X follows AMD's spec, without
qualification.

-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111225/7ca83c64/attachment.html>


More information about the cfe-dev mailing list