summaryrefslogtreecommitdiff
path: root/gcc/genconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genconfig.c')
-rw-r--r--gcc/genconfig.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/gcc/genconfig.c b/gcc/genconfig.c
index 10bf89c154b..bbe707cf029 100644
--- a/gcc/genconfig.c
+++ b/gcc/genconfig.c
@@ -24,6 +24,7 @@ Boston, MA 02111-1307, USA. */
#include "system.h"
#include "rtl.h"
#include "obstack.h"
+#include "errors.h"
static struct obstack obstack;
struct obstack *rtl_obstack = &obstack;
@@ -49,9 +50,6 @@ static int max_insns_per_split = 1;
static int clobbers_seen_this_insn;
static int dup_operands_seen_this_insn;
-void fatal PVPROTO ((const char *, ...))
- ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
-
static void walk_insn_part PROTO((rtx, int, int));
static void gen_insn PROTO((rtx));
static void gen_expand PROTO((rtx));
@@ -270,27 +268,6 @@ xrealloc (old, size)
return ptr;
}
-void
-fatal VPROTO ((const char *format, ...))
-{
-#ifndef ANSI_PROTOTYPES
- const char *format;
-#endif
- va_list ap;
-
- VA_START (ap, format);
-
-#ifndef ANSI_PROTOTYPES
- format = va_arg (ap, const char *);
-#endif
-
- fprintf (stderr, "genconfig: ");
- vfprintf (stderr, format, ap);
- va_end (ap);
- fprintf (stderr, "\n");
- exit (FATAL_EXIT_CODE);
-}
-
int
main (argc, argv)
int argc;
@@ -300,6 +277,7 @@ main (argc, argv)
FILE *infile;
register int c;
+ progname = "genconfig";
obstack_init (rtl_obstack);
if (argc <= 1)