diff options
author | Florian Hahn <florian.hahn@arm.com> | 2017-08-04 10:40:18 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2017-08-04 10:40:18 +0000 |
commit | 83e57c2327028e39ef9b6e9cb3c85c85556e6c92 (patch) | |
tree | 41f32de0d19153fa132cfcad8229f61941b6bf16 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | ce6080819ce8fe0f9cd77f327814574eb68c0d49 (diff) | |
download | bcm5719-llvm-83e57c2327028e39ef9b6e9cb3c85c85556e6c92.tar.gz bcm5719-llvm-83e57c2327028e39ef9b6e9cb3c85c85556e6c92.zip |
[Driver] Error if ARM mode was selected explicitly for M-profile CPUs.
Summary:
M-class profiles do not support ARM execution mode, so providing
-marm/-mno-thumb does not make sense in combination with -mcpu/-march
options that support the M-profile.
This is a follow-up patch to D35569 and it seemed pretty clear that we
should emit an error in the driver in this case.
We probably also should warn/error if the provided -mcpu/-march options
do not match, e.g. -mcpu=cortex-m0 -march=armv8-a is invalid, as
cortex-m0 does not support armv8-a. But that should be a separate patch
I think.
Reviewers: echristo, richard.barton.arm, rengolin, labrinea, charles.baylis
Reviewed By: rengolin
Subscribers: aemerson, javed.absar, kristof.beyls, cfe-commits
Differential Revision: https://reviews.llvm.org/D35826
llvm-svn: 310047
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions