diff options
author | Richard Biener <rguenther@suse.de> | 2014-11-27 14:22:29 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-11-27 14:22:29 +0000 |
commit | a92bf1b1c7942a6fb8af77bf8d90382aab60341f (patch) | |
tree | 5019f45050c3cfff3b6741586bbc44dd2531f212 /gcc/fold-const.c | |
parent | c17eac85616572b7e1163cfb87d95a7875c89407 (diff) | |
download | gcc-a92bf1b1c7942a6fb8af77bf8d90382aab60341f.zip gcc-a92bf1b1c7942a6fb8af77bf8d90382aab60341f.tar.gz gcc-a92bf1b1c7942a6fb8af77bf8d90382aab60341f.tar.bz2 |
re PR middle-end/64088 (ICE: in fold_abs_const, at fold-const.c:15550)
2014-11-27 Richard Biener <rguenther@suse.de>
PR middle-end/64088
* fold-const.c (const_unop): Re-instantiate missing condition
before calling fold_abs_const.
* gcc.dg/torture/pr64088.c: New testcase.
PR tree-optimization/64088
* tree-ssa-tail-merge.c (update_debug_stmt): After resetting
the stmt break from the loop over use operands.
* gcc.dg/torture/pr64091.c: New testcase.
From-SVN: r218128
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 195d1e5..486ca19a 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -1481,7 +1481,9 @@ const_unop (enum tree_code code, tree type, tree arg0) } case ABS_EXPR: - return fold_abs_const (arg0, type); + if (TREE_CODE (arg0) == INTEGER_CST || TREE_CODE (arg0) == REAL_CST) + return fold_abs_const (arg0, type); + break; case CONJ_EXPR: if (TREE_CODE (arg0) == COMPLEX_CST) |