From f9942f4e14ff2f47c29638078db93c0ba8e7b54e Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 3 Aug 2004 23:30:45 +0000 Subject: gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. * 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. From-SVN: r85511 --- gcc/genattrtab.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'gcc/genattrtab.c') diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index f1bbaf5..fde4933 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -4407,9 +4407,6 @@ main (int argc, char **argv) progname = "genattrtab"; - if (argc <= 1) - fatal ("no input file name"); - if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE) return (FATAL_EXIT_CODE); -- cgit v1.1