This is the mail archive of the 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] function.c: Make some functions static.


Attached is a patch to make combine_temp_slots, assign_parms, and
expand_pending_sizes static as they are used only from function.c.

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-11-09  Kazu Hirata  <>

	* function.c (combine_temp_slots, assign_parms,
	expand_pending_sizes): Make them static.
	* tree.h: Remove the corresponding prototypes.

Index: function.c
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.585
diff -u -d -p -r1.585 function.c
--- function.c	28 Oct 2004 12:29:36 -0000	1.585
+++ function.c	8 Nov 2004 23:00:17 -0000
@@ -850,7 +850,7 @@ assign_temp (tree type_or_decl, int keep
    done for BLKmode slots because we can be sure that we won't have alignment
    problems in this case.  */
+static void
 combine_temp_slots (void)
   struct temp_slot *p, *q, *next, *next_q;
@@ -3011,7 +3011,7 @@ assign_parms_unsplit_complex (tree orig_
 /* Assign RTL expressions to the function's parameters.  This may involve
    copying them into registers and using those registers as the DECL_RTL.  */
+static void
 assign_parms (tree fndecl)
   struct assign_parm_data_all all;
@@ -3970,7 +3970,7 @@ expand_main_function (void)
    for the current function.  The PENDING_SIZES are a TREE_LIST.  The
    TREE_VALUE of each node is a SAVE_EXPR.  */
+static void
 expand_pending_sizes (tree pending_sizes)
   tree tem;
Index: tree.h
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.648
diff -u -d -p -r1.648 tree.h
--- tree.h	8 Nov 2004 22:38:12 -0000	1.648
+++ tree.h	8 Nov 2004 23:00:20 -0000
@@ -3585,7 +3585,6 @@ extern int simple_cst_list_equal (tree, 
 extern void dump_tree_statistics (void);
 extern void expand_function_end (void);
 extern void expand_function_start (tree);
-extern void expand_pending_sizes (tree);
 extern void recompute_tree_invarant_for_addr_expr (tree);
 extern bool is_global_var (tree t);
 extern bool needs_to_live_in_memory (tree);
@@ -3614,11 +3613,9 @@ extern void init_function_for_compilatio
 extern void allocate_struct_function (tree);
 extern void init_function_start (tree);
 extern bool use_register_for_decl (tree);
-extern void assign_parms (tree);
 extern void setjmp_vars_warning (tree);
 extern void setjmp_args_warning (void);
 extern void init_temp_slots (void);
-extern void combine_temp_slots (void);
 extern void free_temp_slots (void);
 extern void pop_temp_slots (void);
 extern void push_temp_slots (void);

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