This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Change default ABI for AArch32 to be "aapcs" (was "apcs-gnu")
ClosedPublic

Authored by olista01 on Aug 28 2014, 3:39 AM.

Details

Reviewers
asl
Summary

The current default abi when no environment is given is "apcs-gnu",
which is obsolete. This patch changes the default to "aapcs". "aapcs" has both
hard- and soft-float variants, so the -mhard-float, -msoft-float and
-mfloat-abi= options now all behave as expected when no environment is
specified in the triple.

While writing this I also noticed that a preprocessor test claims to be
checking darwin, but is actually checking the defaults, which are
different for darwin.

Diff Detail

Event Timeline

olista01 updated this revision to Diff 13027.Aug 28 2014, 3:39 AM
olista01 retitled this revision from to [ARM] Change default ABI for AArch32 to be "aapcs" (was "apcs-gnu").
olista01 updated this object.
olista01 edited the test plan for this revision. (Show Details)
olista01 set the repository for this revision to rL LLVM.
olista01 added a subscriber: Unknown Object (MLST).
asl accepted this revision.Aug 28 2014, 5:07 AM
asl added a reviewer: asl.
asl added a subscriber: asl.

LGTM

This revision is now accepted and ready to land.Aug 28 2014, 5:07 AM
olista01 closed this revision.Aug 28 2014, 5:25 AM

Thanks, committed revision 216662.