Hello All, [join work by Basile Starynkevitch & Jeremie Salvucci] References: http://gcc.gnu.org/ml/gcc-patches/2010-08/msg02060.html http://gcc.gnu.org/ml/gcc-patches/2010-09/msg00616.html http://gcc.gnu.org/ml/gcc-patches/2010-09/msg00663.html http://gcc.gnu.org/ml/gcc-patches/2010-08/msg02063.html http://gcc.gnu.org/ml/gcc-patches/2010-08/msg02065.html http://gcc.gnu.org/ml/gcc-patches/2010-08/msg02068.html http://gcc.gnu.org/ml/gcc-patches/2010-09/msg00983.html http://gcc.gnu.org/ml/gcc-patches/2010-08/msg02069.html http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01150.html http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01153.html http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01713.html The 6th part [wstate] of our patch series (thirdround) is a slightly improved version of http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01150.html by adding comments notably taking into account Laurynas remarks in http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01151.html & http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01153.html diff -u -p -N $(svn stat . |awk '/[AM]/{print $2}') \ --from-file ../thirdround_05_typedopt/ > \ $HOME/Gengtype_Thirdround/patch6_wstate-relto05.diff #################### gcc/ChangeLog entry relative to patch piece 5 [typedopt] 2010-09-21 Jeremie Salvucci Basile Starynkevitch * gengtype-state.c: Added new file. * gengtype.c: (type_count): New static variable. (new_structure, find_structure, find_param_structure) (create_pointer, create_array): Use type_count for initializing state_number field of types. (main): Initialize state_number in predefined types. Call read_state and write_state appropriately. Show the type_count when verbose. * gengtype.h: Updated comment about per-language directories. (read_state, write_state): New declarations. * Makefile.in (MOSTLYCLEANFILES): Added gtype.state. (GENGTYPE_FLAGS): New variable. (s-gtype): Runs gengtype twice, once to write the gtype.state, once to read it. (build/gengtype-state.o): New target. (build/gengtype): Use it. (mostlyclean): Remove gtype.state ################################################################ Also, how should the gengtype program be installed? Perhaps it should be named gcc-gengtype? I still need help on these minor issues, in particular as ways to patch gcc/Makefile.in.... There has been some discussions & suggestions, but I was not able to imagine a gcc/Makefile.in patch from them. I confess that I don't understand all of gcc/Makefile.in in particular the installations tricks. I am as usual attaching the cumulated patch w.r.t. trunk 164437. Ok for trunk? Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***