[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 Jakub Jelinek changed: What|Removed |Added CC||vmakarov at gcc dot gnu.org --- Comment #

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #21 from Jakub Jelinek --- (In reply to Markus Trippelsdorf from comment #20) > (In reply to Jakub Jelinek from comment #19) > > (In reply to Markus Trippelsdorf from comment #17) > > > If I add "pushq %r10" and "popq%r10" by han

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #20 from Markus Trippelsdorf --- (In reply to Jakub Jelinek from comment #19) > (In reply to Markus Trippelsdorf from comment #17) > > If I add "pushq %r10" and "popq%r10" by hand, the kernel boots fine. > > Thanks. Now, can yo

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #19 from Jakub Jelinek --- (In reply to Markus Trippelsdorf from comment #17) > If I add "pushq %r10" and "popq%r10" by hand, the kernel boots fine. Thanks. Now, can you please try to use pushq %r9 and popq %r9 instead? I.e. wh

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #18 from H.J. Lu --- (In reply to Markus Trippelsdorf from comment #17) > If I add "pushq %r10" and "popq%r10" by hand, the kernel boots fine. Is r10 used in th function? Please also try adjust stack instead of push/pop.

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #17 from Markus Trippelsdorf --- If I add "pushq %r10" and "popq%r10" by hand, the kernel boots fine.

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 Markus Trippelsdorf changed: What|Removed |Added Component|target |tree-optimization --- Comment #16 f

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #15 from Markus Trippelsdorf --- (In reply to Jakub Jelinek from comment #14) > (In reply to Markus Trippelsdorf from comment #13) > > > It is undestandable the patch changes how most/all stdarg functions are > > > compiled in the kern

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #14 from Jakub Jelinek --- (In reply to Markus Trippelsdorf from comment #13) > > It is undestandable the patch changes how most/all stdarg functions are > > compiled in the kernel, the question is why the kernel cares in certain > > c

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #13 from Markus Trippelsdorf --- (In reply to Jakub Jelinek from comment #12) > (In reply to Markus Trippelsdorf from comment #11) > > (In reply to Jakub Jelinek from comment #10) > > > If you have time, could you please try to bisect

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #12 from Jakub Jelinek --- (In reply to Markus Trippelsdorf from comment #11) > (In reply to Jakub Jelinek from comment #10) > > If you have time, could you please try to bisect manually which of the 4 > > functions matters for the boo

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #11 from Markus Trippelsdorf --- (In reply to Jakub Jelinek from comment #10) > If you have time, could you please try to bisect manually which of the 4 > functions matters for the bootstrap failure? > Compile printk.s with both compil

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #10 from Jakub Jelinek --- If you have time, could you please try to bisect manually which of the 4 functions matters for the bootstrap failure? Compile printk.s with both compilers and apply by hand only portions of the diff that are

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-06 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 Markus Trippelsdorf changed: What|Removed |Added Target Milestone|--- |4.9.0

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2014-01-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #9 from Jakub Jelinek --- The reason why some changes appear in stdarg functions is: ix86_update_stack_boundary: /* x86_64 vararg needs 16byte stack alignment for register save area. */ if (TARGET_64BIT && cfun->stdarg

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2013-12-31 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #8 from Markus Trippelsdorf --- >From the printk.i: 38333 int printk_emit(int facility, int level, 38334 const char *dict, size_t dictlen, 38335 const char *fmt, ...) 38336 { 38337 va_list args; 38338 int r; 38339 38340

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2013-12-31 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 Jakub Jelinek changed: What|Removed |Added CC||hjl.tools at gmail dot com,

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2013-12-31 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #6 from Markus Trippelsdorf --- 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

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2013-12-31 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #5 from Markus Trippelsdorf --- Created attachment 31549 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31549&action=edit printk_bad assembly

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2013-12-31 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #4 from Markus Trippelsdorf --- Created attachment 31548 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31548&action=edit printk_good assembly

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2013-12-31 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #3 from Markus Trippelsdorf --- Created attachment 31547 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31547&action=edit testcase

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2013-12-31 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #2 from Markus Trippelsdorf --- kernel/printk/printk.o gets miscompiled. % gcc -Wp,-MD,kernel/printk/.printk.o.d -nostdinc -isystem /var/tmp/gcc_test_/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0/include -I/var/tmp/linux/

[Bug tree-optimization/59644] [4.9 Regression] r206243 miscompiles Linux kernel

2013-12-30 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59644 --- Comment #1 from Jakub Jelinek --- Weird, I thought the kernel is compiled even with -mno-sse, so there shouldn't be AVX used and thus no need for realignment anywhere. What arch is that? i?86 or x86_64? Can you bisect which *.o file matters