]> granicus.if.org Git - clang/commit
[ARM] Allow setting the generic features for native cpus
authorRenato Golin <renato.golin@linaro.org>
Thu, 30 Jul 2015 16:40:17 +0000 (16:40 +0000)
committerRenato Golin <renato.golin@linaro.org>
Thu, 30 Jul 2015 16:40:17 +0000 (16:40 +0000)
commit4fbead8a5ef5f4ae61437f129e53df6fbf3be1d5
tree19896cdd7192e0a6c9bddb893955d34ac016d189
parent46eec095d18b4551f268634b35ae1fc5c73aba6f
[ARM] Allow setting the generic features for native cpus

Copying the already existing code for x86 to ARM to set the correct CPU
features when using -mcpu=native. We can already detect the CPU name
but we were not setting the correct feature bits.

Moving fpu/hwdiv down to make sure they override whatever we set the
default to be.

No tests because this is native detection, and not all ARM-enabled builds
will hapen at a specific CPU, or even ARM. I have tested locally and it
works as expected.

Fixes PR12794.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243656 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp