aboutsummaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-09-15 14:13:50 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-09-15 14:13:50 +0000
commitc1b59dce97f012deee1628e3da980c4287ef5d3d (patch)
treebe3cd0dcc32b5bcf91e4c2591edf879592b85875 /gcc/genrecog.c
parent7adfcfed370b82158b6351a7854baa57a69b8a08 (diff)
downloadgcc-c1b59dce97f012deee1628e3da980c4287ef5d3d.zip
gcc-c1b59dce97f012deee1628e3da980c4287ef5d3d.tar.gz
gcc-c1b59dce97f012deee1628e3da980c4287ef5d3d.tar.bz2
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
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 7fc12c8..0d6a2d1 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -1721,6 +1721,8 @@ write_tree (tree, prevpos, afterward, initial, type)
name_prefix = "recog";
call_suffix = ", pnum_clobbers";
break;
+ default:
+ abort();
}
if (! initial && tree->subroutine_number > 0)
{
@@ -1868,6 +1870,8 @@ xmalloc (size)
return val;
}
+extern int main PROTO ((int, char **));
+
int
main (argc, argv)
int argc;
@@ -1892,7 +1896,7 @@ main (argc, argv)
if (infile == 0)
{
perror (argv[1]);
- exit (FATAL_EXIT_CODE);
+ return (FATAL_EXIT_CODE);
}
next_insn_code = 0;
@@ -1987,9 +1991,7 @@ from the machine description file `md'. */\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. */