diff options
Diffstat (limited to 'gcc/genflags.c')
-rw-r--r-- | gcc/genflags.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/genflags.c b/gcc/genflags.c index bd3a983..916519e 100644 --- a/gcc/genflags.c +++ b/gcc/genflags.c @@ -195,6 +195,8 @@ xrealloc (old, size) return ptr; } +extern int main PROTO ((int, char **)); + int main (argc, argv) int argc; @@ -220,7 +222,7 @@ main (argc, argv) if (infile == 0) { perror (argv[1]); - exit (FATAL_EXIT_CODE); + return (FATAL_EXIT_CODE); } printf ("/* Generated automatically by the program `genflags'\n\ @@ -271,15 +273,13 @@ from the machine description file `md'. */\n\n"); printf ("#endif /* NO_MD_PROTOTYPES */\n"); fflush (stdout); - exit (ferror (stdout) != 0 ? FATAL_EXIT_CODE : SUCCESS_EXIT_CODE); - /* NOTREACHED */ - return 0; + return (ferror (stdout) != 0 ? FATAL_EXIT_CODE : SUCCESS_EXIT_CODE); } /* Define this so we can link with print-rtl.o to get debug_rtx function. */ const char * get_insn_name (code) - int code; + int code ATTRIBUTE_UNUSED; { return NULL; } |