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] varasm.c: Make some functions static.


Hi,

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

Kazu Hirata

2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>

	* varasm.c (get_named_section_flags, decl_tls_model): Make
	them static.
	* output.h: Remove the prototype for get_named_section_flags.
	* tree.h: Remove the prototype for decl_tls_model.

Index: output.h
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/output.h,v
retrieving revision 1.147
diff -u -d -p -r1.147 output.h
--- output.h	27 Oct 2004 01:29:39 -0000	1.147
+++ output.h	11 Nov 2004 19:04:14 -0000
@@ -476,7 +476,6 @@ extern void no_asm_to_stream (FILE *);
 #define SECTION_NOTYPE	 0x80000	/* don't output @progbits */
 #define SECTION_MACH_DEP 0x100000	/* subsequent bits reserved for target */
 
-extern unsigned int get_named_section_flags (const char *);
 extern bool set_named_section_flags (const char *, unsigned int);
 #define named_section_flags(NAME, FLAGS) \
   named_section_real((NAME), (FLAGS), /*decl=*/NULL_TREE)
Index: tree.h
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/tree.h,v
retrieving revision 1.650
diff -u -d -p -r1.650 tree.h
--- tree.h	9 Nov 2004 19:19:41 -0000	1.650
+++ tree.h	11 Nov 2004 19:04:52 -0000
@@ -3716,7 +3716,6 @@ extern void make_decl_rtl (tree);
 extern void make_decl_one_only (tree);
 extern int supports_one_only (void);
 extern void variable_section (tree, int);
-enum tls_model decl_tls_model (tree);
 extern void resolve_unique_section (tree, int, int);
 extern void mark_referenced (tree);
 extern void mark_decl_referenced (tree);
Index: varasm.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/varasm.c,v
retrieving revision 1.458
diff -u -d -p -r1.458 varasm.c
--- varasm.c	28 Oct 2004 20:52:42 -0000	1.458
+++ varasm.c	11 Nov 2004 19:04:46 -0000
@@ -350,7 +350,7 @@ in_named_entry_hash (const void *p)
    set of flags for a section to have, so 0 does not mean that the section
    has not been seen.  */
 
-unsigned int
+static unsigned int
 get_named_section_flags (const char *section)
 {
   struct in_named_entry **slot;
@@ -4476,7 +4476,7 @@ init_varasm_once (void)
   const_alias_set = new_alias_set ();
 }
 
-enum tls_model
+static enum tls_model
 decl_tls_model (tree decl)
 {
   enum tls_model kind;


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