aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@gcc.gnu.org>2009-11-21 05:04:30 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2009-11-21 05:04:30 +0000
commit21cf718065ecda762be39bd34606b29239d2efaf (patch)
tree45cdd369007484a44434fbf6ca63aa95185eabd6 /gcc/gimple.h
parent04482dd1056ef5718524cefc4b43c5ef7eea986f (diff)
downloadgcc-21cf718065ecda762be39bd34606b29239d2efaf.zip
gcc-21cf718065ecda762be39bd34606b29239d2efaf.tar.gz
gcc-21cf718065ecda762be39bd34606b29239d2efaf.tar.bz2
re PR tree-optimization/42078 (ICE in gimple_assign_set_rhs_code)
gcc/ChangeLog: PR tree-optimization/42078 * gimple.h (gimple_replace_lhs): New declaration. * gimple.c (gimple_replace_lhs): New function. * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before modifying the call. gcc/testsuite/ChangeLog: PR tree-optimization/42078 * gcc.dg/pr42078.c: New test. From-SVN: r154400
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r--gcc/gimple.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index e956370..f355ab1 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -843,6 +843,7 @@ void gimple_assign_set_rhs_with_ops (gimple_stmt_iterator *, enum tree_code,
tree, tree);
tree gimple_get_lhs (const_gimple);
void gimple_set_lhs (gimple, tree);
+void gimple_replace_lhs (gimple, tree);
gimple gimple_copy (gimple);
bool is_gimple_operand (const_tree);
void gimple_set_modified (gimple, bool);