diff options
Diffstat (limited to 'gcc/genconfig.c')
-rw-r--r-- | gcc/genconfig.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/genconfig.c b/gcc/genconfig.c index 94e2653a392..3249c3483e2 100644 --- a/gcc/genconfig.c +++ b/gcc/genconfig.c @@ -277,6 +277,8 @@ xrealloc (old, size) return ptr; } +extern int main PROTO ((int, char **)); + int main (argc, argv) int argc; @@ -296,7 +298,7 @@ main (argc, argv) if (infile == 0) { perror (argv[1]); - exit (FATAL_EXIT_CODE); + return (FATAL_EXIT_CODE); } printf ("/* Generated automatically by the program `genconfig'\n\ @@ -365,15 +367,13 @@ from the machine description file `md'. */\n\n"); printf ("#define HAVE_peephole2\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; } |