This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: extension to -fdump-tree-*-raw
- From: "Giovanni Bajo" <rasky at develer dot com>
- To: "Ebke, Hans-Christian" <h dot ebke at kostal dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 22 Jul 2005 12:26:50 +0200
- Subject: Re: extension to -fdump-tree-*-raw
- References: <D3E67AD42B61D7119DD600306E2132C109516FE3@debemail01>
Ebke, Hans-Christian <h.ebke@kostal.com> wrote:
> So to resolve that problem I took the gcc 4.0.1 source code and patched
> tree.h and tree-dump.c. The patched version introduces two new options for
> -fdump-tree: The "parseable" option which produces unambiguous and easier
to
> parse but otherwise similar output to "raw" and the "maskstringcst" option
> which produces output with the string constants masked since this makes
> parsing the output even easier and I'm not interested in the string
> constants.
You could write some code to escape special characters, so to write
something like:
@54 string_cst type: @61 strg: "wrong
type:\n\0\0\xaf\x03\x03foo\"bar" lngt: 19
This would not need a different special option.
--
Giovanni Bajo