diff options
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index 71b2dc0f0b0..9a3357adb9a 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -219,6 +219,8 @@ xrealloc (old, size) return ptr; } +extern int main PROTO ((int, char **)); + int main (argc, argv) int argc; @@ -252,7 +254,7 @@ main (argc, argv) if (infile == 0) { perror (argv[1]); - exit (FATAL_EXIT_CODE); + return (FATAL_EXIT_CODE); } printf ("/* Generated automatically by the program `genattr'\n\ @@ -404,15 +406,13 @@ from the machine description file `md'. */\n\n"); printf("#define ATTR_FLAG_very_unlikely\t0x20\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; } |