http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50127
Rainer Orth <ro at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |rth at gcc dot gnu.org Resolution| |DUPLICATE --- Comment #3 from Rainer Orth <ro at gcc dot gnu.org> 2011-08-29 16:15:02 UTC --- A reghunt has confirmed that the failure of 64-bit FAIL: gcc.dg/tree-prof/bb-reorg.c execution, -fprofile-use -D_PROFILE_USE was also caused by 2011-07-23 Richard Henderson <r...@redhat.com> * basic-block.h (EDGE_PRESERVE): New. (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it. * bb-reorder.c: Include except.h. [...] bb-reorg SEGVs here: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 1)] main () at /vol/gcc/src/hg/trunk/solaris/gcc/testsuite/gcc.dg/tree-prof/bb-reorg.c:23 23 t2[t0] = s; (gdb) where #0 main () at /vol/gcc/src/hg/trunk/solaris/gcc/testsuite/gcc.dg/tree-prof/bb-reorg.c:23 #1 0x0000000000400c4c in _start () which is caused by the following difference in assembler output: --- 21827/gcc/bb-reorg.s 2011-08-20 10:48:12.562998495 +0200 +++ 21828/gcc/bb-reorg.s 2011-08-20 10:48:23.486467546 +0200 @@ -83,13 +83,13 @@ .L16: movb $0, (%rax) movl $buf+4, %eax - movq $buf+3, t2+32(%rip) + movq $buf+3, (%rdx) cmpb $0, (%rax) movl $5, %esi je .L19 movb $0, (%rax) movl $buf+5, %eax - movq $buf+4, t2+40(%rip) + movq $buf+4, (%rcx) cmpb $0, (%rax) movl $6, %esi movl $7, %ecx Both %rcx/%rdx are uninitialized. *** This bug has been marked as a duplicate of bug 49972 ***