http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59208
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Fri Nov 29 14:37:07 2013 New Revision: 205528 URL: http://gcc.gnu.org/viewcvs?rev=205528&root=gcc&view=rev Log: 2013-11-29 Richard Biener <rguent...@suse.de> PR middle-end/59208 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands, free_stmt_operands, update_stmt_operands): Add struct function argument. * tree-ssa-operands.c: Remove uses of cfun, propagate struct function argument from fini_ssa_operands, verify_ssa_operands, free_stmt_operands and update_stmt_operands everywhere. * tree-ssanames.h (release_ssa_name_fn): New. (release_ssa_name): Inline wrapper around release_ssa_name_fn. * tree-ssanames.c (release_ssa_name): Rename to ... (release_ssa_name_fn): ... this and add struct function argument. * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust. (update_stmt_fn): New function. * tree-cfg.c (move_block_to_fn): Adjust. * tree-if-conv.c (free_bb_predicate): Likewise. * tree-ssa.c (verify_ssa): Likewise. (delete_tree_ssa): Likewise. * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard. * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call update_stmt_fn instead of update_stmt. * g++.dg/torture/pr59208.C: New testcase. Modified: trunk/gcc/ChangeLog trunk/gcc/cgraph.c trunk/gcc/gimple-pretty-print.c trunk/gcc/gimple-ssa.h trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-cfg.c trunk/gcc/tree-if-conv.c trunk/gcc/tree-ssa-operands.c trunk/gcc/tree-ssa-operands.h trunk/gcc/tree-ssa.c trunk/gcc/tree-ssanames.c trunk/gcc/tree-ssanames.h