This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/14730] [tree-ssa] ICE on a switch statement with a case which is bigger than the type of switcher
- From: "bje at au1 dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Apr 2004 07:18:45 -0000
- Subject: [Bug middle-end/14730] [tree-ssa] ICE on a switch statement with a case which is bigger than the type of switcher
- References: <20040325051437.14730.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bje at au1 dot ibm dot com 2004-04-01 07:18 -------
Subject: PR 14730
The bug originator says that he expects that the out-of-range case
label would be optimised away, however I feel that we should focus on
getting tree-ssa to not regress from the mainline at this stage (which
retains the case 256 label and promotes the controlling expression to
int).
The dce2 pass is removing the cast:
Eliminating unnecessary statements:
Deleting : T.0_2 = (int)i_1;
Ben
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14730