This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] Dumping line numbers
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: law at redhat dot com
- Cc: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>,"gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>,Diego Novillo <dnovillo at redhat dot com>
- Date: Mon, 3 Nov 2003 12:44:35 -0500
- Subject: Re: [tree-ssa] Dumping line numbers
- References: <200311031730.hA3HUe9C004822@speedy.slc.redhat.com>
On Nov 3, 2003, at 12:30 PM, firstname.lastname@example.org wrote:
In message <email@example.com>, Diego
On Mon, 2003-11-03 at 11:58, Zdenek Dvorak wrote:
This is OK, but you also need to update doc/invoke.texi.
* tree-dump.c (dump_options): Add TDF_LINENO.
* tree-pretty-print.c (dump_generic_node): Print line number for
statements if asked to.
* tree.h (TDF_LINENO): New.
Since you're modifying this code, could you update tree_dump_bb to use
TDF_LINENO instead of manually adding line numbers?
Yes yes yes. One of the more annoying things I run into is spurious
diffs when comparing tree dumps that two compilers gives when compiling
identical sourcecode which is stored in two different filenames.
I get spurious diffs in variable versions (if i change one small thing
so that we create one more version, *all* versions after that one are
thrown off) and goto label addresses.
Wish it was deterministic.
Would make my life easier.