This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gengtype improvements for plugins. patch 1/N
- From: Basile Starynkevitch <basile at starynkevitch dot net>
- To: jeremie dot salvucci at free dot fr
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 28 Aug 2010 18:41:05 +0200
- Subject: Re: gengtype improvements for plugins. patch 1/N
- References: <1283012591.3067.17.camel@glinka>
- Reply-to: basile at starynkevitch dot net
On Sat, 2010-08-28 at 18:23 +0200, Basile Starynkevitch wrote:
> Hello All,
>
> [join work with Jeremie Salvucci]
>
> Attached is the first of a series of patches for gengtype improvements,
> notably serialization of state required for plugins and minor cleanups.
>
> I believe this patch is similar to the one we have sent a few weeks ago,
> talking into account the remarks.
>
> gcc/ChangeLog entry.
Sorry the ChangeLog entry for the patch I have just sent is incomplete
(quilt did not produce the good diff and I commented quilt's diff, not
the good one sent before).
Better gcc/ChangeLog entry is
2010-08-28 Jeremie Salvucci <jeremie.salvucci@free.fr>,
Basile Starynkevitch <basile@starynkevitch.net>
* gengtype.c: Added #include of getopt.h & version.h. Moved the
include of gengtype.h
(lang_bitmap, struct outf, outf_p, output_file)
(inputlist, output_files, header_file, plugin_output_filename)
(srcdir, srcdir_len, do_dump): definitions moved to gengtype.c,
and variables declared here.
(read_state_filename, write_state_filename, do_debug): New
declarations.
(gengtype_long_options): Added new static variable.
(print_usage): Added new function.
(print_version): Added new function.
(parse_program_options): Added new function.
(main): use parse_program_options, cleaned up a bit. Added stubs
for read & write of state.
* gengtype.h: Moved many things from gengtype.c to here.
(outf, outf_p, output_files, header_file, srcdir, srcdir_len)
(do_dump): Moved variables from gengtype.c
(read_state_filename, write_state_filename, do_debug): Added variables.
(dbgprintf): Added conditional macro.
* Makefile.in (build/version.o): Added target.
(build/gengtype): Link with it.
(s-gtype): Run gengtype with new program arguments.
Regards
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***