summaryrefslogtreecommitdiff
path: root/gcc/genflags.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-15 14:13:50 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-15 14:13:50 +0000
commit947491b7b25a9c868ce55bdd5e55801080de8327 (patch)
treebe3cd0dcc32b5bcf91e4c2591edf879592b85875 /gcc/genflags.c
parent9ea8343030b2c1643c046e56a4212b3ba903134c (diff)
downloadgcc-947491b7b25a9c868ce55bdd5e55801080de8327.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29434 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genflags.c')
-rw-r--r--gcc/genflags.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/genflags.c b/gcc/genflags.c
index bd3a983fbfd..916519ed254 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;
}