public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278
@ 2007-04-26 7:46 marcus at jet dot franken dot de
2007-04-26 7:46 ` [Bug c/31710] " marcus at jet dot franken dot de
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: marcus at jet dot franken dot de @ 2007-04-26 7:46 UTC (permalink / raw)
To: gcc-bugs
/home/marcus/projects/gcc/BIN/bin/gcc -O2 -c variant.i
variant.i: In function 'f':
variant.i:7: internal compiler error: in set_value_range, at tree-vrp.c:278
--
Summary: ICE in in set_value_range, at tree-vrp.c:278
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at jet dot franken dot de
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/31710] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
@ 2007-04-26 7:46 ` marcus at jet dot franken dot de
2007-04-26 8:05 ` [Bug middle-end/31710] [4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marcus at jet dot franken dot de @ 2007-04-26 7:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from marcus at jet dot franken dot de 2007-04-26 08:46 -------
Created an attachment (id=13446)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13446&action=view)
variant.i
gcc -c -O2 variant.i
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
2007-04-26 7:46 ` [Bug c/31710] " marcus at jet dot franken dot de
@ 2007-04-26 8:05 ` pinskia at gcc dot gnu dot org
2007-04-27 3:52 ` ian at airs dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-26 8:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-26 09:05 -------
So the range in an semi-old (3 days) compiler, we get is:
D.1602_2: VARYING
D.1602_3: [-32768, -32768] EQUIVALENCES: { D.1602_2 D.1602_8 } (2 elements)
D.1603_4: [-INF(OVF), -32768] EQUIVALENCES: { } (0 elements)
D.1602_8: [-32768, -32768] EQUIVALENCES: { D.1602_2 } (1 elements)
Well obviously the recent patch to tree-vrp.c (which was also applied to the
4.2 branch) caused this failure as we are checking for overflow in some cases.
I always said the patch should never have been applied to the 4.2 branch
without a lot more testing.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ian at gcc dot gnu dot org
Severity|normal |blocker
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|x86_64-unknown-linux-gnu |
Keywords| |ice-checking, ice-on-valid-
| |code
Summary|ICE in in set_value_range, |[4.2/4.3 Regression] ICE in
|at tree-vrp.c:278 |in set_value_range, at tree-
| |vrp.c:278
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
2007-04-26 7:46 ` [Bug c/31710] " marcus at jet dot franken dot de
2007-04-26 8:05 ` [Bug middle-end/31710] [4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-04-27 3:52 ` ian at airs dot com
2007-04-27 20:47 ` ian at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ian at airs dot com @ 2007-04-27 3:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ian at airs dot com 2007-04-27 04:52 -------
Created an attachment (id=13453)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13453&action=view)
Proposed patch
This is an interesting test case. It turns out that VRP has always
consistently assumed that TREE_TYPE (TYPE_MIN_VALUE (t)) == t. The assumption
turns up in == comparisons against TYPE_MIN_VALUE (and TYPE_MAX_VALUE). Those
== comparisons are normally valid because we hash integer constants so that
they are all the same. The hash includes the type. So when TREE_TYPE
(TYPE_MIN_VALUE (t)) != t, the equality will actually never hold, and VRP will
do the wrong thing.
This patch simply ensures that the equality holds. I'm testing it now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
` (2 preceding siblings ...)
2007-04-27 3:52 ` ian at airs dot com
@ 2007-04-27 20:47 ` ian at gcc dot gnu dot org
2007-04-27 20:49 ` ian at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ian at gcc dot gnu dot org @ 2007-04-27 20:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ian at gcc dot gnu dot org 2007-04-27 21:47 -------
Subject: Bug 31710
Author: ian
Date: Fri Apr 27 21:47:24 2007
New Revision: 124237
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124237
Log:
./:
PR middle-end/31710
* tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
TYPE_MAX_VALUE exist, convert them to the new type.
testsuite/:
PR middle-end/31710
* gcc.c-torture/compile/pr31710.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr31710.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
` (3 preceding siblings ...)
2007-04-27 20:47 ` ian at gcc dot gnu dot org
@ 2007-04-27 20:49 ` ian at gcc dot gnu dot org
2007-04-27 20:51 ` ian at airs dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ian at gcc dot gnu dot org @ 2007-04-27 20:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ian at gcc dot gnu dot org 2007-04-27 21:49 -------
Subject: Bug 31710
Author: ian
Date: Fri Apr 27 21:48:55 2007
New Revision: 124238
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124238
Log:
./:
PR middle-end/31710
* tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
TYPE_MAX_VALUE exist, convert them to the new type.
testsuite/:
PR middle-end/31710
* gcc.c-torture/compile/pr31710.c: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.c-torture/compile/pr31710.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/gcc/tree.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
` (4 preceding siblings ...)
2007-04-27 20:49 ` ian at gcc dot gnu dot org
@ 2007-04-27 20:51 ` ian at airs dot com
2007-04-28 21:48 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ian at airs dot com @ 2007-04-27 20:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ian at airs dot com 2007-04-27 21:50 -------
Fixed on mainline and 4.2 branch.
--
ian at airs dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
` (5 preceding siblings ...)
2007-04-27 20:51 ` ian at airs dot com
@ 2007-04-28 21:48 ` pinskia at gcc dot gnu dot org
2007-04-29 19:19 ` mstein at phenix dot rootshell dot be
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-28 21:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2007-04-28 22:47 -------
*** Bug 31740 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mstein at phenix dot
| |rootshell dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
` (6 preceding siblings ...)
2007-04-28 21:48 ` pinskia at gcc dot gnu dot org
@ 2007-04-29 19:19 ` mstein at phenix dot rootshell dot be
2007-05-01 16:59 ` mstein at phenix dot rootshell dot be
2007-05-01 17:58 ` ian at airs dot com
9 siblings, 0 replies; 11+ messages in thread
From: mstein at phenix dot rootshell dot be @ 2007-04-29 19:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from mstein at phenix dot rootshell dot be 2007-04-29 20:19 -------
(In reply to comment #6)
> Fixed on mainline and 4.2 branch.
Hi Ian,
I still get this bug on the mainline(124261) for the avr,frv,h8300,m32c,m68hc11
and mips.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
` (7 preceding siblings ...)
2007-04-29 19:19 ` mstein at phenix dot rootshell dot be
@ 2007-05-01 16:59 ` mstein at phenix dot rootshell dot be
2007-05-01 17:58 ` ian at airs dot com
9 siblings, 0 replies; 11+ messages in thread
From: mstein at phenix dot rootshell dot be @ 2007-05-01 16:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from mstein at phenix dot rootshell dot be 2007-05-01 17:59 -------
Created an attachment (id=13469)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13469&action=view)
from src/sim/frv
This attachment triggers a ICE in set_value_range, at tree-vrp.c:278
with a host gcc from today (trunk).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31710] [4.2/4.3 Regression] ICE in in set_value_range, at tree-vrp.c:278
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
` (8 preceding siblings ...)
2007-05-01 16:59 ` mstein at phenix dot rootshell dot be
@ 2007-05-01 17:58 ` ian at airs dot com
9 siblings, 0 replies; 11+ messages in thread
From: ian at airs dot com @ 2007-05-01 17:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from ian at airs dot com 2007-05-01 18:58 -------
Please let me know if this is still a problem after revision 124334.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31710
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-05-01 17:58 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-26 7:46 [Bug c/31710] New: ICE in in set_value_range, at tree-vrp.c:278 marcus at jet dot franken dot de
2007-04-26 7:46 ` [Bug c/31710] " marcus at jet dot franken dot de
2007-04-26 8:05 ` [Bug middle-end/31710] [4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
2007-04-27 3:52 ` ian at airs dot com
2007-04-27 20:47 ` ian at gcc dot gnu dot org
2007-04-27 20:49 ` ian at gcc dot gnu dot org
2007-04-27 20:51 ` ian at airs dot com
2007-04-28 21:48 ` pinskia at gcc dot gnu dot org
2007-04-29 19:19 ` mstein at phenix dot rootshell dot be
2007-05-01 16:59 ` mstein at phenix dot rootshell dot be
2007-05-01 17:58 ` ian at airs dot com
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).