-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl''clang' and 'clang++' user-facing binaries. Not 'clang-cl'duplicateResolved as duplicateResolved as duplicate
Description
| Bugzilla Link | 11566 |
| Resolution | DUPLICATE |
| Resolved on | Dec 14, 2011 13:34 |
| Version | unspecified |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @efriedma-quic |
Extended Description
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>
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl''clang' and 'clang++' user-facing binaries. Not 'clang-cl'duplicateResolved as duplicateResolved as duplicate