From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4852 invoked by alias); 28 Mar 2013 12:15:38 -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 4756 invoked by uid 48); 28 Mar 2013 12:15:31 -0000 From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56762] too aggressive optimization or missing warnings Date: Thu, 28 Mar 2013 12:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.kruegler at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-03/txt/msg02092.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56762 Daniel Kr=C3=BCgler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #1 from Daniel Kr=C3=BCgler 2013-03-28 12:15:30 UTC --- This line does not what you expect it would do (Search for "most vexing parse"): CLockGuard sGuard(CIntLock()); It does *not* construct an CIntLock object nor does it declare an sGuard object, instead it does declare a function and has no further effects. >>From gcc-bugs-return-418652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 28 12:34:32 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12866 invoked by alias); 28 Mar 2013 12:34:31 -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 12797 invoked by uid 48); 28 Mar 2013 12:34:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56756] [4.9 Regression] ICE: verify_ssa failed (definition in block n follows the use !) Date: Thu, 28 Mar 2013 12:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-03/txt/msg02093.txt.bz2 Content-length: 873 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56756 --- Comment #8 from Richard Biener 2013-03-28 12:34:24 UTC --- Ok, so one reason is that we simply "ignore" dependencies when computing what stmts to move (which happens in the same processing order): static bool add_dependency (tree def, struct lim_aux_data *data, struct loop *loop, bool add_cost) { ... max_loop = outermost_invariant_loop (def, loop); if (!max_loop) return false; ... def_data = get_lim_data (def_stmt); if (!def_data) return true; so, when we don't know anything about the stmt we depend on because we didn't visit it yet outermost_invariant_loop returns garbage in this case. But I got side-tracked by the above (which still should be fixed IMHO), as also store-motion does not properly initialize dependence.