builtins.c (build_function_call_expr): Don't set TREE_SIDE_EFFECTS here.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 26 Aug 2003 08:51:35 +0000 (08:51 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 26 Aug 2003 08:51:35 +0000 (08:51 +0000)
commit20b506726b1e07f028fa81ffc80f5081aabaea02
tree152ffb66aceabfdd630712ed76616a8b76fb2e82
parentd128effb32977a5a1621b106465133970a842c4d
builtins.c (build_function_call_expr): Don't set TREE_SIDE_EFFECTS here.

* builtins.c (build_function_call_expr): Don't set
TREE_SIDE_EFFECTS here.
* expr.c (emit_block_move_via_libcall): Likewise.
(clear_storage_via_libcall): Likewise.
* tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
CALL_EXPRs.
cp:
* call.c (build_call): Don't set TREE_SIDE_EFFECTS here.
(build_new_method_call): Add goto finish.
* semantics.c (simplify_aggr_init_exprs_r): Don't set
TREE_SIDE_EFFECTS on a call.
testsuite:
* c++.dg/warn/noeffect3.C: New test.

From-SVN: r70802
gcc/ChangeLog
gcc/builtins.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/semantics.c
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/tree.c