This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/14730] [tree-ssa] ICE on a switch statement with a case which is bigger than the type of switcher


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]