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] Rename a function in cgraphunit.c


This simple patch renames the function "cgraph_expand_functions" to "cgraph_expand_all_functions" since upon first glance, I thought this short function was recursively calling itself, when it actually is looping through calls to "cgraph_expand_function" (with no 's' at the end). Modifying the name should hopefully eliminate that confusion for others in the future.

OK?

Kelley Cook
2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>

	* cgraphunit.c (cgraph_expand_all_functions): Renamed from 
	cgraph_expand_functions.

--- cgraphunit.c.orig	2003-09-19 14:24:27.575387000 -0400
+++ cgraphunit.c.2	2003-09-23 09:13:14.240875500 -0400
@@ -41,7 +41,7 @@ Software Foundation, 59 Temple Place - S
 
 #define INSNS_PER_CALL 10
 
-static void cgraph_expand_functions (void);
+static void cgraph_expand_all_functions (void);
 static void cgraph_mark_functions_to_output (void);
 static void cgraph_expand_function (struct cgraph_node *);
 static tree record_call_1 (tree *, int *, void *);
@@ -1211,7 +1211,7 @@ cgraph_inline_p (tree caller_decl, tree 
    order).  */
 
 static void
-cgraph_expand_functions (void)
+cgraph_expand_all_functions (void)
 {
   struct cgraph_node *node;
   struct cgraph_node **order =
@@ -1295,7 +1295,7 @@ cgraph_optimize (void)
     fprintf (stderr, "Assembling functions:");
 
   /* Output everything.  */
-  cgraph_expand_functions ();
+  cgraph_expand_all_functions ();
   if (cgraph_dump_file)
     {
       fprintf (cgraph_dump_file, "Final callgraph:");

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