Skip to content

Commit e79cb4c

Browse files
WIP: Produce AIX-specific "target features" only for AIX
1 parent 8e0a63d commit e79cb4c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

clang/lib/Basic/Targets/PPC.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -609,13 +609,15 @@ bool PPCTargetInfo::initFeatureMap(
609609
// Privileged instructions are off by default.
610610
Features["privileged"] = false;
611611

612-
// The code generated by the -maix-small-local-[exec|dynamic]-tls option is
613-
// turned off by default.
614-
Features["aix-small-local-exec-tls"] = false;
615-
Features["aix-small-local-dynamic-tls"] = false;
612+
if (getTriple().isOSAIX()) {
613+
// The code generated by the -maix-small-local-[exec|dynamic]-tls option is
614+
// turned off by default.
615+
Features["aix-small-local-exec-tls"] = false;
616+
Features["aix-small-local-dynamic-tls"] = false;
616617

617-
// Turn off TLS model opt by default.
618-
Features["aix-shared-lib-tls-model-opt"] = false;
618+
// Turn off TLS model opt by default.
619+
Features["aix-shared-lib-tls-model-opt"] = false;
620+
}
619621

620622
Features["spe"] = llvm::StringSwitch<bool>(CPU)
621623
.Case("8548", true)

0 commit comments

Comments
 (0)