diff options
author | Marek Polacek <polacek@redhat.com> | 2014-12-15 12:15:14 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-12-15 12:15:14 +0000 |
commit | f52e1d24fd49da929f731b0477106aadb3120fc4 (patch) | |
tree | 18a5d69201001f4f2b785ddefffa9c1c6f0095ed /gcc/fold-const.c | |
parent | 4b4f2e35d0d71a758079bf11e485f737e7f2b8cf (diff) | |
download | gcc-f52e1d24fd49da929f731b0477106aadb3120fc4.zip gcc-f52e1d24fd49da929f731b0477106aadb3120fc4.tar.gz gcc-f52e1d24fd49da929f731b0477106aadb3120fc4.tar.bz2 |
re PR middle-end/64292 (FAIL: g++.dg/torture/pr60474.C -O1 (internal compiler error))
PR middle-end/64292
* fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
From-SVN: r218745
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index d71fa94..07da71a 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -400,7 +400,7 @@ negate_expr_p (tree t) switch (TREE_CODE (t)) { case INTEGER_CST: - if (TYPE_OVERFLOW_WRAPS (type)) + if (INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_WRAPS (type)) return true; /* Check that -CST will not overflow type. */ |