http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46499
Summary: gcc.c-torture/execute/20051021-1.c FAILs with
-fno-tree-dominator-opts -fno-tree-ccp
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Command line:
$ gcc -O -fno-omit-frame-pointer -fno-tree-ccp -fno-tree-dominator-opts
-finline-small-functions 20051021-1.i
$ ./a.out
Segmentation fault
In the assembly output, there seems to be missing end of main():
0000000000400508 <main>:
400508: 55 push %rbp
400509: 48 89 e5 mov %rsp,%rbp
40050c: 83 05 15 0b 20 00 02 addl $0x2,0x200b15(%rip) #
601028 <count>
400513: 90 nop
.... nop nop nop ...
Tested revisions:
r166763 - fail
4.5 r166509 - fail
4.4 r166509 - OK