]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
authorJan Hubicka <jh@suse.cz>
Tue, 4 Sep 2007 19:27:11 +0000 (21:27 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 4 Sep 2007 19:27:11 +0000 (19:27 +0000)
From-SVN: r128101

gcc/ChangeLog
gcc/tree-tailcall.c

index 7cbdf9aebbdcd08272cc331a4560e82b9f8be655..4ddc85da1cdd722d616c3881ea124dcae219d69e 100644 (file)
@@ -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.
index 8651b60fc0d8f4de77cb7cf0eba16357d6a0796d..3e15b1b6ae0339fd457513ee3502c93f53dfc6ba 100644 (file)
@@ -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);