]>
Commit | Line | Data |
---|---|---|
df365365 PS |
1 | --- gcc/gcc/tree-ssa.c 1 Jun 2005 02:51:05 -0000 2.95 |
2 | +++ gcc/gcc/tree-ssa.c 6 Jun 2005 00:53:39 -0000 | |
3 | @@ -901,7 +901,9 @@ tree_ssa_useless_type_conversion_1 (tree | |
4 | else if (INTEGRAL_TYPE_P (inner_type) | |
5 | && INTEGRAL_TYPE_P (outer_type) | |
6 | && TYPE_UNSIGNED (inner_type) == TYPE_UNSIGNED (outer_type) | |
7 | - && TYPE_PRECISION (inner_type) == TYPE_PRECISION (outer_type)) | |
8 | + && TYPE_PRECISION (inner_type) == TYPE_PRECISION (outer_type) | |
9 | + && simple_cst_equal (TYPE_MAX_VALUE (inner_type), TYPE_MAX_VALUE (outer_type)) | |
10 | + && simple_cst_equal (TYPE_MIN_VALUE (inner_type), TYPE_MIN_VALUE (outer_type))) | |
11 | { | |
12 | bool first_boolean = (TREE_CODE (inner_type) == BOOLEAN_TYPE); | |
13 | bool second_boolean = (TREE_CODE (outer_type) == BOOLEAN_TYPE); |