This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/48809] [4.4 Regression] switch statement optimization error
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 4 May 2011 09:24:28 +0000
- Subject: [Bug testsuite/48809] [4.4 Regression] switch statement optimization error
- Auto-submitted: auto-generated
- References: <bug-48809-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48809
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-04 09:19:10 UTC ---
Author: jakub
Date: Wed May 4 09:19:07 2011
New Revision: 173358
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173358
Log:
Backport from mainline
2011-04-30 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr48809.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/tree-switch-conversion.c