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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs