diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-02-09 15:26:40 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-02-09 15:26:40 +0100 |
commit | 28f6839be16de2fd4143a5395800bb002359b27b (patch) | |
tree | bc632643a2ce7286443a3590e6727f2878a11c47 /gcc/gimplify.h | |
parent | f08683a154522492e2fdc9e970b145cd37f242de (diff) | |
download | gcc-28f6839be16de2fd4143a5395800bb002359b27b.zip gcc-28f6839be16de2fd4143a5395800bb002359b27b.tar.gz gcc-28f6839be16de2fd4143a5395800bb002359b27b.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.h b/gcc/gimplify.h index 5d39544..394d385 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)); } |