diff mbox series

internalize a driver fn

Message ID 343f7c19-4d64-6176-0ccb-ed774ffcdc12@acm.org
State New
Headers show
Series internalize a driver fn | expand

Commit Message

Nathan Sidwell Sept. 9, 2018, 7:40 a.m. UTC
I discovered pfatal_with_name is only used inside gcc.c.  Making it 
static as obvious.

nathan
diff mbox series

Patch

2018-09-09  Nathan Sidwell  <nathan@acm.org>

	* gcc.h (pfatal_with_name): Don't declare here.
	* gcc.c (pfatal_with_name): Make static.

Index: gcc.c
===================================================================
--- gcc.c	(revision 264172)
+++ gcc.c	(working copy)
@@ -373,6 +373,7 @@  static int default_arg (const char *, in
 static void set_multilib_dir (void);
 static void print_multilib_info (void);
 static void perror_with_name (const char *);
+static void pfatal_with_name (const char *) ATTRIBUTE_NORETURN;
 static void display_help (void);
 static void add_preprocessor_option (const char *, int);
 static void add_assembler_option (const char *, int);
Index: gcc.h
===================================================================
--- gcc.h	(revision 264172)
+++ gcc.h	(working copy)
@@ -71,7 +71,6 @@  struct spec_function
 /* These are exported by gcc.c.  */
 extern int do_spec (const char *);
 extern void record_temp_file (const char *, int, int);
-extern void pfatal_with_name (const char *) ATTRIBUTE_NORETURN;
 extern void set_input (const char *);
 
 /* Spec files linked with gcc.c must provide definitions for these.  */