]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/gengtype.c
gengtype.c: Include getopt.h and version.h.
authorJeremie Salvucci <jeremie.salvucci@free.fr>
Thu, 14 Oct 2010 13:56:12 +0000 (15:56 +0200)
committerBasile Starynkevitch <bstarynk@gcc.gnu.org>
Thu, 14 Oct 2010 13:56:12 +0000 (13:56 +0000)
commitf8ed6dc529088cab9d586e9b3f06492e27f862fc
tree1d3285b2f57ab16f7f07a313761dda7c317de69a
parent560d6bd5b53d6e9b92cf25b9dcb53590f830c45e
gengtype.c: Include getopt.h and version.h.

2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
    Basile Starynkevitch  <basile@starynkevitch.net>

* gcc/gengtype.c:  Include getopt.h and version.h.

(lang_bitmap, struct outf, outf_p)
(get_output_file_with_visibility, oprintf): Definitions moved to
gengtype.h
(output_files, header_file, srcdir, srcdir_len, this_file)
(do_dump): No more static variables.
(do_debug): New.
(dbgprint_count_type_at): Added new function.
(gengtype_long_options): New.
(print_usage, print_version, parse_program_options): New.
(main): Call parse_program_options, and removed old option
handling code.  Added some debug output.

* gcc/gengtype.h:  Updated copyright year.
(lang_bitmap, struct outf, outf_p, header_file, oprintf)
(get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
Moved from gengtype.c to here.
(do_debug, read_state_filename, write_state_filename): New
variables. (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.

* gcc/Makefile.in:
(REVISION): Always defined.
(version.o): Removed ifdef REVISION_c.
(s-gtype): Pass arguments to build/gengtype program.
(build/version.o): Added building rule.
(build/gengtype$(build_exeext)): Added build/version.o.

Co-Authored-By: Basile Starynkevitch <basile@starynkevitch.net>
From-SVN: r165470
gcc/ChangeLog
gcc/Makefile.in
gcc/gengtype.c
gcc/gengtype.h