]> granicus.if.org Git - clang/commit
[ARM] Use TargetParser to determine FPU subtarget features
authorJohn Brawn <john.brawn@arm.com>
Fri, 5 Jun 2015 13:34:11 +0000 (13:34 +0000)
committerJohn Brawn <john.brawn@arm.com>
Fri, 5 Jun 2015 13:34:11 +0000 (13:34 +0000)
commitdd9bf939b7207712068a2fcfa22ec70be182c482
tree28a8796c9506badd08df0cd7ab799e9db3cc8fd2
parentecbdb36dbad2327d638d16f23f4bf0b09fb669dd
[ARM] Use TargetParser to determine FPU subtarget features

The main effect of this is to fix anomalies where certain -mfpu options didn't
disable everything that they should causing strange behaviour when combined
with -mcpu or -march values that themselves enabled fpu subtarget features,
e.g. -mfpu=fpv5-dp-d16 with -march=armv7em previously behaved the same as
-mfpu=fpv5-sp-d16 due to fp-only-sp not being disabled.

Invalid -mfpu options now also give an error, which is consistent with the
handling of the .fpu directive.

Differential Revision: http://reviews.llvm.org/D10239

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239152 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/arm-mfpu.c
test/Preprocessor/arm-target-features.c