mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
Don't eliminate frame pointer by default at -O0 (#2483)
Fixes issue #2480.
This commit is contained in:
parent
a4043a4bcc
commit
ca6472c3b0
7 changed files with 33 additions and 21 deletions
|
@ -459,9 +459,8 @@ void applyTargetMachineAttributes(llvm::Function &func,
|
|||
func.addFnAttr("no-infs-fp-math", TO.NoInfsFPMath ? "true" : "false");
|
||||
func.addFnAttr("no-nans-fp-math", TO.NoNaNsFPMath ? "true" : "false");
|
||||
|
||||
// Frame pointer elimination
|
||||
func.addFnAttr("no-frame-pointer-elim",
|
||||
opts::disableFPElim() ? "true" : "false");
|
||||
willEliminateFramePointer() ? "false" : "true");
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue