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]

make opts.c:add_input_filename () static


Okay for mainline?

2004-11-18  Ben Elliston  <bje@au.ibm.com>

	* opts.h (add_input_filename): Remove extern declaration.
	* opts.c (add_input_filename): Remove.

Index: opts.h
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/opts.h,v
retrieving revision 1.17
diff -u -p -r1.17 opts.h
--- opts.h      15 Oct 2004 14:47:09 -0000      1.17
+++ opts.h      17 Nov 2004 23:52:02 -0000
@@ -22,7 +22,6 @@ Software Foundation, 59 Temple Place - S
 #define GCC_OPTS_H
 
 extern void decode_options (unsigned int argc, const char **argv);
-extern void add_input_filename (const char *filename);
 
 struct cl_option
 {
Index: opts.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/opts.c,v
retrieving revision 1.87
diff -u -p -r1.87 opts.c
--- opts.c      9 Nov 2004 10:12:18 -0000       1.87
+++ opts.c      17 Nov 2004 23:52:02 -0000
@@ -39,6 +39,8 @@ Software Foundation, 59 Temple Place - S
 #include "insn-attr.h"         /* For INSN_SCHEDULING.  */
 #include "target.h"
 
+static void add_input_filename (const char *filename);
+
 /* Value of the -G xx switch, and whether it was passed or not.  */
 unsigned HOST_WIDE_INT g_switch_value;
 bool g_switch_set;
@@ -420,7 +422,7 @@ handle_options (unsigned int argc, const
 }
 
 /* Handle FILENAME from the command line.  */
-void
+static void
 add_input_filename (const char *filename)
 {
   num_in_fnames++;


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