File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ pub mod write {
96
96
use lib:: llvm:: llvm;
97
97
use lib:: llvm:: { ModuleRef , TargetMachineRef , PassManagerRef } ;
98
98
use lib;
99
+ use syntax:: abi;
99
100
use util:: common:: time;
100
101
101
102
use std:: c_str:: ToCStr ;
@@ -129,7 +130,10 @@ pub mod write {
129
130
let use_softfp = sess. opts . debugging_opts & session:: USE_SOFTFP != 0 ;
130
131
131
132
// FIXME: #11906: Omitting frame pointers breaks retrieving the value of a parameter.
132
- let no_fp_elim = sess. opts . debuginfo ;
133
+ // FIXME: #11954: mac64 unwinding may not work with fp elim
134
+ let no_fp_elim = sess. opts . debuginfo ||
135
+ ( sess. targ_cfg . os == abi:: OsMacos &&
136
+ sess. targ_cfg . arch == abi:: X86_64 ) ;
133
137
134
138
let tm = sess. targ_cfg . target_strs . target_triple . with_c_str ( |T | {
135
139
sess. opts . target_cpu . with_c_str ( |CPU | {
You can’t perform that action at this time.
0 commit comments