gengtype.c: Don't include gtyp-gen.h.
authorZack Weinberg <zackw@panix.com>
Mon, 26 Mar 2007 21:07:27 +0000 (21:07 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 26 Mar 2007 21:07:27 +0000 (21:07 +0000)
commit11a675992afb01354e8d8331087177c25e97a7a6
tree194b565efb539d208f63cc21e757c0f303b1a775
parent065ae6117579cc9a089c238207b42f5a1470423a
gengtype.c: Don't include gtyp-gen.h.

* gengtype.c: Don't include gtyp-gen.h.
(srcdir): Declare here.
(base_files, lang_dir_names): Allocate dynamically.
(gt_files, num_gt_files, num_lang_dirs): New globals.
(measure_input_list, read_input_line, read_input_list)
(set_lang_bitmap): New functions.
(get_base_file_bitmap): Rename get_lang_bitmap and drastically
simplify, relying on read_input_list to set up the bitmaps.
(main): Arguments are no longer unused.  Check for correct number
of command line arguments, set srcdir and srcdir_len, then call
read_input_list, before doing anything else.  No need to worry
about duplicates in main loop.
* configure.ac: Simplify the calculation of all_gtfiles.
Put language tags in there.  Don't set or substitute
all_gtfiles_files_langs or all_gtfiles_files_frags.
* Makefile.in: Revamp the way gengtype is invoked, now that it
takes a file on its command line with a much simpler format.
Remove or replace with gtyp-input.list all references to gtyp-gen.h.
(GTFILES): Remove duplicates and C source files.
* c-config-lang.in, cp/config-lang.in, objc/config-lang.in
* objcp/config-lang.in: Add c-pragma.h to gtfiles.
* configure: Regenerate.

From-SVN: r123234
configure
gcc/ChangeLog
gcc/Makefile.in
gcc/c-config-lang.in
gcc/configure.ac
gcc/cp/config-lang.in
gcc/gengtype.c
gcc/objc/config-lang.in
gcc/objcp/config-lang.in