------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-06 00:54 ------- The following patch fixed the ICE but I don't know for sure if it is the correct fix: Index: tree-ssa.c =============================================================== ==== RCS file: /cvs/gcc/gcc/gcc/tree-ssa.c,v retrieving revision 2.95 diff -u -p -r2.95 tree-ssa.c --- tree-ssa.c 1 Jun 2005 02:51:05 -0000 2.95 +++ tree-ssa.c 6 Jun 2005 00:53:39 -0000 @@ -901,7 +901,9 @@ tree_ssa_useless_type_conversion_1 (tree else if (INTEGRAL_TYPE_P (inner_type) && INTEGRAL_TYPE_P (outer_type) && TYPE_UNSIGNED (inner_type) == TYPE_UNSIGNED (outer_type) - && TYPE_PRECISION (inner_type) == TYPE_PRECISION (outer_type)) + && TYPE_PRECISION (inner_type) == TYPE_PRECISION (outer_type) + && simple_cst_equal (TYPE_MAX_VALUE (inner_type), TYPE_MAX_VALUE (outer_type)) + && simple_cst_equal (TYPE_MIN_VALUE (inner_type), TYPE_MIN_VALUE (outer_type))) { bool first_boolean = (TREE_CODE (inner_type) == BOOLEAN_TYPE); bool second_boolean = (TREE_CODE (outer_type) == BOOLEAN_TYPE);
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21923