summaryrefslogtreecommitdiff
path: root/gcc/gimplify.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-02-09 15:26:40 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-02-09 15:26:40 +0100
commit28f6839be16de2fd4143a5395800bb002359b27b (patch)
treebc632643a2ce7286443a3590e6727f2878a11c47 /gcc/gimplify.h
parentf08683a154522492e2fdc9e970b145cd37f242de (diff)
downloadgcc-28f6839be16de2fd4143a5395800bb002359b27b.tar.gz
re PR c/79413 (ICE in make_ssa_name_fn, at tree-ssanames.c:265)
PR c/79413 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants, not arbitrary TREE_CONSTANT. * gcc.c-torture/compile/pr79413.c: New test. From-SVN: r245304
Diffstat (limited to 'gcc/gimplify.h')
-rw-r--r--gcc/gimplify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.h b/gcc/gimplify.h
index 5d3954496e1..394d385f910 100644
--- a/gcc/gimplify.h
+++ b/gcc/gimplify.h
@@ -99,7 +99,7 @@ is_gimple_sizepos (tree expr)
but that will cause problems if this type is from outside the function.
It's OK to have that here. */
return (expr == NULL_TREE
- || TREE_CONSTANT (expr)
+ || TREE_CODE (expr) == INTEGER_CST
|| TREE_CODE (expr) == VAR_DECL
|| CONTAINS_PLACEHOLDER_P (expr));
}