diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-03 23:30:45 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-03 23:30:45 +0000 |
commit | ba08da2c50d6a9089afa00750d0c676c740582a8 (patch) | |
tree | 21207c8bff549bcb22ce42b1506218236d280593 /gcc/genconditions.c | |
parent | 0568d4eade0cb7402f52c74a7a05cbf8f385dd59 (diff) | |
download | gcc-ba08da2c50d6a9089afa00750d0c676c740582a8.tar.gz |
* 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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85511 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genconditions.c')
-rw-r--r-- | gcc/genconditions.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/genconditions.c b/gcc/genconditions.c index 94a6bc43929..3f05706f46c 100644 --- a/gcc/genconditions.c +++ b/gcc/genconditions.c @@ -188,10 +188,7 @@ main (int argc, char **argv) progname = "genconditions"; - if (argc <= 1) - fatal ("No input file name."); - - if (init_md_reader (argv[1]) != SUCCESS_EXIT_CODE) + if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE) return (FATAL_EXIT_CODE); condition_table = htab_create (1000, hash_c_test, cmp_c_test, NULL); |