This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]