public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel
Date: Tue, 31 Dec 2013 08:26:00 -0000	[thread overview]
Message-ID: <bug-59644-4-rvcJIQpy1O@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59644-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
linux % diff -u kernel/printk/printk.o /var/tmp/linux/kernel/printk/printk.o
--- kernel/printk/printk.o      2013-12-31 09:23:45.569490147 +0100
+++ /var/tmp/linux/kernel/printk/printk.o       2013-12-31 09:23:22.066697479
+0100
@@ -2517,19 +2517,16 @@
 printk_emit:
        pushq   %rbp
        movq    %rsp, %rbp
-       pushq   %r10
-       leaq    -56(%rbp), %rax
-       leaq    16(%rbp), %r10
        subq    $72, %rsp
+       leaq    16(%rbp), %r10
        movq    %r9, -16(%rbp)
+       leaq    -56(%rbp), %rax
        leaq    -80(%rbp), %r9
-       movq    %r10, -72(%rbp)
        movl    $40, -80(%rbp)
+       movq    %r10, -72(%rbp)
        movq    %rax, -64(%rbp)
        call    vprintk_emit
-       addq    $72, %rsp
-       popq    %r10
-       popq    %rbp
+       leave
        ret
        .size   printk_emit, .-printk_emit
 .LCOLDE44:
@@ -2680,28 +2677,25 @@
 printk:
        pushq   %rbp
        movq    %rsp, %rbp
-       pushq   %r10
-       leaq    -56(%rbp), %rax
-       leaq    16(%rbp), %r10
        subq    $72, %rsp
+       leaq    16(%rbp), %r10
        movq    %rsi, -48(%rbp)
        movq    %rdx, -40(%rbp)
        movq    %rcx, -32(%rbp)
        movq    %r8, -24(%rbp)
-       xorl    %ecx, %ecx
+       leaq    -56(%rbp), %rax
        movq    %r9, -16(%rbp)
        movq    %rdi, %r8
        leaq    -80(%rbp), %r9
+       xorl    %ecx, %ecx
        xorl    %edx, %edx
        orl     $-1, %esi
        xorl    %edi, %edi
-       movq    %r10, -72(%rbp)
        movl    $8, -80(%rbp)
+       movq    %r10, -72(%rbp)
        movq    %rax, -64(%rbp)
        call    vprintk_emit
-       addq    $72, %rsp
-       popq    %r10
-       popq    %rbp
+       leave
        ret
        .size   printk, .-printk
 .LCOLDE47:
@@ -4052,7 +4046,6 @@
 printk_sched:
        pushq   %rbp
        movq    %rsp, %rbp
-       pushq   %r10
        pushq   %rbx
        leaq    16(%rbp), %r10
        subq    $80, %rsp
@@ -4105,7 +4098,6 @@
 #NO_APP
        addq    $80, %rsp
        popq    %rbx
-       popq    %r10
        popq    %rbp
        ret
        .size   printk_sched, .-printk_sched
@@ -4691,26 +4683,23 @@
 dump_stack_set_arch_desc:
        pushq   %rbp
        movq    %rsp, %rbp
-       pushq   %r10
-       leaq    -56(%rbp), %rax
-       leaq    16(%rbp), %r10
        subq    $72, %rsp
+       leaq    16(%rbp), %r10
        movq    %rsi, -48(%rbp)
        movq    %rdx, -40(%rbp)
        movq    %rcx, -32(%rbp)
+       leaq    -56(%rbp), %rax
        movq    %rdi, %rdx
        leaq    -80(%rbp), %rcx
        movl    $128, %esi
        movq    $dump_stack_arch_desc_str, %rdi
-       movq    %r10, -72(%rbp)
        movq    %r8, -24(%rbp)
        movq    %r9, -16(%rbp)
        movl    $8, -80(%rbp)
+       movq    %r10, -72(%rbp)
        movq    %rax, -64(%rbp)
        call    vsnprintf
-       addq    $72, %rsp
-       popq    %r10
-       popq    %rbp
+       leave
        ret
        .size   dump_stack_set_arch_desc, .-dump_stack_set_arch_desc
 .LCOLDE92:


  parent reply	other threads:[~2013-12-31  8:26 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-30 23:03 [Bug tree-optimization/59644] New: " trippels at gcc dot gnu.org
2013-12-30 23:43 ` [Bug tree-optimization/59644] " jakub at gcc dot gnu.org
2013-12-31  8:17 ` trippels at gcc dot gnu.org
2013-12-31  8:18 ` trippels at gcc dot gnu.org
2013-12-31  8:19 ` trippels at gcc dot gnu.org
2013-12-31  8:20 ` trippels at gcc dot gnu.org
2013-12-31  8:26 ` trippels at gcc dot gnu.org [this message]
2013-12-31 11:47 ` jakub at gcc dot gnu.org
2013-12-31 13:03 ` trippels at gcc dot gnu.org
2014-01-06  8:21 ` trippels at gcc dot gnu.org
2014-01-06  8:48 ` trippels at gcc dot gnu.org
2014-01-06  9:08 ` jakub at gcc dot gnu.org
2014-01-06  9:17 ` trippels at gcc dot gnu.org
2014-01-06  9:26 ` jakub at gcc dot gnu.org
2014-01-06  9:36 ` trippels at gcc dot gnu.org
2014-01-06 10:00 ` trippels at gcc dot gnu.org
2014-01-06 10:04 ` trippels at gcc dot gnu.org
2014-01-06 10:09 ` hjl.tools at gmail dot com
2014-01-06 10:12 ` jakub at gcc dot gnu.org
2014-01-06 10:21 ` trippels at gcc dot gnu.org
2014-01-06 11:28 ` jakub at gcc dot gnu.org
2014-01-06 11:55 ` jakub at gcc dot gnu.org
2014-01-06 13:39 ` [Bug target/59644] " jakub at gcc dot gnu.org
2014-01-06 21:38 ` jakub at gcc dot gnu.org
2014-01-06 21:39 ` jakub 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-59644-4-rvcJIQpy1O@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: link
Be 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).