[LLVMbugs] [Bug 11566] New: clang keeps frame pointers by default on linux x86_64
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Dec 14 07:05:00 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11566
Bug #: 11566
Summary: clang keeps frame pointers by default on linux x86_64
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
given
void g(void);
void f(void) {
g();
g();
}
"gcc -c foo.c -Os -o foo.o" will produce
push %rax
callq 6 <f+0x6>
pop %rdx
jmpq c <f+0xc>
(no idea what gcc is doing with rax/rdx).
"clang -c foo.c -Os -o foo.o" produces
push %rbp
mov %rsp,%rbp
callq 9 <f+0x9>
pop %rbp
jmpq f <f+0xf>
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list