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 c++/48809] [4.4/4.5/4.6/4.7 Regression] switch statement optimization error


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48809

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-30 06:54:06 UTC ---
Author: jakub
Date: Sat Apr 30 06:54:02 2011
New Revision: 173207

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173207
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:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr48809.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-switch-conversion.c


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