llvm-project/clang/lib/Basic/Targets
Ties Stuij 95bbe9a193 [clang][ARM] follow GCC behavior for defining __SOFTFP__
GCC behavior regarding defining __SOFTFP__ when (implicitly) specifying
-mfloat-abi=softfp:
- compile without (implicit) FP: define __SOFTFP__
- compile with (implicit) FP: don't define __SOFTFP__

Currently Clang doesn't define __SOFTFP__ when softfp is specified, either with
or without FP. This patch brings Clang in line with GCC behavior.

This was raised by itaig1 over on Github:
https://github.com/llvm/llvm-project/issues/55755

Reviewed By: pratlucas

Differential Revision: https://reviews.llvm.org/D135680
2022-10-18 14:38:03 +01:00
..
AArch64.cpp [AArch64][ARM] Alter most of arm_neon.h to be target-based, not preprocessor based. 2022-10-11 09:09:16 +01:00
AArch64.h [Clang][AArch64] Support AArch64 target(..) attribute formats. 2022-10-01 15:40:59 +01:00
AMDGPU.cpp [clang] Don't include StringSwitch.h (NFC) 2022-09-18 22:21:32 -07:00
AMDGPU.h [clang] Convert for_each to range-based for loops (NFC) 2022-06-10 22:39:45 -07:00
ARC.cpp
ARC.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
ARM.cpp [clang][ARM] follow GCC behavior for defining __SOFTFP__ 2022-10-18 14:38:03 +01:00
ARM.h [clang][ARM] Emit warnings when PACBTI-M is used with unsupported architectures 2022-01-28 09:59:58 +00:00
AVR.cpp [clang] Don't include StringSwitch.h (NFC) 2022-09-18 22:21:32 -07:00
AVR.h [clang][AVR] Implement standard calling convention for AVR and AVRTiny 2022-03-24 02:08:22 +00:00
BPF.cpp [Basic] Use llvm::is_contained (NFC) 2021-10-10 08:52:14 -07:00
BPF.h [BPF] add support for 32 bit registers in inline asm 2021-05-16 11:01:47 -07:00
CSKY.cpp [CSKY] Fix the conflict of default fpu features and -mfpu option 2022-05-23 10:44:55 +08:00
CSKY.h [clang] Remove redundant virtual specifies (NFC) 2022-07-24 22:02:58 -07:00
DirectX.cpp Add clang DirectX target support 2022-03-28 15:00:50 -05:00
DirectX.h [HLSL] Enable availability attribute 2022-09-16 16:04:27 -05:00
Hexagon.cpp [Hexagon] Driver/preprocessor options for Hexagon v69 2021-12-23 10:17:08 -08:00
Hexagon.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
Lanai.cpp
Lanai.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
Le64.cpp [NFC] Remove reference to file deleted by D100981. 2021-04-22 10:40:18 -07:00
Le64.h [NFC] Remove reference to file deleted by D100981. 2021-04-22 10:40:18 -07:00
LoongArch.cpp Reland "[Clang][LoongArch] Add inline asm support for constraints k/m/ZB/ZC" 2022-10-11 19:51:48 +08:00
LoongArch.h Reland "[clang][LoongArch] Set MaxAtomicInlineWidth and MaxAtomicPromoteWidth for LoongArch" 2022-10-11 20:36:09 +08:00
M68k.cpp Remove redundant string initialization (NFC) 2021-12-26 09:39:26 -08:00
M68k.h [cfe] Support target-specific escaped character in inline asm 2021-05-24 21:39:21 -07:00
MSP430.cpp
MSP430.h
Mips.cpp [Basic] Use llvm::is_contained (NFC) 2021-10-10 08:52:14 -07:00
Mips.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
NVPTX.cpp Add support for CUDA-11.8 and sm_{87,89,90} GPUs. 2022-10-07 13:59:28 -07:00
NVPTX.h [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
OSTargets.cpp [clang-cl] Expose the /volatile:{iso,ms} choice via _ISO_VOLATILE 2022-08-23 14:29:52 +00:00
OSTargets.h Use inheriting ctors for OSTargetInfo 2022-10-05 20:22:19 +00:00
PNaCl.cpp
PNaCl.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
PPC.cpp [clang][AIX] Add option to control quadword lock free atomics ABI on AIX 2022-07-27 01:56:25 +00:00
PPC.h [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
RISCV.cpp [clang][RISCV] Set vscale_range attribute based on presence of "v" extension 2022-10-17 11:33:03 -07:00
RISCV.h [clang][RISCV] Set vscale_range attribute based on presence of "v" extension 2022-10-17 11:33:03 -07:00
SPIR.cpp [SPIR-V] Add SPIR-V triple and clang target info. 2021-11-08 13:34:10 +00:00
SPIR.h [CUDA][SPIRV] Assign global address space to CUDA kernel arguments 2022-02-24 20:51:43 -08:00
Sparc.cpp [Sparc] Don't define __sparcv9 and __sparcv9__ when targeting V8+ 2022-01-21 09:57:17 -08:00
Sparc.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
SystemZ.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
SystemZ.h [SystemZ] Improve handling of vector alignments. 2022-09-08 17:33:05 +02:00
TCE.cpp
TCE.h [SYCL] Enable `opencl_global_[host,device]` attributes for SYCL 2021-05-18 10:27:35 +03:00
VE.cpp [Clang][VE] Add vector load intrinsics 2022-03-12 09:09:57 +09:00
VE.h
WebAssembly.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
WebAssembly.h [WebAssembly] Add new target feature in support of 'extended-const' proposal 2022-03-07 16:45:42 -08:00
X86.cpp Support of expression granularity for _Float16. 2022-08-25 08:26:53 -04:00
X86.h Add a missing override keyword. NFC. 2022-08-25 14:50:28 +02:00
XCore.cpp [clang][XCore] Define __xcore__ for XCore target. 2021-04-26 15:06:04 +01:00
XCore.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00