From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115322 invoked by alias); 19 Oct 2015 03:24:20 -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 115242 invoked by uid 48); 19 Oct 2015 03:24:16 -0000 From: "su at cs dot ucdavis.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/68013] New: ICE on valid code at -O2 on x86_64-linux-gnu in duplicate_thread_path, at tree-ssa-threadupdate.c:2469 Date: Mon, 19 Oct 2015 03:24: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: su at cs dot ucdavis.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg01453.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68013 Bug ID: 68013 Summary: ICE on valid code at -O2 on x86_64-linux-gnu in duplicate_thread_path, at tree-ssa-threadupdate.c:2469 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu Target Milestone: --- The following code causes an ICE when compiled with the current gcc trunk at -O2 on x86_64-linux-gnu in both 32-bit and 64-bit modes. It is a regression from 5.2.x. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/= 6.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --prefix=3D/usr/local/gcc-trunk --enable-languages=3Dc,c++ --disable-werror --enable-multilib Thread model: posix gcc version 6.0.0 20151018 (experimental) [trunk revision 228953] (GCC)=20 $=20 $ gcc-trunk -Os -c small.c $ gcc-5.2 -O2 -c small.c $=20 $ gcc-trunk -O2 -c small.c small.c: In function =E2=80=98fn1=E2=80=99: small.c:4:1: internal compiler error: in duplicate_thread_path, at tree-ssa-threadupdate.c:2469 fn1 () ^ 0xcd3440 duplicate_thread_path ../../gcc-trunk/gcc/tree-ssa-threadupdate.c:2468 0xcd3440 thread_through_all_blocks(bool) ../../gcc-trunk/gcc/tree-ssa-threadupdate.c:2669 0xc0a203 execute ../../gcc-trunk/gcc/tree-ssa-dom.c:622 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $=20 ------------------------------------ int a, b, c, d, e, f; void fn1 () { for (; e;) { e =3D f; for (; b;) { b =3D a; f =3D a || d ? 0 : c; } d =3D 0; } } >>From gcc-bugs-return-499899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 19 04:37:30 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12280 invoked by alias); 19 Oct 2015 04:37:30 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12185 invoked by uid 48); 19 Oct 2015 04:37:25 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/31711] was "rhs array is changed while assiging to same lhs array" Date: Mon, 19 Oct 2015 04:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.3.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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: Message-ID: In-Reply-To: References: 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-10/txt/msg01454.txt.bz2 Content-length: 728 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31711 --- Comment #19 from Paul Thomas --- (In reply to Dominique d'Humieres from comment #18) > > comment #10 from Roger-Sayle is being kept "live" by this PR. Whilst > > I am interested, I have to give priority to other PRs to make best use > > of my limited time. I may yet come back to it.... > > > > Paul > > No activity for over eight years. The original problem has been fixed a long > time ago and I am sure that too many changes have been made in the > dependency analysis to keep this PR opened base on comment 10. Closing as > FIXED. Fine by me. I might just add a TODO above the offending line of code, pointing to this PR. Cheers Paul