Commit 256f88c6 by Richard Guenther Committed by Richard Biener

re PR middle-end/37285 (ICE while building binutils on ppc)

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.

        * gcc.c-torture/compile/pr37285.c: New testcase.

From-SVN: r140814
parent 35a45bd4
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
......
_bfd_xcoff_canonicalize_dynamic_reloc (unsigned long long l_symndx)
{
if (l_symndx < 3)
{
switch (l_symndx)
{
case 0:
case 1:
break;
case 2:
_bfd_abort ("HI");
}
}
}
......@@ -7149,9 +7149,16 @@ execute_vrp (void)
{
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment