OSDN Git Service

Add -mfpu=neon-vfpv4 if cpu is krait
authorPirama Arumuga Nainar <pirama@google.com>
Thu, 9 Jul 2015 19:37:19 +0000 (12:37 -0700)
committerPirama Arumuga Nainar <pirama@google.com>
Thu, 9 Jul 2015 19:55:00 +0000 (12:55 -0700)
commit2d5a50e686ffc5ac00d6623d6f6a083bd1da9679
tree39980bfaccdc8b75c400c7cd1165701fcfb878b1
parente246964b8f73056015379ff37ff746f549c0f20d
Add -mfpu=neon-vfpv4 if cpu is krait

Upstream clang r239152 (http://reviews.llvm.org/D10239) caused a pretty
significant change in behavior.  Passing an FPU feature via -mfpu
disables any feature not supported by those flags (in addition to the
old behavior of enabling features supported by the flags).  For e.g.,
-mfpu=neon used to just pass +neon, +vfp3 as target features to the
backend.  Now, -mfpu=neon also passes -vfp4, -fp16, -fp-armv8.

The backend has always disabled implied feature bits if a feature is
disabled.  Upon seeing the target feature -vfp4, it will disable any
processor/feature that implies vfp4, including the bit that the
processor is a Krait.  Since Krait has both Neon and vfp4, it is safe to
pass '-mfpu=neon-vfpv4'.

Change-Id: Ibbb992e80b8cbc8dc36d5df556885d0912baea22
core/clang/arm.mk