sync with OpenBSD -current
This commit is contained in:
parent
1e1b0c7971
commit
3a0fe9932a
13 changed files with 287 additions and 75 deletions
|
@ -158,12 +158,6 @@ void x86::getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
|
|||
// consider deprecating this and instead warn if the user requests external
|
||||
// retpoline thunks and *doesn't* request some form of retpolines.
|
||||
auto SpectreOpt = clang::driver::options::ID::OPT_INVALID;
|
||||
if (Triple.isOSOpenBSD() && Triple.getArch() == llvm::Triple::x86_64 &&
|
||||
Args.hasFlag(options::OPT_mretpoline, options::OPT_mno_retpoline, true)) {
|
||||
Features.push_back("+retpoline-indirect-calls");
|
||||
Features.push_back("+retpoline-indirect-branches");
|
||||
SpectreOpt = options::OPT_mretpoline;
|
||||
} else
|
||||
if (Args.hasArgNoClaim(options::OPT_mretpoline, options::OPT_mno_retpoline,
|
||||
options::OPT_mspeculative_load_hardening,
|
||||
options::OPT_mno_speculative_load_hardening)) {
|
||||
|
|
|
@ -510,7 +510,6 @@ constexpr const char *knownZFlags[] = {
|
|||
"nokeep-text-section-prefix",
|
||||
"nopack-relative-relocs",
|
||||
"norelro",
|
||||
"noretpolineplt",
|
||||
"noseparate-code",
|
||||
"nostart-stop-gc",
|
||||
"notext",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue