* [PATCH] internalize a driver fn
@ 2018-09-09 7:41 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2018-09-09 7:41 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
I discovered pfatal_with_name is only used inside gcc.c. Making it
static as obvious.
nathan
--
Nathan Sidwell
[-- Attachment #2: pf.diff --]
[-- Type: text/x-patch, Size: 1151 bytes --]
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-09 7:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-09 7:41 [PATCH] internalize a driver fn Nathan Sidwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).