This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]