aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-05-07 11:44:09 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-05-07 11:44:09 +0000
commit76b4b31ead81f9c957962ab76df73c59a0650f14 (patch)
tree5f6e3c811759ee18df724c996ca8d1989e3b49b7 /gcc/gcc.c
parentbebc46636dadf957cf8d1eac2fe1e73c292e9983 (diff)
downloadgcc-76b4b31ead81f9c957962ab76df73c59a0650f14.zip
gcc-76b4b31ead81f9c957962ab76df73c59a0650f14.tar.gz
gcc-76b4b31ead81f9c957962ab76df73c59a0650f14.tar.bz2
Handle missing vfprintf() & _doprnt() functions with linked in modules,
plus do some general cleanup of variable argument handling. * aclocal.m4 (GCC_FUNC_VFPRINTF_DOPRNT): New macro. * configure.in: Add a call to GCC_FUNC_VFPRINTF_DOPRNT. (AC_CHECK_HEADERS): Remove unused check for varargs.h,sys/varargs.h. (AC_CHECK_FUNCS): Remove unused check for vprintf. * Makefile.in: Add support for linking in vfprintf.c and doprint.c. (cccp.o): Depend on gansidecl.h. (cexp.o): Likewise. * cccp.c: Convert from using PRINTF_ALIST/PRINTF_DCL to VPROTO as per the rest of gcc source. * cexp.y: Likewise. Include gansidecl.h and remove all code made redundant. * cccp.c: Remove checks for HAVE_VPRINTF and the associated code used when vfprintf is missing. * cexp.y: Likewise. * gcc.c: Likewise. * genattrtab.c: Likewise. * mips-tfile.c: Likewise. * toplev.c: Likewise. * vfprintf.c: New file. * doprint.c: Likewise. From-SVN: r19610
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 57f2f0f..1941aed 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -246,25 +246,15 @@ static void print_multilib_info PROTO((void));
static void pfatal_with_name PROTO((char *));
static void perror_with_name PROTO((char *));
static void pfatal_pexecute PROTO((char *, char *));
-#ifdef HAVE_VPRINTF
static void fatal PVPROTO((char *, ...));
static void error PVPROTO((char *, ...));
-#else
-/* We must not provide any prototype here, even if ANSI C. */
-static void fatal PROTO(());
-static void error PROTO(());
-#endif
void fancy_abort ();
char *xmalloc ();
char *xrealloc ();
#ifdef LANG_SPECIFIC_DRIVER
-#ifdef HAVE_VPRINTF
-extern void lang_specific_driver PROTO ((void (*) (char *, ...), int *, char ***, int *));
-#else
-extern void lang_specific_driver PROTO ((void (*) (), int *, char ***, int *));
-#endif
+extern void lang_specific_driver PROTO ((void (*) PVPROTO((char *, ...)), int *, char ***, int *));
#endif
/* Specs are strings containing lines, each of which (if not blank)
@@ -5048,8 +5038,6 @@ fancy_abort ()
fatal ("Internal gcc abort.");
}
-#ifdef HAVE_VPRINTF
-
/* Output an error message and exit */
static void
@@ -5094,29 +5082,6 @@ error VPROTO((char *format, ...))
fprintf (stderr, "\n");
}
-
-#else /* not HAVE_VPRINTF */
-
-static void
-fatal (msg, arg1, arg2)
- char *msg, *arg1, *arg2;
-{
- error (msg, arg1, arg2);
- delete_temp_files ();
- exit (1);
-}
-
-static void
-error (msg, arg1, arg2)
- char *msg, *arg1, *arg2;
-{
- fprintf (stderr, "%s: ", programname);
- fprintf (stderr, msg, arg1, arg2);
- fprintf (stderr, "\n");
-}
-
-#endif /* not HAVE_VPRINTF */
-
static void
validate_all_switches ()