Skip to content

Commit

Permalink
Merge branch 'master' into feature/adding-build-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
udesou authored Feb 8, 2025
2 parents f55be02 + baf8124 commit d5b9db2
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,6 @@

using namespace llvm;

static bool jl_fpo_disabled(const Triple &TT) {
#ifdef JL_DISABLE_FPO
return true;
#endif
#ifdef _COMPILER_MSAN_ENABLED_
// MSAN doesn't support FPO
return true;
#endif
if (TT.isOSLinux() || TT.isOSWindows() || TT.isOSFreeBSD() || TT.isOSOpenBSD()) {
return true;
}
return false;
}

static bool jl_floattemp_var_needed(const Triple &TT) {
#ifdef JL_NEED_FLOATTEMP_VAR
return true;
Expand Down Expand Up @@ -2970,8 +2956,7 @@ void jl_init_function(Function *F, const Triple &TT) JL_NOTSAFEPOINT
if (TT.isOSWindows() && TT.getArch() == Triple::x86_64) {
attr.addUWTableAttr(llvm::UWTableKind::Default); // force NeedsWinEH
}
if (jl_fpo_disabled(TT))
attr.addAttribute("frame-pointer", "all");
attr.addAttribute("frame-pointer", "all");
if (!TT.isOSWindows()) {
#if !defined(_COMPILER_ASAN_ENABLED_)
// ASAN won't like us accessing undefined memory causing spurious issues,
Expand Down

0 comments on commit d5b9db2

Please sign in to comment.