[llvm-bugs] [Bug 26304] New: [X86] Omit frame pointer even with -fno-emit-frame-pointer if there are no locals
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 25 16:08:47 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26304
Bug ID: 26304
Summary: [X86] Omit frame pointer even with
-fno-emit-frame-pointer if there are no locals
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: hans at chromium.org
CC: llvm-bugs at lists.llvm.org
Blocks: 26299
Classification: Unclassified
For this example:
int g(int);
int f() {
return g(42);
}
even with /Oy- MSVC will not set ebp:
_f:
00000000: 6A 2A push 2Ah
00000002: E8 00 00 00 00 call _g
00000007: 59 pop ecx
00000008: C3 ret
whereas Clang does.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160126/5c0a56d7/attachment-0001.html>
More information about the llvm-bugs
mailing list