[PATCH 1/4] [PPC64LE] Add a CALL_ELF macro to indicate use of the ELFv2 ABI.

Chandler Carruth chandlerc at google.com
Tue Mar 11 13:07:58 PDT 2014


On Tue, Mar 11, 2014 at 12:54 PM, Will Schmidt <will_schmidt at vnet.ibm.com>wrote:

> Add a CALL_ELF macro to clang to indicate use of the ELFv2 ABI.
>
> In code, a (_CALL_ELF==2) check will indicate when the ELFv2 ABI is
> to be used.   This is the desired default for the PPC64 LE target.
>

This is... pretty magical. Even by the measure of random preprocessor
macros.

Can you add some link to a spec which documents this as the spec for how to
detect ELFv2 ABI (at least on PPC)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140311/d2c99a9e/attachment.html>


More information about the cfe-commits mailing list