From 04dad37c39e77274ff30873e2c8a205c764df5ce Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Sun, 9 Sep 2018 07:42:17 +0000 Subject: [PATCH] [PATCH] internalize a driver fn https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00462.html * gcc.h (pfatal_with_name): Don't declare here. * gcc.c (pfatal_with_name): Make static. From-SVN: r264178 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 1 + gcc/gcc.h | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index efed6450017..e8b623711f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-09-09 Nathan Sidwell + + * gcc.h (pfatal_with_name): Don't declare here. + * gcc.c (pfatal_with_name): Make static. + 2018-09-09 Xianmiao Qu * config/csky/csky.md (*cskyv2_adddi3, *cskyv2_subdi3): Add diff --git a/gcc/gcc.c b/gcc/gcc.c index 780d4859ef3..80667fdb160 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -373,6 +373,7 @@ static int default_arg (const char *, int); 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); diff --git a/gcc/gcc.h b/gcc/gcc.h index a7606183393..7bfa387c523 100644 --- a/gcc/gcc.h +++ b/gcc/gcc.h @@ -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. */ -- 2.30.2