Commit 32950a5d by Richard Guenther Committed by Richard Biener

fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.

2011-08-31  Richard Guenther  <rguenther@suse.de>

	* fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
	special-casing.

From-SVN: r178377
parent dbb45bf9
2011-08-31 Richard Guenther <rguenther@suse.de>
* fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
special-casing.
2011-08-31 Marc Glisse <marc.glisse@inria.fr> 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
* doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals. * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
...@@ -5888,11 +5888,9 @@ extract_muldiv_1 (tree t, tree c, enum tree_code code, tree wide_type, ...@@ -5888,11 +5888,9 @@ extract_muldiv_1 (tree t, tree c, enum tree_code code, tree wide_type,
multiple of the other, in which case we replace this with either an multiple of the other, in which case we replace this with either an
operation or CODE or TCODE. operation or CODE or TCODE.
If we have an unsigned type that is not a sizetype, we cannot do If we have an unsigned type, we cannot do this since it will change
this since it will change the result if the original computation the result if the original computation overflowed. */
overflowed. */ if (TYPE_OVERFLOW_UNDEFINED (ctype)
if ((TYPE_OVERFLOW_UNDEFINED (ctype)
|| (TREE_CODE (ctype) == INTEGER_TYPE && TYPE_IS_SIZETYPE (ctype)))
&& ((code == MULT_EXPR && tcode == EXACT_DIV_EXPR) && ((code == MULT_EXPR && tcode == EXACT_DIV_EXPR)
|| (tcode == MULT_EXPR || (tcode == MULT_EXPR
&& code != TRUNC_MOD_EXPR && code != CEIL_MOD_EXPR && code != TRUNC_MOD_EXPR && code != CEIL_MOD_EXPR
......
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