• nathan's avatar
    * builtins.c (build_function_call_expr): Don't set · 314216bf
    nathan authored
    	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.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70802 138bc75d-0d04-0410-961f-82ee72b054a4
    314216bf
ChangeLog 531 KB