public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/53887] New: ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79
@ 2012-07-07 17:23 rmansfield at qnx dot com
2012-07-09 3:51 ` [Bug middle-end/53887] [4.8 Regression] " hjl.tools at gmail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: rmansfield at qnx dot com @ 2012-07-07 17:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53887
Bug #: 53887
Summary: ICE in hoist_edge_and_branch_if_true, at
tree-switch-conversion.c:79
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rmansfield@qnx.com
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Created attachment 27759
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27759
preprocessed src
$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --disable-bootstrap --enable-languages=c
Thread model: posix
gcc version 4.8.0 20120707 (experimental) [trunk revision 189349] (GCC)
$ ./xgcc -B. ~/t.i -O2
/home/ryan/t.i: In function ‘fdc_setup’:
/home/ryan/t.i:51:1: internal compiler error: in hoist_edge_and_branch_if_true,
at tree-switch-conversion.c:79
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/53887] [4.8 Regression] ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79
2012-07-07 17:23 [Bug middle-end/53887] New: ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79 rmansfield at qnx dot com
@ 2012-07-09 3:51 ` hjl.tools at gmail dot com
2012-07-09 5:19 ` markus at trippelsdorf dot de
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2012-07-09 3:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53887
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-07-09
CC| |steven at gcc dot gnu.org
Target Milestone|--- |4.8.0
Summary|ICE in |[4.8 Regression] ICE in
|hoist_edge_and_branch_if_tr |hoist_edge_and_branch_if_tr
|ue, at |ue, at
|tree-switch-conversion.c:79 |tree-switch-conversion.c:79
Ever Confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-07-09 03:51:38 UTC ---
It is caused by revision 189173:
http://gcc.gnu.org/ml/gcc-cvs/2012-07/msg00077.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/53887] [4.8 Regression] ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79
2012-07-07 17:23 [Bug middle-end/53887] New: ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79 rmansfield at qnx dot com
2012-07-09 3:51 ` [Bug middle-end/53887] [4.8 Regression] " hjl.tools at gmail dot com
@ 2012-07-09 5:19 ` markus at trippelsdorf dot de
2012-07-09 5:29 ` markus at trippelsdorf dot de
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-07-09 5:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53887
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markus at trippelsdorf dot
| |de
--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-07-09 05:18:47 UTC ---
Dup of Bug 53881. Already fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/53887] [4.8 Regression] ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79
2012-07-07 17:23 [Bug middle-end/53887] New: ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79 rmansfield at qnx dot com
2012-07-09 3:51 ` [Bug middle-end/53887] [4.8 Regression] " hjl.tools at gmail dot com
2012-07-09 5:19 ` markus at trippelsdorf dot de
@ 2012-07-09 5:29 ` markus at trippelsdorf dot de
2012-07-09 6:54 ` steven at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-07-09 5:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53887
--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-07-09 05:29:23 UTC ---
(In reply to comment #2)
> Dup of Bug 53881. Already fixed.
Sorry this isn't a dup (just the same error message).
Further reduced:
enum
{ Failed, NoError, NoDiskette }
a;
int b, c;
void
fn1 ()
{
if (c)
a << 1;
switch (b)
{
default:
a << 1;
case 0:
b = 0;
case 1:
case NoDiskette:
;
}
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/53887] [4.8 Regression] ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79
2012-07-07 17:23 [Bug middle-end/53887] New: ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79 rmansfield at qnx dot com
` (2 preceding siblings ...)
2012-07-09 5:29 ` markus at trippelsdorf dot de
@ 2012-07-09 6:54 ` steven at gcc dot gnu.org
2012-07-09 18:53 ` steven at gcc dot gnu.org
2012-07-09 21:33 ` steven at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: steven at gcc dot gnu.org @ 2012-07-09 6:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53887
Steven Bosscher <steven at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC|steven at gcc dot gnu.org |
AssignedTo|unassigned at gcc dot |steven at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/53887] [4.8 Regression] ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79
2012-07-07 17:23 [Bug middle-end/53887] New: ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79 rmansfield at qnx dot com
` (3 preceding siblings ...)
2012-07-09 6:54 ` steven at gcc dot gnu.org
@ 2012-07-09 18:53 ` steven at gcc dot gnu.org
2012-07-09 21:33 ` steven at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: steven at gcc dot gnu.org @ 2012-07-09 18:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53887
--- Comment #4 from Steven Bosscher <steven at gcc dot gnu.org> 2012-07-09 18:53:39 UTC ---
Author: steven
Date: Mon Jul 9 18:53:35 2012
New Revision: 189389
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189389
Log:
gcc/
PR tree-optimization/53887
* tree-cfg.c (group_case_labels_stmt): Make non-static.
* tree-flow.h (group_case_labels_stmt): Add prototype.
* tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
to pre-process every switch.
testsuite/
PR tree-optimization/53887
* gcc.dg/pr53887.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr53887.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-cfg.c
trunk/gcc/tree-flow.h
trunk/gcc/tree-switch-conversion.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/53887] [4.8 Regression] ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79
2012-07-07 17:23 [Bug middle-end/53887] New: ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79 rmansfield at qnx dot com
` (4 preceding siblings ...)
2012-07-09 18:53 ` steven at gcc dot gnu.org
@ 2012-07-09 21:33 ` steven at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: steven at gcc dot gnu.org @ 2012-07-09 21:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53887
Steven Bosscher <steven at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Steven Bosscher <steven at gcc dot gnu.org> 2012-07-09 21:33:16 UTC ---
.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-07-09 21:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-07 17:23 [Bug middle-end/53887] New: ICE in hoist_edge_and_branch_if_true, at tree-switch-conversion.c:79 rmansfield at qnx dot com
2012-07-09 3:51 ` [Bug middle-end/53887] [4.8 Regression] " hjl.tools at gmail dot com
2012-07-09 5:19 ` markus at trippelsdorf dot de
2012-07-09 5:29 ` markus at trippelsdorf dot de
2012-07-09 6:54 ` steven at gcc dot gnu.org
2012-07-09 18:53 ` steven at gcc dot gnu.org
2012-07-09 21:33 ` steven 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).