+2008-10-01 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/37285
+ * tree-vrp.c (execute_vrp): If we optimized away the default
+ case make sure to promote the label that got in place of it
+ to a default case label.
+
2008-10-01 Richard Henderson <rth@redhat.com>
PR tree-opt/35737
+2008-10-01 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/37285
+ * gcc.c-torture/compile/pr37285.c: New testcase.
+
2008-10-01 Kai Tietz <kai.tietz@onevision.com>
* g++.dg/abi/offsetof.C (main): Use __SIZE_TYPE__ instead of
{
size_t j;
size_t n = TREE_VEC_LENGTH (su->vec);
+ tree label;
gimple_switch_set_num_labels (su->stmt, n);
for (j = 0; j < n; j++)
gimple_switch_set_label (su->stmt, j, TREE_VEC_ELT (su->vec, j));
+ /* As we may have replaced the default label with a regular one
+ make sure to make it a real default label again. This ensures
+ optimal expansion. */
+ label = gimple_switch_default_label (su->stmt);
+ CASE_LOW (label) = NULL_TREE;
+ CASE_HIGH (label) = NULL_TREE;
}
if (VEC_length (edge, to_remove_edges) > 0)