gengtype plugin improvement last4round -patch 4 [filerules]
Basile Starynkevitch
basile@starynkevitch.net
Sun Nov 21 15:37:00 GMT 2010
Hello,
[join work by Basile Starynkevitch & Jeremie Salvucci]
References:
http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01711.html
http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01743.html
http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00780.html
The attached patch relative to trunk rev167000 adds a regular
expression file rules machinery to compute the output file name for a
given input file. More detailed explanations are in the above
referenced messages and inside the patch.
########## gcc/ChangeLog entry ###########
2010-11-21 Jeremie Salvucci <jeremie.salvucci@free.fr>
Basile Starynkevitch <basile@starynkevitch.net>
* gengtype.c: Include xregex.h and obstack.h
Added comments about role of get_output_file_with_visibility and
our regexpr machinery.
(frul_actionrout_t, struct file_rule_st): New.
(hader_dot_h_frul, source_dot_c_frul): New functions.
(NULL_REGEX, NULL_FRULACT): New.
(files_rules): New.
(matching_file_name_substitute): New function.
(get_output_file_with_visibility): Updated comments and rewritten
to use the new files_rules machinery.
* Makefile.in (XREGEX_H): Added variable.
(build/gengtype.o): Added dependencies for xregex.h and obstack.h
#######################
Bootstrapped on x86_64-unknown-linux-gnu (Debian/Sid/AMD64) with
'/usr/src/Lang/gcc-trunk-bstarynk/configure' '--enable-plugins'
'--program-suffix=-plaintrunk' '--enable-maintainer-mode'
'--enable-checks=tree,gc' '--enable-bootstrap' '--disable-multilib'
'--enable-version-specific-runtime-libs' 'CFLAGS=-g -O'
'--enable-languages=c,c++,lto,objc'
Ok for trunk?
Cheers
--
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} ***
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gengtype-filerules-r167000.diff
Type: text/x-diff
Size: 18768 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101121/f3f2899e/attachment.bin>
More information about the Gcc-patches
mailing list