projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba6c89a
)
* tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
author
Jan Hubicka
<jh@suse.cz>
Tue, 4 Sep 2007 19:27:11 +0000
(21:27 +0200)
committer
Jan Hubicka
<hubicka@gcc.gnu.org>
Tue, 4 Sep 2007 19:27:11 +0000
(19:27 +0000)
From-SVN: r128101
gcc/ChangeLog
patch
|
blob
|
history
gcc/tree-tailcall.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 7cbdf9aebbdcd08272cc331a4560e82b9f8be655..4ddc85da1cdd722d616c3881ea124dcae219d69e 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,7
@@
+2007-09-04 Jan Hubicka <jh@suse.cz>
+
+ * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
+
2007-09-04 Jan Hubicka <jh@suse.cz>
* invoke.texi (-finline-small-functions): Document.
diff --git
a/gcc/tree-tailcall.c
b/gcc/tree-tailcall.c
index 8651b60fc0d8f4de77cb7cf0eba16357d6a0796d..3e15b1b6ae0339fd457513ee3502c93f53dfc6ba 100644
(file)
--- 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);