[Bug tree-optimization/56501] [4.6/4.7 Regression] gcc 4.6 ICE on noreturn function at -Os and above
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 3 10:10:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56501
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-04-03
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-03 10:10:06 UTC ---
Testing
Index: gcc/tree-switch-conversion.c
===================================================================
--- gcc/tree-switch-conversion.c (revision 197348)
+++ gcc/tree-switch-conversion.c (working copy)
@@ -283,7 +283,12 @@ check_process_case (tree cs)
return false;
}
- e = single_succ_edge (label_bb);
+ if (!single_succ_p (label_bb))
+ {
+ info.reason
+ = " Bad case - a non-final BB without a single successor\n";
+ return false;
+ }
following_bb = single_succ (label_bb);
}
More information about the Gcc-bugs
mailing list