This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Unbreak bootstrap
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org, rguenther at suse dot de
- Date: Tue, 4 Sep 2007 21:29:19 +0200
- Subject: Unbreak bootstrap
Hi,
Richard's patch to remove volatile flag from loads broke tailcall code
to update SSA form. The following patch bootstrapped for me on
x86_64-linux and I went ahead and comitted it as it is pretty obvious to
unbreak testing...
Honza
Index: ChangeLog
===================================================================
*** ChangeLog (revision 128100)
--- ChangeLog (working copy)
***************
*** 1,5 ****
--- 1,9 ----
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.
* ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
when deciding what is inlinable.
Index: tree-tailcall.c
===================================================================
*** tree-tailcall.c (revision 128100)
--- tree-tailcall.c (working copy)
*************** eliminate_tail_call (struct tailcall *t)
*** 800,806 ****
/* 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 ();
}
bsi_remove (&t->call_bsi, true);
--- 800,807 ----
/* Result of the call will no longer be defined. So adjust the
SSA_NAME_DEF_STMT accordingly. */
! if (TREE_CODE (rslt) == SSA_NAME)
! SSA_NAME_DEF_STMT (rslt) = build_empty_stmt ();
}
bsi_remove (&t->call_bsi, true);