diff options
author | Marek Polacek <polacek@redhat.com> | 2014-12-12 14:02:37 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-12-12 14:02:37 +0000 |
commit | dd92baee2ac422ac25fe6fdf1f1e650ca846526f (patch) | |
tree | 6e3dc0d20c6882b360f60d0642043d456e68600f | |
parent | db62401dee8e69024392d9a4525414785df63523 (diff) | |
download | gcc-dd92baee2ac422ac25fe6fdf1f1e650ca846526f.zip gcc-dd92baee2ac422ac25fe6fdf1f1e650ca846526f.tar.gz gcc-dd92baee2ac422ac25fe6fdf1f1e650ca846526f.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fold-const.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44b4ce4..69797f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> PR tree-optimization/64269 diff --git a/gcc/fold-const.c b/gcc/fold-const.c index ec5ad98..d71fa94 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -10082,7 +10082,8 @@ fold_binary_loc (location_t loc, /* Reassociate (plus (plus (mult) (foo)) (mult)) as (plus (plus (mult) (mult)) (foo)) so that we can 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) == MINUS_EXPR) && TREE_CODE (arg1) == MULT_EXPR) |