aboutsummaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2004-08-03 23:30:45 +0000
committerZack Weinberg <zack@codesourcery.com>2004-08-03 23:30:45 +0000
commit442d2c26e4b5ac1bc287a41ef9309dfe38b8f9da (patch)
tree21207c8bff549bcb22ce42b1506218236d280593 /gcc/genrecog.c
parent0767f7acdf4337f70d88e65db49335e5654625d9 (diff)
* gensupport.c (init_md_reader_args_cb): Renamed from
init_md_reader_args. Add third option, callback function for parsing program-specific options. Add diagnosis of incorrect number of input files. (init_md_reader): Fold into init_md_reader_args_cb. (init_md_reader_args): Now a thin wrapper around init_md_reader_args_cb. * gensupport.h: Update prototypes. * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c * genrecog.c: No need to diagnose lack of an input file; init_md_reader_args will handle it. * genconditions.c: Likewise, and use init_md_reader_args. * genconstants.c: Likewise, and no need to call read_md_rtx. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@85511 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 2694e839383..f1bce6c78a5 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -2636,9 +2636,6 @@ main (int argc, char **argv)
memset (&split_tree, 0, sizeof split_tree);
memset (&peephole2_tree, 0, sizeof peephole2_tree);
- if (argc <= 1)
- fatal ("no input file name");
-
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);