[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug c++/48809] [4.4/4.5/4.6/4.7 Regression] switch statement optimization error
From: "jakub at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date: 2011-04-30 7:01:23
Message-ID: bug-48809-4-xl3kX5oVMZ () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48809
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-30 06:55:15 UTC ---
Author: jakub
Date: Sat Apr 30 06:55:11 2011
New Revision: 173208
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173208
Log:
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_6-branch/gcc/testsuite/gcc.c-torture/execute/pr48809.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/tree-switch-conversion.c
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic