re PR middle-end/26557 (ICE in simplify_subreg)
authorRoger Sayle <sayle@gcc.gnu.org>
Mon, 13 Mar 2006 23:47:47 +0000 (23:47 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 13 Mar 2006 23:47:47 +0000 (23:47 +0000)
commitf831807967c55f828ba7dfb304f12f086d943417
treec4689c459a59af36095a53e46897d7983e27ada0
parent26a851b930f908e3dffa57a3dfa2597c6ed004d7
re PR middle-end/26557 (ICE in simplify_subreg)

PR middle-end/26557
* stmt.c (emit_case_nodes): Handle the case where the index is a
CONST_INT, where the comparison mode is specified by the index type.

* gcc.c-torture/compile/switch-1.c: New test case.

From-SVN: r112032
gcc/ChangeLog
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/switch-1.c [new file with mode: 0644]