hanchenye-llvm-project/clang/lib/Driver
Keith Walker 167961f6dc [ARM] disable FPU features when using soft floating point.
To be compatible with GCC if soft floating point is in effect any FPU
specified is effectively ignored, eg,

  -mfloat-abi=soft -fpu=neon

If any floating point features which require FPU hardware are enabled
they must be disable.

There was some support for doing this for NEON, but it did not handle
VFP, nor did it prevent the backend from emitting the build attribute
Tag_FP_arch describing the generated code as using the floating point
hardware if a FPU was specified (even though soft float does not use
the FPU).

Disabling the hardware floating point features for targets which are
compiling for soft float has meant that some tests which were incorrectly
checking for hardware support also needed to be updated. In such cases,
where appropriate the tests have been updated to check compiling for
soft float and a non-soft float variant (usually softfp). This was
usually because the target specified in the test defaulted to soft float.

Differential Revision: https://reviews.llvm.org/D42569

llvm-svn: 325492
2018-02-19 12:40:26 +00:00
..
ToolChains [ARM] disable FPU features when using soft floating point. 2018-02-19 12:40:26 +00:00
Action.cpp
CMakeLists.txt [RISCV] Add the RISCV target and compiler driver 2018-01-11 13:36:56 +00:00
Compilation.cpp
Distro.cpp [Driver] add initial support for alpine linux 2017-11-19 00:08:12 +00:00
Driver.cpp Further cleanup to Driver mode code, as suggested by dblaikie [NFC] 2018-02-12 17:47:01 +00:00
DriverOptions.cpp
InputInfo.h
Job.cpp Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
Multilib.cpp
Phases.cpp
SanitizerArgs.cpp Reland "[Driver] Update default sanitizer blacklist location" 2018-01-14 03:43:17 +00:00
Tool.cpp
ToolChain.cpp [Sanitizers] Basic Solaris sanitizer support (PR 33274) 2018-02-05 23:59:13 +00:00
Types.cpp
XRayArgs.cpp [XRay][clang] Introduce -fxray-always-emit-customevents 2017-11-30 00:04:54 +00:00