]> git.lizzy.rs Git - rust.git/commit
Distinguish different `vfp?` features
authorAndrea Canciani <ranma42@gmail.com>
Thu, 14 Apr 2016 11:02:47 +0000 (13:02 +0200)
committerAndrea Canciani <ranma42@gmail.com>
Tue, 19 Apr 2016 15:48:51 +0000 (17:48 +0200)
commit5879ee1ecaa5738d93613c7bd14bdd09ab48450d
tree0bf2ac8255b4e938cd7bfd444fa6aa1a938b85d7
parentf942c28900159152358dd2f5718262464c09dc52
Distinguish different `vfp?` features

The different generations of ARM floating point VFP correspond to the
LLVM CPU features named `vfp2`, `vfp3`, and `vfp4`; they are now
exposed in Rust under the same names.

This commit fixes some crashes that would occour when checking if the
`vfp` feature exists (the crash occurs because the linear scan of the
LLVM feature goes past the end of the features whenever it searches
for a feature that does not exist in the LLVM tables).
src/librustc_driver/target_features.rs