gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args.
authorZack Weinberg <zack@gcc.gnu.org>
Tue, 3 Aug 2004 23:30:45 +0000 (23:30 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 3 Aug 2004 23:30:45 +0000 (23:30 +0000)
commitf9942f4e14ff2f47c29638078db93c0ba8e7b54e
tree21207c8bff549bcb22ce42b1506218236d280593
parent9cbe78fbeb3898ab7f59faba4f027f9fd0a1a4ee
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
16 files changed:
gcc/ChangeLog
gcc/genattr.c
gcc/genattrtab.c
gcc/gencodes.c
gcc/genconditions.c
gcc/genconfig.c
gcc/genconstants.c
gcc/genemit.c
gcc/genextract.c
gcc/genflags.c
gcc/genopinit.c
gcc/genoutput.c
gcc/genpeep.c
gcc/genrecog.c
gcc/gensupport.c
gcc/gensupport.h