This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HTML of -fdump-tree-XXXX proposal.


J.C. Pizarro wrote:
In the attachment there is a quick&dirty alpha patch that i don't known
why the gcc compiler says "gcc: unrecognized option '-html'". ???
I don't known where to modify the gcc code to add an option.

The XHTML format to fputs is a little bad.

There are examples to test too.

The idea is to filter the output stream.

I think it makes a lot more sense to implement this as a standalone filter for the output stream, which takes the files that contain the current dump-tree output and converts it to HTML. You don't lose any functionality by doing that, and there's no compelling reason for adding the extra complexity to the tree-dumpers themselves if we don't need to.


Certainly it can be a useful idea to have more ways of viewing the dump files than just reading the plaintext in a text editor, but it seems more sensible to me to consider the plaintext-to-HTML conversion as an aspect of a standalone "viewer" system, rather than as an aspect of the compiler.

- Brooks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]