llvm-project/clang/lib/Driver
Ard Biesheuvel 24772720c5 [ARM] reject -mtp=cp15 if target subarch does not support it
Currently, we permit -mtp=cp15 even for targets that don't implement the
TLS register. When building for ARMv6 or earlier, this means we emit
instructions that will UNDEF at runtime. For Thumb1, passing -mtp=cp15
will trigger an assert in the backend.

So let's add some diagnostics to ensure that -mtp=cp15 is only accepted
for ARMv6T2 or newer.

Reviewed By: nickdesaulniers

Differential Revision: https://reviews.llvm.org/D113026
2021-11-09 18:29:30 +01:00
..
ToolChains [ARM] reject -mtp=cp15 if target subarch does not support it 2021-11-09 18:29:30 +01:00
Action.cpp [CUDA][HIP] Add -fuse-cuid 2021-02-08 22:26:12 -05:00
CMakeLists.txt Fix TargetRegistry shlib build, clang edition 2021-10-08 15:43:56 -07:00
Compilation.cpp [clang] Remove redundant calls to c_str() (NFC) 2021-08-31 08:53:51 -07:00
Distro.cpp Add support of the next Ubuntu (Ubuntu 22.04 - Jammy Jellyfish) 2021-10-23 23:55:50 +02:00
Driver.cpp Support: Use sys::path::is_style_{posix,windows}() in a few places 2021-10-29 12:09:41 -07:00
DriverOptions.cpp [Driver] Use shared singleton instance of DriverOptTable 2019-09-04 14:26:28 +00:00
Job.cpp [clang][driver] NFC: Expose InputInfo in Job instead of plain filenames 2021-07-27 09:18:58 +02:00
Multilib.cpp [clang] Use llvm::erase_if (NFC) 2021-10-17 13:50:29 -07:00
OptionUtils.cpp [NFC] Move OptionUtils from Basic to Driver 2019-12-23 08:11:23 -05:00
Phases.cpp [clang][ifs] Clang Interface Stubs ToolChain plumbing. 2019-10-08 15:23:14 +00:00
SanitizerArgs.cpp Revert "[clang] deprecate frelaxed-template-template-args, make it on by default" 2021-11-02 17:02:19 -04:00
Tool.cpp [clang][driver] NFC: Move InputInfo.h from lib to include 2021-07-27 09:17:39 +02:00
ToolChain.cpp Support: Use sys::path::is_style_{posix,windows}() in a few places 2021-10-29 12:09:41 -07:00
Types.cpp [clang] Remove duplication in types::getCompilationPhases() 2021-09-30 14:17:14 -04:00
XRayArgs.cpp [xray] Function coverage groups 2020-09-24 22:09:53 -04:00