I have need to change gimple dump format

Diego Novillo dnovillo@google.com
Thu Aug 21 12:48:00 GMT 2008


On Thu, Aug 21, 2008 at 08:12, Sergey Vinogradov <vinny@ispras.ru> wrote:

>                    I use gcc with key -fdump-tree-gimple-raw to get gimple
> tree dump. Next, I parse this dump (we need assembler-like code for
> verification). In the my local copy of gcc 4.3.1 i've corrected the
> implementation of the dump and create new key -fdump-tree-gimple-rawp.

The problem I see with your approach is that we generally do not
attempt to keep the dump files in a stable format.  They are merely a
debugging tool and are not meant to be parsed/processed mechanically.

In future releases, you will probably be able to use the streamed
gimple output used by LTO.  I realize that this does not help you in
your current situation.  So, in principle I'm not opposed to altering
the -raw output to meet your needs (with the understanding that there
will be no guarantees of stability).

You will need to prepare a patch as outlined in
http://gcc.gnu.org/contribute.html.  IIRC, ISP RAS already has a
copyright assignment so your legal prerequisites should already be
met.


Diego.



More information about the Gcc-patches mailing list