diff mbox

The nvptx port [9/11+] Epilogues

Message ID 54451D03.2000909@codesourcery.com
State New
Headers show

Commit Message

Bernd Schmidt Oct. 20, 2014, 2:32 p.m. UTC
We skip the late compilation passes on ptx, but there's one piece we do 
need - fixing up the function so that we get return insns in the right 
places. This patch just makes thread_prologue_and_epilogue_insns 
callable from the reorg pass.


Bernd

Comments

Jeff Law Oct. 21, 2014, 10:07 p.m. UTC | #1
On 10/20/14 14:32, Bernd Schmidt wrote:
> We skip the late compilation passes on ptx, but there's one piece we do
> need - fixing up the function so that we get return insns in the right
> places. This patch just makes thread_prologue_and_epilogue_insns
> callable from the reorg pass.
>
>
> Bernd
>
> 009-proep.diff
>
>
> 	gcc/
> 	* function.c (thread_prologue_and_epilogue_insns): No longer static.
> 	* function.h (thread_prologue_and_epilogue_insns): Declare.
OK.
Jeff
diff mbox

Patch

	gcc/
	* function.c (thread_prologue_and_epilogue_insns): No longer static.
	* function.h (thread_prologue_and_epilogue_insns): Declare.

------------------------------------------------------------------------
Index: gcc/function.c
===================================================================
--- gcc/function.c	(revision 422424)
+++ gcc/function.c	(revision 422425)
@@ -5945,7 +5945,7 @@  emit_return_for_exit (edge exit_fallthru
    in a sibcall omit the sibcall_epilogue if the block is not in
    ANTIC.  */
 
-static void
+void
 thread_prologue_and_epilogue_insns (void)
 {
   bool inserted;
Index: gcc/function.h
===================================================================
--- gcc/function.h	(revision 422424)
+++ gcc/function.h	(revision 422425)
@@ -773,6 +773,8 @@  extern void free_after_compilation (stru
 
 extern void init_varasm_status (void);
 
+extern void thread_prologue_and_epilogue_insns (void);
+
 #ifdef RTX_CODE
 extern void diddle_return_value (void (*)(rtx, void*), void*);
 extern void clobber_return_register (void);