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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user