public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "andrew.n.senkevich at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/67215] -fno-plt needs improvements for x86 Date: Fri, 14 Aug 2015 13:00:00 -0000 [thread overview] Message-ID: <bug-67215-4-jg8Pf6XQE9@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-67215-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 --- Comment #2 from Andrew Senkevich <andrew.n.senkevich at gmail dot com> --- -bash-4.2$ cat test.c extern int proc2(int); int proc( void) { int i = proc2( 3); return i; } gcc test.c -S -pie -fpie -o test.1.S gcc test.c -S -pie -fpie -fno-plt -o test.2.S -bash-4.2$ cat test.1.S .file "test.c" .text .globl proc .type proc, @function proc: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $16, %rsp movl $3, %edi call proc2@PLT movl %eax, -4(%rbp) movl -4(%rbp), %eax leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size proc, .-proc .ident "GCC: (GNU) 6.0.0 20150812 (experimental)" .section .note.GNU-stack,"",@progbits -bash-4.2$ cat test.2.S .file "test.c" .text .globl proc .type proc, @function proc: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $16, %rsp movq proc2@GOTPCREL(%rip), %rax movl $3, %edi call *%rax movl %eax, -4(%rbp) movl -4(%rbp), %eax leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size proc, .-proc .ident "GCC: (GNU) 6.0.0 20150812 (experimental)" .section .note.GNU-stack,"",@progbits
next prev parent reply other threads:[~2015-08-14 13:00 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-08-14 12:37 [Bug target/67215] New: " andrew.n.senkevich at gmail dot com 2015-08-14 12:45 ` [Bug target/67215] " hjl.tools at gmail dot com 2015-08-14 13:00 ` andrew.n.senkevich at gmail dot com [this message] 2015-08-14 13:07 ` hjl.tools at gmail dot com 2015-08-14 15:25 ` andrew.n.senkevich at gmail dot com 2015-08-14 15:34 ` hjl.tools at gmail dot com 2015-08-16 1:08 ` hjl.tools at gmail dot com 2015-09-06 10:59 ` LpSolit at netscape dot net 2015-10-27 14:30 ` hjl.tools at gmail dot com 2015-10-27 14:30 ` hjl 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-67215-4-jg8Pf6XQE9@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).