From 4aeb38965b9a520a3db366879942639a4e64ad9a Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 4 Sep 2007 21:27:11 +0200 Subject: [PATCH] * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value. From-SVN: r128101 --- gcc/ChangeLog | 4 ++++ gcc/tree-tailcall.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7cbdf9aebbd..4ddc85da1cd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-09-04 Jan Hubicka + + * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value. + 2007-09-04 Jan Hubicka * invoke.texi (-finline-small-functions): Document. diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 8651b60fc0d..3e15b1b6ae0 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -800,7 +800,8 @@ eliminate_tail_call (struct tailcall *t) /* Result of the call will no longer be defined. So adjust the SSA_NAME_DEF_STMT accordingly. */ - SSA_NAME_DEF_STMT (rslt) = build_empty_stmt (); + if (TREE_CODE (rslt) == SSA_NAME) + SSA_NAME_DEF_STMT (rslt) = build_empty_stmt (); } bsi_remove (&t->call_bsi, true); -- 2.30.2