Re: [PATCH, libiberty] correct md5_process_bytes with unaligned pointers

2011-09-19 Thread Pierre Vittet
Hello, Ping! I would like to get a return on this patch. I don't know quite well the status of libiberty in GNU, please if I must this patch on another mailing list, please say me on which. Thanks! Pierre Vittet

[PATCH, MELT] correct meltgc_string_hex_md5sum_file_sequence

2011-09-19 Thread Pierre Vittet
with a multiple of 64 size, so we can call md5_process_block. We only call md5_process_bytes for the last data. Thanks! Pierre Vittet 2011-09-19 Pierre Vittet pier...@pvittet.com * melt-runtime.c (meltgc_string_hex_md5sum_file_sequence): Concatenate files stream to call md5_process_block

[PATCH, libiberty] correct md5_process_bytes with unaligned pointers

2011-09-16 Thread Pierre Vittet
the code. I searched on google, and it does not looks to be used. Does anyone want it or thing that it should not be removed? Ok for trunk ? Thanks! Pierre Vittet PS: I also write a small gcc plugin, allowing to easily test md5_process_bytes, if can change your environment in a way where

Re: [PATCH, MELT, minor] add a primitive read_strv

2011-08-30 Thread Pierre Vittet
of a strbuf. Pierre Vittet Index: gcc/melt/warmelt-base.melt === --- gcc/melt/warmelt-base.melt (revision 176434) +++ gcc/melt/warmelt-base.melt (working copy) @@ -272,6 +272,11 @@ number $NUM opaque location number $LOC.}# :doc

[PATCH, MELT] add primitive isnull_tree

2011-08-30 Thread Pierre Vittet
Hello, This is a small patch adding primitive isnull_tree (as there is already a primitive isnull_basicblock). Pierre Vittet Index: gcc/melt/xtramelt-ana-base.melt === --- gcc/melt/xtramelt-ana-base.melt (révision 178282

[PATCH, MELT] fixing upgrade-warmelt target

2011-08-27 Thread Pierre Vittet
beyond (but there are still issues. Pierre Vittet Index: melt-build.tpl === --- melt-build.tpl (révision 178131) +++ melt-build.tpl (copie de travail) @@ -579,7 +579,7 @@ ENDFOR melt_translator_file+] [+FOR melt_translator_file

[PATCH, MELT] correct function meltgc_string_hex_md5sum_file_sequence

2011-07-27 Thread Pierre Vittet
Hello, this patch correct the function meltgc_string_hex_md5sum_file_sequence, it now returns the same than cat myfile1 myfile2 ... | md5sum. fread was not correctly used + it looks like you can't mix function md5_process_bytes and md5_process_blocks. Pierre Vittet Index: gcc/melt-runtime.c

[PATCH, MELT, minor] add a primitive read_strv

2011-07-19 Thread Pierre Vittet
Hello, This minor patch add a primitive to get a list of s-expression from a boxed C string of a strbuf. This is only the MELT part, as the called C code was already written. I compiled and test it. Thanks! Pierre Vittet 2011-07-18 Pierre Vittet pier...@pvittet.com * melt/warmelt

Re: [PATCH, MELT] Add PRE_GENERICIZE callback support in MELT

2011-07-16 Thread Pierre Vittet
Right, here is the new version of the patch (with the correct files). I added, a function register_pre_genericize_hook in melt/warmelt-base.melt to be called when we want to register a MELT function to handle the callback, so we don't manually set sysdata_pre_genericize field. Pierre Vittet

[PATCH, MELT] Add PRE_GENERICIZE callback support in MELT

2011-07-15 Thread Pierre Vittet
warmelt-upgrade must be run in order to regenerate generated melt files. The add_pre_genericize_hook patch add a function (in melt-runtime.c) to be called on PLUGIN_PRE_GENERICIZE, which call the closure sysdata_pre_genericize defined by the users. Thanks Pierre Vittet 2011-07-15 Pierre

[PATCH, MELT] new function register_data_handler

2011-07-07 Thread Pierre Vittet
with care, as we can only register a single pragma named melt (maybe we could use another function specially for 4.6 ?). Thanks! Pierre Vittet 2011-07-07 Pierre Vittet pier...@pvittet.com * melt/warmelt-base.melt (register_pragma_handler ): new function. Index: gcc/melt/warmelt-base.melt

Re: C++ mangling, function name to mangled name (or tree)

2011-07-06 Thread Pierre Vittet
an important space complexity. Thanks! Pierre Vittet

Re: [PATCH, MELT] pragma support in MELT

2011-07-03 Thread Pierre Vittet
being registered. I also removed the PRAGMA_BAD macro as it was said to be less readable, and changed malformed pragma warnings into errors. I tested the patch without seing any error or regression. Pierre Vittet 2011-07-03 Pierre Vittet pier...@pvittet.com * melt-runtime.c: include c

[PATCH, MELT] pragma support in MELT

2011-06-24 Thread Pierre Vittet
of arguments as parameters. For GCC=4.6, there is a minimal pragma support, we can handle following pragma: #pragma GCCPLUGIN melt op (arg1,...argN) with only melt as name. ChangeLog: 2011-06-24 Pierre Vittet pier...@pvittet.com * melt-runtime.c (GCC_PRAGMA_BAD): Macro to return an error

[PATCH, MELT] correct meltgc_read_from_val without location

2011-06-24 Thread Pierre Vittet
it doesn't handle correctly the absence of file. This patch correct this, if there is no file, it create a virtual one which is named stringBuffer. Pierre Vittet Index: gcc/melt-runtime.c === --- gcc/melt-runtime.c (revision 175348

[PATCH, MELT] fix minor issue with meltgc_new_split_string

2011-06-21 Thread Pierre Vittet
. I took this opportunity to add a small comment to the function (in the second diff). ChangeLog 2011-06-21 Pierre Vittet pier...@pvittet.com * melt-runtime.c (meltgc_new_split_string): Fix issue. 2011-06-21 Pierre Vittet pier...@pvittet.com * melt-runtime.c

Re: [PATCH] c-pragma: adding a data field to pragma_handler

2011-06-10 Thread Pierre Vittet
thanks! I formatted as you requested. I cannot commit myself as I haven't a write after approval status, maye you can do it, or I can wait my GSOC mentor, Basile Starynkevitch to do this (He mights be busy for a few days). Pierre Vittet Index: gcc/c-family/c-pragma.c

Re: [PATCH] c-pragma: adding a data field to pragma_handler

2011-06-10 Thread Pierre Vittet
I guess this is better now. Changelog (gcc/c-family): 2011-06-10 Pierre Vittet pier...@pvittet.com * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New handler. (gen_pragma_handler): New union. (internal_pragma_handler): New type. (c_register_pragma_with_data

Re: [PATCH] c-pragma: adding a data field to pragma_handler

2011-06-09 Thread Pierre Vittet
You are right, the new version is in the diff. The diff for the test hasn't changed and is in the previous mail. In the previous version of the file, the registered_pragmas was not better freed. I don't know if it is really important (it would need a callback at the end of the front-end

Re: [PATCH] c-pragma: adding a data field to pragma_handler

2011-06-08 Thread Pierre Vittet
, if there is a remark, please, send me it. Especially, I am not sure about the format of my ChangeLog, if there is an issue, I am ready to change it. Changelog gcc: 2011-06-08 Pierre Vittet pier...@pvittet.com * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg, gen_pragma_handler

Re: [PATCH] c-pragma: adding a data field to pragma_handler

2011-06-03 Thread Pierre Vittet
to keep a more clear code. I can do it, if you think it is better. I have successfully compiled gcc with my patch and I have tried it with a modified version of gcc/testsuite/g++.dg/plugin/pragma_plugin.c. Pierre Vittet On 02/06/2011 19:51, Tom Tromey wrote: Pierre == Pierrep.vit

Re: [PATCH] c-pragma: adding a data field to pragma_handler

2011-06-03 Thread Pierre Vittet
comfortable with it for now ;). Pierre Vittet On 03/06/2011 17:47, Basile Starynkevitch wrote: On Fri, 03 Jun 2011 17:31:25 +0200 Pierre Vittetpier...@pvittet.com wrote: Thank you for your answer! I send you a new patch I have corrected the errors you raised. I have make my patch compatible

[PATCH, MELT] add pragma support in MELT plugin

2011-05-31 Thread Pierre Vittet
) ) (put_fields initial_system_data :sysdata_meltpragma_definer my_simple_pragma_handler ) Pierre Vittet Index: gcc/melt/warmelt-first.melt === --- gcc/melt/warmelt-first.melt (revision 174379) +++ gcc/melt/warmelt-first.melt (working

Re: [PATCH, MELT] add dominance functions

2011-05-20 Thread Pierre Vittet
is that it puts an end of lines between the two informations. If you think there is a best way to do this, I am ok to try it. The new changelog: 2011-05-20 Pierre Vittet pier...@pvittet.com * melt/xtramelt-ana-base.melt (is_dominance_info_available, is_post_dominance_info_available

Re: [PATCH] comment precising need to use free_dominance_info

2011-05-17 Thread Pierre Vittet
So maybe this patch adding a comment on calculate_dominance_info is more adapted. ChangeLog: 2011-05-17 Pierre Vittetpier...@pvittet.com * dominance.c (calculate_dominance_info): Add comment precising when to free with free_dominance_info contributor number: 634276 Index:

[PATCH, MELT] correcting path error in the Makefile.in

2011-05-17 Thread Pierre Vittet
This patch correct a bug in the current revision of MELT, which was preventing MELT to run correctly. This was a path problem in gcc/Makefile.in (melt-modules/ and melt-modules.mk) were not found. My contributor number is 634276. changelog : 2011-05-17 Pierre Vittet pier...@pvittet.com

[PATCH, MELT] fix useless forcing of GCC garbage collector

2011-05-09 Thread Pierre Vittet
a MELT plugin with the patched version). I have also measured a small time improvement while compiling the file gcc.c (which is more that 8000 lines): Whithout the modification: usersys 1.563 0.145s With the modification: usersys 1.144 0.106s Changelog: 2011-05-09 Pierre Vittet pier

Re: [PATCH, MELT] fix useless forcing of GCC garbage collector

2011-05-09 Thread Pierre Vittet
. This is the copyright assignment legal document reference for Pierre Vittet. What does he (or me) have to do to get svn+ssh://gcc.melt.org/ write access? Cheers.

[Patch] get an order number on -fdump-tree-all

2011-03-23 Thread Pierre Vittet
that the function print_current_pass is only called on a fail and that debug_pass doesn't appear to be called at all. Maybe in DEBUG, or at least with an f*_dump_all, we could print the order of the pass. thanks Pierre Vittet Index: gcc/tree-dump.c