[gcjx] Add -fdump-tree for dumping AST

Ranjit Mathew rmathew@gmail.com
Wed Oct 12 19:11:00 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

  The attached patch is my attempt to add an "-fdump-tree" option
to the standalone compiler that uses the pretty-printer to
dump the AST of a file after compilation. The actual dumping
happens after semantic analysis in compiler::do_analyze_unit().

If nothing, this would help compiler newbies like me to
understand what AST GCJX builds from a given source file.
It might perhaps come handy in debugging the compiler too.

Note that even after this patch the compiler doesn't
seem to output anything when -fdump-tree is specified.
This is simply because pretty_printer::visit_unit_source()
is unimplemented as of now and I would implement it real
soon now.

Does this look acceptable?

Thanks,
Ranjit.

- --
Ranjit Mathew       Email: rmathew AT gmail DOT com

Bangalore, INDIA.     Web: http://ranjitmathew.hostingzero.com/




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTV5AYb1hx2wRS48RAnjdAJ9UyDXtzlFmzzoASZEbKgIIlyWC1gCeNb04
P4MJX+SyFAEv7BJc1RbYG+U=
=xTr6
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: t1.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20051012/6052b541/attachment.txt>


More information about the Java-patches mailing list