diff options
Diffstat (limited to 'gcc/genpeep.c')
-rw-r--r-- | gcc/genpeep.c | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/gcc/genpeep.c b/gcc/genpeep.c index 7b02160d7a8..9b6c4920e77 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -23,6 +23,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; @@ -46,9 +47,6 @@ struct link int vecelt; }; -void fatal PVPROTO ((const char *, ...)) - ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; - static int max_opno; /* Number of operands used in current peephole definition. */ @@ -409,27 +407,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, "genpeep: "); - vfprintf (stderr, format, ap); - va_end (ap); - fprintf (stderr, "\n"); - exit (FATAL_EXIT_CODE); -} - int main (argc, argv) int argc; @@ -441,6 +418,7 @@ main (argc, argv) max_opno = -1; + progname = "genpeep"; obstack_init (rtl_obstack); if (argc <= 1) |