public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535
@ 2015-04-22 21:10 dcb314 at hotmail dot com
2015-04-23 9:11 ` [Bug c++/65851] " marxin at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2015-04-22 21:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851
Bug ID: 65851
Summary: ice in set_lattice_value at tree-ssa-cc p.c:535
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Created attachment 35386
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35386&action=edit
gzipped C++ source code
The attached code, when compiled by gcc trunk dated 20150422,
with flag -O2 on x86_64, does this
bug201.cc: In member function ‘void CamWnd::Cam_Draw()’:
bug201.cc:95609:6: internal compiler error: in set_lattice_value, at
tree-ssa-cc
p.c:535
void CamWnd::Cam_Draw() {
^
0xed5857 set_lattice_value
../../src/trunk/gcc/tree-ssa-ccp.c:535
0xedacdc visit_assignment
../../src/trunk/gcc/tree-ssa-ccp.c:2290
0xedacdc ccp_visit_stmt
../../src/trunk/gcc/tree-ssa-ccp.c:2364
0xf63174 simulate_stmt
../../src/trunk/gcc/tree-ssa-propagate.c:348
This might be related to bug # 63914.
>From gcc-bugs-return-484392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 22 21:29:51 2015
Return-Path: <gcc-bugs-return-484392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68428 invoked by alias); 22 Apr 2015 21:29:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68367 invoked by uid 48); 22 Apr 2015 21:29:46 -0000
From: "ramana at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65837] [arm-linux-gnueabihf] lto1 target specific builtin not available
Date: Wed, 22 Apr 2015 21:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ramana 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:
Message-ID: <bug-65837-4-St0Ycllo2l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65837-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65837-4@http.gcc.gnu.org/bugzilla/>
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-04/txt/msg01944.txt.bz2
Content-length: 1390
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide837
--- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
(In reply to prathamesh3492 from comment #3)
> Hi,
> I tried to reproduce the error with a reduced test-case:
>
> #include "arm_neon.h"
>
> float32x2_t a, b, c, e;
>
> int main()
> {
> e = __builtin_neon_vmls_lanev2sf (a, b, c, 0);
> return 0;
> }
>
> arm-linux-gnueabihf-gcc -mfpu=neon test.c -flto test.c -c
> arm-linux-gnueabihf-gcc test.o -flto -o test
> lto1: fatal error: target specific builtin not available
> compilation terminated.
Ofcourse, that's expected behaviour - you don't have support for the SIMD
intrinsics if you don't ask for it on the command line or your compiler doesn't
default to generating code for the SIMD unit.
> lto-wrapper: fatal error:
> /home/prathamesh.kulkarni/gnu-toolchain/gcc-chromium-arm-linux-gnueabihf/
> builds/destdir/x86_64-unknown-linux-gnu/bin/arm-linux-gnueabihf-gcc returned
> 1 exit status
> compilation terminated.
>
> However passing -mfpu=neon for linking works:
> arm-linux-gnueabihf-gcc -mfpu=neon test.o -flto -o test
>
> I suppose similar thing must be happening during linking
> libshared_memory_support.so for chromium build ?
> I couldn't see -mfpu=neon in the command line used for linking
> libshared_memory_support.so
RESOLVED INVALID then ?
regards
Ramana
>
> Thank you
> Prathamesh
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/65851] ice in set_lattice_value at tree-ssa-cc p.c:535
2015-04-22 21:10 [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535 dcb314 at hotmail dot com
@ 2015-04-23 9:11 ` marxin at gcc dot gnu.org
2015-04-23 9:17 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-04-23 9:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Running creduce and isolating culprit commit.
>From gcc-bugs-return-484427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 23 09:15:10 2015
Return-Path: <gcc-bugs-return-484427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74438 invoked by alias); 23 Apr 2015 09:15:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 74340 invoked by uid 48); 23 Apr 2015 09:15:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/65855] missing optimization: triangular numbers
Date: Thu, 23 Apr 2015 09:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-65855-4-8oR9LA7UT9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65855-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65855-4@http.gcc.gnu.org/bugzilla/>
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-04/txt/msg01979.txt.bz2
Content-length: 1303
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide855
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-04-23
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
For some reason we can't compute the number of iterations of this loop which is
because we have to assume that
(long unsigned int) n_3(D) != 18446744073709551615
and for some reason we couldn't simplify that to true!?
if (!exit_must_be_taken && !POINTER_TYPE_P (type))
{
if (integer_nonzerop (iv0->step))
assumption = fold_build2 (NE_EXPR, boolean_type_node,
iv1->base, TYPE_MAX_VALUE (type));
if we fix that we fail in the following way:
(chrec_apply
(varying_loop = 1
)
(chrec = {1, +, {2, +, 1}_1}_1)
(x = (long unsigned int) n_3(D) + 18446744073709551615)
(res = scev_not_known))
not replacing:
t_4 = PHI <t_5(3)>
because we can't compute the final result expression.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/65851] ice in set_lattice_value at tree-ssa-cc p.c:535
2015-04-22 21:10 [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535 dcb314 at hotmail dot com
2015-04-23 9:11 ` [Bug c++/65851] " marxin at gcc dot gnu.org
@ 2015-04-23 9:17 ` rguenth at gcc dot gnu.org
2015-04-23 9:31 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-23 9:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-04-23
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine. Waiting for a reduced testcase though.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/65851] ice in set_lattice_value at tree-ssa-cc p.c:535
2015-04-22 21:10 [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535 dcb314 at hotmail dot com
2015-04-23 9:11 ` [Bug c++/65851] " marxin at gcc dot gnu.org
2015-04-23 9:17 ` rguenth at gcc dot gnu.org
@ 2015-04-23 9:31 ` rguenth at gcc dot gnu.org
2015-04-23 9:35 ` marxin at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-23 9:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
We are transitioning from known-bits (likely alignment) to an invariant (thus
constant). Most of the cases this happens because of too weak UNDEFINED
handling.
I suppose we should finally punt in making that "correct" and simply drop that
lattice transition... (we already to sth similar for known-bits to
known-bits).
The assert is really there to catch this kind of missed optimizations, in
theory
we can just reject invalid transitions...
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/65851] ice in set_lattice_value at tree-ssa-cc p.c:535
2015-04-22 21:10 [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535 dcb314 at hotmail dot com
` (2 preceding siblings ...)
2015-04-23 9:31 ` rguenth at gcc dot gnu.org
@ 2015-04-23 9:35 ` marxin at gcc dot gnu.org
2015-04-27 15:23 ` trippels at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-04-23 9:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 35389
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35389&action=edit
reduced test case
>From gcc-bugs-return-484436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 23 09:49:41 2015
Return-Path: <gcc-bugs-return-484436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21958 invoked by alias); 23 Apr 2015 09:49:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21828 invoked by uid 48); 23 Apr 2015 09:49:38 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/61534] Wlogical-op should not warn when either operand comes from macro expansion
Date: Thu, 23 Apr 2015 09:49: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-Version: 5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
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: cc
Message-ID: <bug-61534-4-mMffDIrh19@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61534-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61534-4@http.gcc.gnu.org/bugzilla/>
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-04/txt/msg01988.txt.bz2
Content-length: 445
https://gcc.gnu.org/bugzilla/show_bug.cgi?ida534
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
*** Bug 53131 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/65851] ice in set_lattice_value at tree-ssa-cc p.c:535
2015-04-22 21:10 [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535 dcb314 at hotmail dot com
` (3 preceding siblings ...)
2015-04-23 9:35 ` marxin at gcc dot gnu.org
@ 2015-04-27 15:23 ` trippels at gcc dot gnu.org
2015-04-28 7:27 ` rguenth at gcc dot gnu.org
2015-04-28 7:31 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-04-27 15:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 65907 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/65851] ice in set_lattice_value at tree-ssa-cc p.c:535
2015-04-22 21:10 [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535 dcb314 at hotmail dot com
` (4 preceding siblings ...)
2015-04-27 15:23 ` trippels at gcc dot gnu.org
@ 2015-04-28 7:27 ` rguenth at gcc dot gnu.org
2015-04-28 7:31 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-28 7:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Apr 28 07:26:41 2015
New Revision: 222510
URL: https://gcc.gnu.org/viewcvs?rev=222510&root=gcc&view=rev
Log:
2015-04-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/65851
* tree-ssa-ccp.c (set_lattice_value): Perform a meet when
changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
(ccp_lattice_meet): Remove stray argument. Use operand_equal_p
rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
(ccp_visit_phi_node): Adjust.
(evaluate_stmt): For simplifications to SSA names return its
lattice value if that isn't VARYING. Return immediately when
simplified to a constant.
(visit_assignment): Adjust.
(ccp_visit_stmt): Likewise.
* g++.dg/torture/pr65851.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr65851.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-ccp.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/65851] ice in set_lattice_value at tree-ssa-cc p.c:535
2015-04-22 21:10 [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535 dcb314 at hotmail dot com
` (5 preceding siblings ...)
2015-04-28 7:27 ` rguenth at gcc dot gnu.org
@ 2015-04-28 7:31 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-28 7:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-04-28 7:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-22 21:10 [Bug c++/65851] New: ice in set_lattice_value at tree-ssa-cc p.c:535 dcb314 at hotmail dot com
2015-04-23 9:11 ` [Bug c++/65851] " marxin at gcc dot gnu.org
2015-04-23 9:17 ` rguenth at gcc dot gnu.org
2015-04-23 9:31 ` rguenth at gcc dot gnu.org
2015-04-23 9:35 ` marxin at gcc dot gnu.org
2015-04-27 15:23 ` trippels at gcc dot gnu.org
2015-04-28 7:27 ` rguenth at gcc dot gnu.org
2015-04-28 7:31 ` rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).