re PR tree-optimization/44485 (ICE in get_expr_operands, at tree-ssa-operands.c:1020)
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 Aug 2010 16:39:26 +0000 (18:39 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 Aug 2010 16:39:26 +0000 (18:39 +0200)
commit9e3920e97f0cc9df385cf357f4d123564e0da7ad
tree4842034f20c95beead33bfbf7d7f7eef7bca0017
parent350b70702451004bf3f8b7e520b95728bc98cf28
re PR tree-optimization/44485 (ICE in get_expr_operands, at tree-ssa-operands.c:1020)

PR tree-optimization/44485
* calls.c (flags_from_decl_or_type): For const or pure
noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
together with ECF_CONST resp. ECF_PURE.
* builtins.c (expand_builtin): Use flags_from_decl_or_type
instead of querying flags directly.
* tree-ssa-loop-niter.c (finite_loop_p): Likewise.
* tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.

* gcc.dg/pr44485.c: New test.

From-SVN: r163568
gcc/ChangeLog
gcc/builtins.c
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr44485.c [new file with mode: 0644]
gcc/tree-ssa-dce.c
gcc/tree-ssa-loop-niter.c