public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
@ 2010-06-16 21:02 zsojka at seznam dot cz
2010-06-16 21:04 ` [Bug tree-optimization/44562] " zsojka at seznam dot cz
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: zsojka at seznam dot cz @ 2010-06-16 21:02 UTC (permalink / raw)
To: gcc-bugs
The ICE looks similiar to PR43221, but it may be different issue - this one
needs only one file to crash.
Command line:
$ gcc -O1 -flto -fstrict-aliasing -fgraphite-identity testcase.c
Compiler output:
$ gcc -O1 -flto -fstrict-aliasing -fgraphite-identity testcase.c -m32
testcase.c: In function 'foo':
testcase.c:2:6: internal compiler error: in get_alias_set, at alias.c:716
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE: in get_alias_set, at alias.c:716 with -flto -
fstrict-aliasing -fgraphite-identity
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
@ 2010-06-16 21:04 ` zsojka at seznam dot cz
2010-06-16 22:18 ` rguenth at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: zsojka at seznam dot cz @ 2010-06-16 21:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zsojka at seznam dot cz 2010-06-16 21:04 -------
Created an attachment (id=20930)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20930&action=view)
reduced testcase
To make it crash at x86_64-linux, the typedef has to be changed to:
typedef long long ll;
Command line (i686):
$ gcc -O1 -flto -fstrict-aliasing -fgraphite-identity pr44562.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
2010-06-16 21:04 ` [Bug tree-optimization/44562] " zsojka at seznam dot cz
@ 2010-06-16 22:18 ` rguenth at gcc dot gnu dot org
2010-06-17 13:51 ` [Bug tree-optimization/44562] [4.6 Regression] " zsojka at seznam dot cz
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-16 22:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-16 22:18 -------
Hm. Confirmed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |lto
Last reconfirmed|0000-00-00 00:00:00 |2010-06-16 22:18:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
2010-06-16 21:04 ` [Bug tree-optimization/44562] " zsojka at seznam dot cz
2010-06-16 22:18 ` rguenth at gcc dot gnu dot org
@ 2010-06-17 13:51 ` zsojka at seznam dot cz
2010-06-24 21:35 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: zsojka at seznam dot cz @ 2010-06-17 13:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from zsojka at seznam dot cz 2010-06-17 13:51 -------
It started crashing between r160527 and r160687
--
zsojka at seznam dot cz changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE: in get_alias_set, at |[4.6 Regression] ICE: in
|alias.c:716 with -flto - |get_alias_set, at
|fstrict-aliasing -fgraphite-|alias.c:716 with -flto -
|identity |fstrict-aliasing -fgraphite-
| |identity
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-06-17 13:51 ` [Bug tree-optimization/44562] [4.6 Regression] " zsojka at seznam dot cz
@ 2010-06-24 21:35 ` rguenth at gcc dot gnu dot org
2010-06-30 15:54 ` jamborm at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-24 21:35 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-06-24 21:35 ` rguenth at gcc dot gnu dot org
@ 2010-06-30 15:54 ` jamborm at gcc dot gnu dot org
2010-07-02 12:28 ` jamborm at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-06-30 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jamborm at gcc dot gnu dot org 2010-06-30 15:54 -------
Created an attachment (id=21044)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21044&action=view)
Another testcase.
I believe I ran into this bug when trying WHOPR bootstrap at -O3 (on
x86_64-linux). I narrowed it down to this piece of preprocessed
source. To reproduce, compile with:
gcc -O3 -g -fuse-linker-plugin -fwhopr -c step2.i
The bug does not occur at -O2.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (4 preceding siblings ...)
2010-06-30 15:54 ` jamborm at gcc dot gnu dot org
@ 2010-07-02 12:28 ` jamborm at gcc dot gnu dot org
2010-07-23 12:03 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-07-02 12:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jamborm at gcc dot gnu dot org 2010-07-02 12:28 -------
On revision 161693, the backtrace to the spot where a CANONICAL_TYPE
is assigned to a type which already is a CANONICAL_TYPE of another one
is:
#0 0x00000000009529e4 in build_array_type (elt_type=0x7ffff7e947e0,
index_type=0x7ffff7f47a80)
at /home/jamborm/gcc/small/gcc/tree.c:7168
#1 0x0000000000967d7e in make_vector_type (innertype=0x7ffff7e947e0, nunits=2,
mode=VOIDmode)
at /home/jamborm/gcc/small/gcc/tree.c:8751
#2 0x0000000000967d34 in make_vector_type (innertype=0x7ffff6eb1348, nunits=2,
mode=VOIDmode)
at /home/jamborm/gcc/small/gcc/tree.c:8743
#3 0x0000000000912035 in get_vectype_for_scalar_type
(scalar_type=0x7ffff6eb1348)
at /home/jamborm/gcc/small/gcc/tree-vect-stmts.c:4523
#4 0x0000000000c23de3 in vect_analyze_data_refs (loop_vinfo=<value optimized
out>,
bb_vinfo=0x12a23a0, min_vf=0x7fffffffde4c)
at /home/jamborm/gcc/small/gcc/tree-vect-data-refs.c:2215
#5 0x0000000000936296 in vect_slp_analyze_bb (bb=0x7ffff6eaf3a8)
at /home/jamborm/gcc/small/gcc/tree-vect-slp.c:1483
#6 0x0000000000936aeb in execute_vect_slp ()
at /home/jamborm/gcc/small/gcc/tree-vectorizer.c:276
#7 0x000000000074156c in execute_one_pass (pass=0x11bdc60)
at /home/jamborm/gcc/small/gcc/passes.c:1565
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (5 preceding siblings ...)
2010-07-02 12:28 ` jamborm at gcc dot gnu dot org
@ 2010-07-23 12:03 ` rguenth at gcc dot gnu dot org
2010-08-23 20:12 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-23 12:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2010-07-23 12:02 -------
Mine.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-06-16 22:18:04 |2010-07-23 12:02:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (6 preceding siblings ...)
2010-07-23 12:03 ` rguenth at gcc dot gnu dot org
@ 2010-08-23 20:12 ` rguenth at gcc dot gnu dot org
2010-08-24 2:02 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-23 20:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2010-08-23 20:12 -------
*** Bug 45368 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |howarth at nitro dot med dot
| |uc dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (7 preceding siblings ...)
2010-08-23 20:12 ` rguenth at gcc dot gnu dot org
@ 2010-08-24 2:02 ` pinskia at gcc dot gnu dot org
2010-08-25 0:37 ` t66667 at gmail dot com
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-24 2:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2010-08-24 02:02 -------
*** Bug 45392 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |t66667 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (8 preceding siblings ...)
2010-08-24 2:02 ` pinskia at gcc dot gnu dot org
@ 2010-08-25 0:37 ` t66667 at gmail dot com
2010-08-25 12:36 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: t66667 at gmail dot com @ 2010-08-25 0:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from t66667 at gmail dot com 2010-08-25 00:37 -------
*** Bug 45392 has been marked as a duplicate of this bug. ***
--
t66667 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |t66667 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (9 preceding siblings ...)
2010-08-25 0:37 ` t66667 at gmail dot com
@ 2010-08-25 12:36 ` rguenth at gcc dot gnu dot org
2010-08-25 14:05 ` rguenth at gcc dot gnu dot org
2010-08-25 14:06 ` rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-25 12:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from rguenth at gcc dot gnu dot org 2010-08-25 12:36 -------
So the issue is that when we prime the streamer cache for lto-out we register
the common type nodes (lto_record_common_node) which changes TYPE_CANONICAL
in a way we don't like (it globs int and long int, or long int and long long
int
dependent on whether you are on 32bit or 64bit platforms). This is done
to for example allow mixing of -f[un]signed-char units at link time.
I have a patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (10 preceding siblings ...)
2010-08-25 12:36 ` rguenth at gcc dot gnu dot org
@ 2010-08-25 14:05 ` rguenth at gcc dot gnu dot org
2010-08-25 14:06 ` rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-25 14:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from rguenth at gcc dot gnu dot org 2010-08-25 14:05 -------
Subject: Bug 44562
Author: rguenth
Date: Wed Aug 25 14:05:28 2010
New Revision: 163545
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163545
Log:
2010-08-25 Richard Guenther <rguenther@suse.de>
PR lto/44562
* lto-streamer.c (lto_record_common_node): Do not mess with
TYPE_CANONICAL when not in lto.
* gimple.c (gimple_register_type): Likewise.
* gcc.dg/graphite/id-27.c: New testcase.
* gcc.dg/lto/20100825-1_0.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/graphite/id-27.c
trunk/gcc/testsuite/gcc.dg/lto/20100825-1_0.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple.c
trunk/gcc/lto-streamer.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/44562] [4.6 Regression] ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
` (11 preceding siblings ...)
2010-08-25 14:05 ` rguenth at gcc dot gnu dot org
@ 2010-08-25 14:06 ` rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-25 14:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from rguenth at gcc dot gnu dot org 2010-08-25 14:06 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44562
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-08-25 14:06 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-16 21:02 [Bug tree-optimization/44562] New: ICE: in get_alias_set, at alias.c:716 with -flto -fstrict-aliasing -fgraphite-identity zsojka at seznam dot cz
2010-06-16 21:04 ` [Bug tree-optimization/44562] " zsojka at seznam dot cz
2010-06-16 22:18 ` rguenth at gcc dot gnu dot org
2010-06-17 13:51 ` [Bug tree-optimization/44562] [4.6 Regression] " zsojka at seznam dot cz
2010-06-24 21:35 ` rguenth at gcc dot gnu dot org
2010-06-30 15:54 ` jamborm at gcc dot gnu dot org
2010-07-02 12:28 ` jamborm at gcc dot gnu dot org
2010-07-23 12:03 ` rguenth at gcc dot gnu dot org
2010-08-23 20:12 ` rguenth at gcc dot gnu dot org
2010-08-24 2:02 ` pinskia at gcc dot gnu dot org
2010-08-25 0:37 ` t66667 at gmail dot com
2010-08-25 12:36 ` rguenth at gcc dot gnu dot org
2010-08-25 14:05 ` rguenth at gcc dot gnu dot org
2010-08-25 14:06 ` rguenth at gcc dot gnu dot 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).