re PR testsuite/48809 (switch statement optimization error)
authorJakub Jelinek <jakub@redhat.com>
Sat, 30 Apr 2011 06:54:02 +0000 (08:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 30 Apr 2011 06:54:02 +0000 (08:54 +0200)
commitedb9b69e5730fc6584899297bf5688282de6a1c7
tree976910c9fe824653665e5ee392c868d8cf10200d
parenta6545a3d943012f72ba5d0ed49471412b0e308e8
re PR testsuite/48809 (switch statement optimization error)

PR tree-optimization/48809
* tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
type.
(gen_inbound_check): Don't compute index_expr - range_min in utype
again, instead reuse SSA_NAME initialized in build_arrays.
Remove two useless gsi_for_stmt calls.

* gcc.c-torture/execute/pr48809.c: New test.

From-SVN: r173207
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr48809.c [new file with mode: 0644]
gcc/tree-switch-conversion.c