mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
AVR: Add predefined version AVR and emit TLS globals as regular ones (#3420)
The AVR target on LLVM and AVR-GCC does not have support for TLS, so it is necessary to emit global variables as NotThreadLocal.
This commit is contained in:
parent
920fe2cff7
commit
c40bbbc320
3 changed files with 21 additions and 3 deletions
|
@ -651,6 +651,10 @@ void registerPredefinedTargetVersions() {
|
|||
VersionCondition::addPredefinedGlobalIdent("AArch64");
|
||||
registerPredefinedFloatABI("ARM_SoftFloat", "ARM_HardFloat", "ARM_SoftFP");
|
||||
break;
|
||||
case llvm::Triple::avr:
|
||||
VersionCondition::addPredefinedGlobalIdent("AVR");
|
||||
VersionCondition::addPredefinedGlobalIdent("D_SoftFloat");
|
||||
break;
|
||||
case llvm::Triple::mips:
|
||||
case llvm::Triple::mipsel:
|
||||
VersionCondition::addPredefinedGlobalIdent("MIPS");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue