[Bug middle-end/53153] [4.8 Regression] ice in tree_low_cst, at tree.c:6569

steven at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 2 12:58:00 GMT 2012


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

--- Comment #5 from Steven Bosscher <steven at gcc dot gnu.org> 2012-05-02 12:57:17 UTC ---
Author: steven
Date: Wed May  2 12:57:10 2012
New Revision: 187048

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187048
Log:
gcc/
    PR middle-end/53153
    * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
    split out from ...
    (gimplify_switch_expr): ... here.
    * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
    * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
    to clean up case labels with values outside the index type range.
    (simplify_gimple_switch): Call it if something changed.
    Remove strange and unnecessary assert.

testsuite/
    PR middle-end/53153
    * gcc.dg/pr53153.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr53153.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple.h
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-forwprop.c



More information about the Gcc-bugs mailing list