Skip to content

Commit

Permalink
[mono] Replace -disable-fp-elim with -frame-pointer=all (#58195)
Browse files Browse the repository at this point in the history
`-disable-fp-elim` was removed in LLVM 8 in commit b7cef81fd36c85e52b115b9ed6d1fb92d63781d6.
Also see https://reviews.llvm.org/D56351.

The replacement option, `-frame-pointer`, is still present in LLVM 11.

Fixes #58112.

Co-authored-by: Imran Hameed <imhameed@microsoft.com>
  • Loading branch information
github-actions[bot] and imhameed committed Aug 27, 2021
1 parent 8da82f2 commit 262b509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ arch_init (MonoAotCompile *acfg)

if (strstr (acfg->aot_opts.mtriple, "ios")) {
g_string_append (acfg->llc_args, " -mattr=+v7");
g_string_append (acfg->llc_args, " -exception-model=dwarf -disable-fp-elim");
g_string_append (acfg->llc_args, " -exception-model=dwarf -frame-pointer=all");
}
}

Expand Down

0 comments on commit 262b509

Please sign in to comment.