]> granicus.if.org Git - clang/commit
[ARM] Error out if float-ab=hard and abi=apcs-gnu on macho platforms.
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 26 Aug 2015 19:00:11 +0000 (19:00 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 26 Aug 2015 19:00:11 +0000 (19:00 +0000)
commit6b46f883bef02a28d8b509ce44b425bf7ef6e8a9
treee880926f6bd1f477569f3f42f9c1d04c71609eac
parent5b814caf74886b197ed1bf81a0336461f64cb5de
[ARM] Error out if float-ab=hard and abi=apcs-gnu on macho platforms.

Error out if -mfloat-abi=hard or -mhard-float is specified on the command
line and the target ABI is APCS. Previously clang issued no warnings or
errors and just passed the option to the backend, which had no effect on
code generation for targets using APCS.

This commit corrects the patch commited in r245866, which didn't take into
account the fact that not all darwin targets use APCS.

rdar://problem/22257950

http://reviews.llvm.org/D12344

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246054 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/arm-float-abi.c [new file with mode: 0644]