From 2a611d21ac06af33998ac48328847e23ded6b59d Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 16 Apr 1999 19:52:44 +0000 Subject: system.h: Always prototype abort. 1999-04-16 22:44 -0400 Zack Weinberg * system.h: Always prototype abort. Prototype fatal. Define abort to call fatal, not fprintf/exit. Define a stub macro for trim_filename. * toplev.c: Define DIR_SEPARATOR. (trim_filename): New function. * toplev.h: Prototype trim_filename, and #undef system.h's stub. * gcc.c, genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c, genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c: Make fatal non-static. * gcov.c, gengenrtl.c, protoize.c: #undef abort after including system.h. * config/i386/dgux.h, config/m68k/xm-amix.h: Remove stale code relating to abort. From-SVN: r26511 --- gcc/genrecog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/genrecog.c') diff --git a/gcc/genrecog.c b/gcc/genrecog.c index f135947..546f922 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -193,7 +193,7 @@ static void write_tree PROTO((struct decision *, const char *, struct decision *, int, enum routine_type)); static void change_state PROTO((const char *, const char *, int)); -static void fatal PVPROTO((const char *, ...)) +void fatal PVPROTO((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; void fancy_abort PROTO((void)) ATTRIBUTE_NORETURN; @@ -1697,7 +1697,7 @@ xmalloc (size) return val; } -static void +void fatal VPROTO ((const char *format, ...)) { #ifndef ANSI_PROTOTYPES -- cgit v1.1