Commit dd92baee by Marek Polacek Committed by Marek Polacek

re PR middle-end/64274 ([ARM] gcc.target/arm/fixed-point-exec.c ICE in fold_binary_loc)

	PR middle-end/64274
	* fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.

From-SVN: r218671
parent db62401d
2014-12-12 Marek Polacek <polacek@redhat.com>
PR middle-end/64274
* fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.
2014-12-12 Jakub Jelinek <jakub@redhat.com> 2014-12-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/64269 PR tree-optimization/64269
...@@ -10082,7 +10082,8 @@ fold_binary_loc (location_t loc, ...@@ -10082,7 +10082,8 @@ fold_binary_loc (location_t loc,
/* Reassociate (plus (plus (mult) (foo)) (mult)) as /* Reassociate (plus (plus (mult) (foo)) (mult)) as
(plus (plus (mult) (mult)) (foo)) so that we can (plus (plus (mult) (mult)) (foo)) so that we can
take advantage of the factoring cases below. */ take advantage of the factoring cases below. */
if (TYPE_OVERFLOW_WRAPS (type) if (ANY_INTEGRAL_TYPE_P (type)
&& TYPE_OVERFLOW_WRAPS (type)
&& (((TREE_CODE (arg0) == PLUS_EXPR && (((TREE_CODE (arg0) == PLUS_EXPR
|| TREE_CODE (arg0) == MINUS_EXPR) || TREE_CODE (arg0) == MINUS_EXPR)
&& TREE_CODE (arg1) == MULT_EXPR) && TREE_CODE (arg1) == MULT_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