aboutsummaryrefslogtreecommitdiff
path: root/gcc/genattrtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r--gcc/genattrtab.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index e5a405d..f0ba4de 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -5955,6 +5955,8 @@ write_const_num_delay_slots ()
}
+extern int main PROTO ((int, char **));
+
int
main (argc, argv)
int argc;
@@ -5994,7 +5996,7 @@ main (argc, argv)
if (infile == 0)
{
perror (argv[1]);
- exit (FATAL_EXIT_CODE);
+ return (FATAL_EXIT_CODE);
}
/* Set up true and false rtx's */
@@ -6145,15 +6147,13 @@ from the machine description file `md'. */\n\n");
write_length_unit_log ();
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;
}