From c1b59dce97f012deee1628e3da980c4287ef5d3d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Wed, 15 Sep 1999 14:13:50 +0000 Subject: genattr.c (main): Add extern prototype. * genattr.c (main): Add extern prototype. Call return, not exit. * genattrtab.c (main): Likewise. * gencheck.c (main): Likewise. * gencodes.c (main): Likewise. * genconfig.c (main): Likewise. * genemit.c (main): Likewise. * genextract.c (main): Likewise. * genflags.c (main): Likewise. * gengenrtl.c (main): Likewise. * genopinit.c (main): Likewise. * genoutput.c (main): Likewise. * genpeep.c (main): Likewise. * genrecog.c (main): Likewise. * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED. * genattrtab.c (get_insn_name): Likewise. * gencodes.c (get_insn_name): Likewise. * genconfig.c (get_insn_name): Likewise. * genemit.c (get_insn_name): Likewise. * genextract.c (get_insn_name): Likewise. * genflags.c (get_insn_name): Likewise. * genopinit.c (get_insn_name): Likewise. * genpeep.c (get_insn_name): Likewise. * gencheck.c (usage): Add static prototype. * genextract.c (print_path): Constify a char*. * genopinit.c (optabs): Likewise. * genoutput.c (operand_data, data, output_predicate_decls, compare_operands): Likewise. * genrecog.c (write_tree): Add default case in switch. From-SVN: r29434 --- gcc/genextract.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gcc/genextract.c') diff --git a/gcc/genextract.c b/gcc/genextract.c index eeaf52b..7ce5cbf 100644 --- a/gcc/genextract.c +++ b/gcc/genextract.c @@ -95,7 +95,7 @@ static struct code_ptr *peepholes; static void gen_insn PROTO ((rtx)); static void walk_rtx PROTO ((rtx, const char *)); -static void print_path PROTO ((char *)); +static void print_path PROTO ((const char *)); static void gen_insn (insn) @@ -300,7 +300,7 @@ walk_rtx (x, path) static void print_path (path) - char *path; + const char *path; { register int len = strlen (path); register int i; @@ -375,6 +375,8 @@ xstrdup (input) return output; } +extern int main PROTO ((int, char **)); + int main (argc, argv) int argc; @@ -396,7 +398,7 @@ main (argc, argv) if (infile == 0) { perror (argv[1]); - exit (FATAL_EXIT_CODE); + return (FATAL_EXIT_CODE); } /* Assign sequential codes to all entries in the machine description @@ -520,15 +522,13 @@ from the machine description file `md'. */\n\n"); printf (" }\n}\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; } -- cgit v1.1