http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34949
--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-03 06:31:02 UTC --- Author: jakub Date: Tue Apr 2 18:25:36 2013 New Revision: 197369 URL: http://gcc.gnu.org/viewcvs?rev=197369&root=gcc&view=rev Log: PR c++/34949 * tree-cfg.c (verify_gimple_assign_single): Allow lhs of gimple_clobber_p to be MEM_REF. * gimplify.c (gimplify_modify_expr): Gimplify *to_p of an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF after gimplification. * asan.c (get_mem_ref_of_assignment): Don't instrument gimple_clobber_p stmts. * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of gimple_clobber_p stmt if they have MEM_REF lhs and are dead because of another gimple_clobber_p stmt. * tree-ssa-live.c (clear_unused_block_pointer): Treat gimple_clobber_p stmts like debug stmts. (remove_unused_locals): Remove clobbers with MEM_REF lhs that refer to unused VAR_DECLs or uninitialized values. * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove gimple_clobber_p stmts if they refer to removed parameters. (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up formatting. Modified: trunk/gcc/ChangeLog trunk/gcc/asan.c trunk/gcc/gimplify.c trunk/gcc/tree-cfg.c trunk/gcc/tree-sra.c trunk/gcc/tree-ssa-dse.c trunk/gcc/tree-ssa-live.c