1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-17 23:03:29 +02:00

fix a mismerged patch for defaulting to -mno-relax on OpenBSD; from Brad

This commit is contained in:
robert
2026-06-09 06:41:08 +00:00
parent e39095509a
commit c6e406052a
@@ -141,6 +141,7 @@ void riscv::getRISCVTargetFeatures(const Driver &D, const llvm::Triple &Triple,
Features.push_back("+relax");
else
Features.push_back("-relax");
#endif
// If -mstrict-align, -mno-strict-align, -mscalar-strict-align, or
// -mno-scalar-strict-align is passed, use it. Otherwise, the
@@ -158,7 +159,6 @@ void riscv::getRISCVTargetFeatures(const Driver &D, const llvm::Triple &Triple,
} else if (CPUFastScalarUnaligned || Triple.isAndroid()) {
Features.push_back("+unaligned-scalar-mem");
}
#endif
// If -mstrict-align, -mno-strict-align, -mvector-strict-align, or
// -mno-vector-strict-align is passed, use it. Otherwise, the