llvm-project/clang/lib/Driver/ToolChains/Arch
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
..
AArch64.cpp [AArch64] Add support for the 'R' architecture profile. 2021-10-27 12:32:30 +01:00
AArch64.h Reland "[AArch64] handle -Wa,-march=" 2021-06-23 12:01:57 -07:00
ARM.cpp [ARM] reject -mtp=cp15 if target subarch does not support it 2021-11-09 18:29:30 +01:00
ARM.h [ARM] reject -mtp=cp15 if target subarch does not support it 2021-11-09 18:29:30 +01:00
M68k.cpp [M68k] Allow user to preserve certain registers 2021-05-20 13:57:22 -07:00
M68k.h [cfe][driver][M68k](8/8) Clang driver support 2021-03-08 12:30:57 -08:00
Mips.cpp [clang-cl] Emit nicer warning on unknown /arch: arguments 2021-09-02 10:37:32 -04:00
Mips.h [clang-cl] Emit nicer warning on unknown /arch: arguments 2021-09-02 10:37:32 -04:00
PPC.cpp Re-land "[PowerPC] Remove QPX/A2Q BGQ/BGP CNK support" 2020-07-28 14:00:11 +00:00
PPC.h
RISCV.cpp [RISCV] Use a lambda to avoid having the Support library depend on Option library. 2021-10-18 13:39:37 -07:00
RISCV.h [RISCV] Match GCC `-march`/`-mabi` driver defaults 2019-11-15 15:10:42 +00:00
Sparc.cpp [Sparc] Select the UltraSPARC instruction set with the external assembler 2020-09-07 02:49:05 -04:00
Sparc.h
SystemZ.cpp Move CLANG_SYSTEMZ_DEFAULT_ARCH to config.h. 2020-03-30 14:16:17 -04:00
SystemZ.h [SystemZ] Support -msoft-float 2020-02-04 10:32:45 -05:00
VE.cpp [VE] Remove obsoleted getVEAsmModeForCPU function 2020-08-07 18:20:34 +09:00
VE.h [VE] Remove obsoleted getVEAsmModeForCPU function 2020-08-07 18:20:34 +09:00
X86.cpp Reland "Try to unbreak Win build differently after 973519826edb76"" 2021-09-02 16:19:58 -07:00
X86.h [clang-cl] Emit nicer warning on unknown /arch: arguments 2021-09-02 10:37:32 -04:00