diff options
author | Richard Biener <rguenther@suse.de> | 2014-12-09 11:58:51 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-12-09 11:58:51 +0000 |
commit | 85fd4c288ae10b75a5ccf48abf79e10b5d8a6d06 (patch) | |
tree | 3dc7f562ef1b368aa33bba5c8f65fe0b301d4f4e /gcc/fold-const.c | |
parent | 60b6534a84cd08e403ed5d1f91def59b161e8424 (diff) | |
download | gcc-85fd4c288ae10b75a5ccf48abf79e10b5d8a6d06.zip gcc-85fd4c288ae10b75a5ccf48abf79e10b5d8a6d06.tar.gz gcc-85fd4c288ae10b75a5ccf48abf79e10b5d8a6d06.tar.bz2 |
re PR tree-optimization/64199 (ICE: tree check: expected class 'constant', have 'binary' (plus_expr) in fold_binary_loc, at fold-const.c:10404 with -ffast-math -frounding-math)
2014-12-09 Richard Biener <rguenther@suse.de>
PR middle-end/64199
* fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
* gcc.dg/torture/pr64199.c: New testcase.
From-SVN: r218513
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 94d1cbf..0c4fe40 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -10398,8 +10398,8 @@ fold_binary_loc (location_t loc, /* Don't introduce overflows through reassociation. */ if (!any_overflows - && ((lit0 && TREE_OVERFLOW (lit0)) - || (minus_lit0 && TREE_OVERFLOW (minus_lit0)))) + && ((lit0 && TREE_OVERFLOW_P (lit0)) + || (minus_lit0 && TREE_OVERFLOW_P (minus_lit0)))) return NULL_TREE; if (minus_lit0) |