From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20589 invoked by alias); 23 Feb 2015 15:02:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20323 invoked by uid 48); 23 Feb 2015 15:02:19 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/65177] New: [5 Regression]: extend jump thread for finite state automata causes miscompilation Date: Mon, 23 Feb 2015 15:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg02513.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65177 Bug ID: 65177 Summary: [5 Regression]: extend jump thread for finite state automata causes miscompilation Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: spop at gcc dot gnu.org Hello. Starting with r218451, http://hmmer.janelia.org/ started to be miscompiled. Steps to reproduce: wget http://selab.janelia.org/software/hmmer3/3.1b1/hmmer-3.1b1-linux-intel-x86_64.tar.gz tar xvzf hmmer-3.1b1-cygwin.tar.gz cd hmmer-3.1b1-cygwin CFLAGS="-g -O1 -ftree-vrp -fexpensive-optimizations" ./configure make make check and following test fails: gdb src/impl_sse/optacc_utest Program received signal SIGSEGV, Segmentation fault. 0x0000000000406a2c in select_i (k=, i=0, gx=0x45ed60, gm=0x470420) at generic_optacc.c:293 293 path[0] = TSCDELTA(p7P_MI, k) * MMX(i-1,k); (gdb) bt #0 0x0000000000406a2c in select_i (k=, i=0, gx=0x45ed60, gm=0x470420) at generic_optacc.c:293 #1 p7_GOATrace (gm=0x470420, pp=pp@entry=0x466150, gx=gx@entry=0x45ed60, tr=tr@entry=0x46e4e0) at generic_optacc.c:220 #2 0x000000000040322f in utest_optacc (go=go@entry=0x44e010, r=r@entry=0x44e170, abc=abc@entry=0x44eb50, bg=bg@entry=0x44ed90, M=M@entry=45, L=L@entry=50, N=19) at ./optacc.c:659 #3 0x0000000000403613 in main (argc=, argv=) at ./optacc.c:801 I really tried to reduce test case, but unfortunately it's very hard to do it for the project. Please tell me if you are capable of reproducing the issue? Thanks, Martin