This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Feb 2017 11:05:32 +0000
- Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
- Auto-submitted: auto-generated
- References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79413
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The DECL_EXPR is there, the problem is that gimplify_type_sizes doesn't do
anything about it, because is_gimple_sizepos says it is ok:
101 return (expr == NULL_TREE
102 || TREE_CONSTANT (expr)
103 || TREE_CODE (expr) == VAR_DECL
104 || CONTAINS_PLACEHOLDER_P (expr));
and (sizetype) (1 / 0) * 4 has TREE_CONSTANT set on it.
Wonder if is_gimple_sizepos shouldn't use is_gimple_min_invariant instead of
TREE_CONSTANT or something similar.