public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/53772] New: Failed to combine load and jump on vtable Date: Mon, 25 Jun 2012 21:59:00 -0000 [thread overview] Message-ID: <bug-53772-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53772 Bug #: 53772 Summary: Failed to combine load and jump on vtable Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: hjl.tools@gmail.com CC: areg.melikadamyan@gmail.com, ubizjak@gmail.com Target: x86-64 [hjl@gnu-6 tmp]$ cat v.cc struct Foo { virtual void f(); }; void f(Foo *f) { f->f(); } [hjl@gnu-6 tmp]$ /opt/llvm/bin/clang -S -m64 -O2 -o clang64.s v.cc [hjl@gnu-6 tmp]$ cat clang64.s .file "v.cc" .text .globl _Z1fP3Foo .align 16, 0x90 .type _Z1fP3Foo,@function _Z1fP3Foo: # @_Z1fP3Foo .cfi_startproc # BB#0: # %entry movq (%rdi), %rax jmpq *(%rax) # TAILCALL .Ltmp0: .size _Z1fP3Foo, .Ltmp0-_Z1fP3Foo .cfi_endproc .section ".note.GNU-stack","",@progbits [hjl@gnu-6 tmp]$ /usr/gcc-4.7.2-x32/bin/gcc -S -O2 -m64 v.cc -o gcc64.s [hjl@gnu-6 tmp]$ cat gcc64.s .file "v.cc" .text .p2align 4,,15 .globl _Z1fP3Foo .type _Z1fP3Foo, @function _Z1fP3Foo: .LFB0: .cfi_startproc movq (%rdi), %rax movq (%rax), %rax jmp *%rax .cfi_endproc .LFE0: .size _Z1fP3Foo, .-_Z1fP3Foo .ident "GCC: (GNU) 4.7.2 20120622 (prerelease)" .section .note.GNU-stack,"",@progbits [hjl@gnu-6 tmp]$
next reply other threads:[~2012-06-25 21:59 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-06-25 21:59 hjl.tools at gmail dot com [this message] 2012-06-26 8:52 ` [Bug target/53772] " jakub at gcc dot gnu.org 2021-08-19 5:20 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-53772-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).