From 28f6839be16de2fd4143a5395800bb002359b27b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 9 Feb 2017 15:26:40 +0100 Subject: 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 --- gcc/gimplify.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gimplify.h') 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)); } -- cgit v1.2.1