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]

[patch] Make reload_cse_regs static


Hello,

This patch makes reload_cse_regs static because it is never called
outside of postreload.c.

Will commit next week, after the usual testing and if no-one objects.

Ciao!
Steven

	* postreload.c (reload_cse_regs): Make static.
	* reload.h (reload_cse_regs): Remove prototype.

Index: postreload.c
===================================================================
--- postreload.c	(revision 187177)
+++ postreload.c	(working copy)
@@ -64,7 +64,8 @@ static void move2add_note_store (rtx, co

 /* Call cse / combine like post-reload optimization phases.
    FIRST is the first instruction.  */
-void
+
+static void
 reload_cse_regs (rtx first ATTRIBUTE_UNUSED)
 {
   bool moves_converted;
Index: reload.h
===================================================================
--- reload.h	(revision 187177)
+++ reload.h	(working copy)
@@ -411,9 +411,6 @@ extern int push_reload (rtx, rtx, rtx *,
 			enum machine_mode, enum machine_mode,
 			int, int, int, enum reload_type);

-/* Functions in postreload.c:  */
-extern void reload_cse_regs (rtx);
-
 /* Functions in reload1.c:  */

 /* Initialize the reload pass once per compilation.  */


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