[Trunk] patch for GNU-friendly gengtype

jeremie.salvucci@free.fr jeremie.salvucci@free.fr
Tue Jun 22 15:24:00 GMT 2010


With Basile, we decided to not use version.o in build/. as Laurynas suggested we print usage and version on stdout.

gcc/Changelog entry :
2010-06-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
	    Basile Starynkevitch  <basile@starynkevitch.net>

	* Makefile.in (gengtype.o): Pass version information strings as
	-DGENGTYPE_* preprocessor flags.

	* gengtype.c: Include getopt.h.
	(do_dump): Added static variable moved from main.
	(inputlist): Ditto.
	(plugin_output_filename): Ditto.
	(gengtype_long_options): New variable.
	(print_usage): Added function.
	(bug_report_url, version_string, pkgversion_string): Added variable.
	(print_version): Added function.
	(parse_program_options): Added new function.
	(main): Changed program invocation convention. Call
	parse_program_options. Removed old argument parsing.

Attached the patch to trunk revision 161188.

Ok for trunk ?

-- 
Jérémie salvucci
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gengtype_161188.diff
Type: text/x-patch
Size: 7844 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100622/b917c6e3/attachment.bin>


More information about the Gcc-patches mailing list