diff options
author | Andreas Jaeger <aj@gcc.gnu.org> | 2005-05-15 19:06:19 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2005-05-15 19:06:19 +0200 |
commit | 099ff66cd205b20f5040360015af23b9b11502cf (patch) | |
tree | 105f3f50af231190d4d21a7866f8ff8b78d1edc0 /gcc/gcc.c | |
parent | 2acf977b18f6447a5745f90f7cd338902252e1fa (diff) | |
download | gcc-099ff66cd205b20f5040360015af23b9b11502cf.zip gcc-099ff66cd205b20f5040360015af23b9b11502cf.tar.gz gcc-099ff66cd205b20f5040360015af23b9b11502cf.tar.bz2 |
* gcc.c (pfatal_pexecute): Remove unused local function.
From-SVN: r99732
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -328,7 +328,6 @@ 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_pexecute (const char *, const char *) ATTRIBUTE_NORETURN; static void notice (const char *, ...) ATTRIBUTE_PRINTF_1; static void display_help (void); static void add_preprocessor_option (const char *, int); @@ -6706,24 +6705,6 @@ perror_with_name (const char *name) error ("%s: %s", name, xstrerror (errno)); } -static void -pfatal_pexecute (const char *errmsg_fmt, const char *errmsg_arg) -{ - if (errmsg_arg) - { - int save_errno = errno; - - /* Space for trailing '\0' is in %s. */ - char *msg = xmalloc (strlen (errmsg_fmt) + strlen (errmsg_arg)); - sprintf (msg, errmsg_fmt, errmsg_arg); - errmsg_fmt = msg; - - errno = save_errno; - } - - pfatal_with_name (errmsg_fmt); -} - /* Output an error message and exit. */ void |