diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-15 12:15:14 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-15 12:15:14 +0000 |
commit | 88b711237a655f62518388aa6b6c2f429dc9aa7e (patch) | |
tree | 18a5d69201001f4f2b785ddefffa9c1c6f0095ed /gcc/fold-const.c | |
parent | 67cedda8d6cb6825870b324d30575d00462913b7 (diff) | |
download | gcc-88b711237a655f62518388aa6b6c2f429dc9aa7e.tar.gz |
PR middle-end/64292
* fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218745 138bc75d-0d04-0410-961f-82ee72b054a4
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 d71fa94d646..07da71ae196 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. */ |