This is the mail archive of the gcc-patches@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: [tree-ssa] Dumping line numbers



On Nov 3, 2003, at 12:30 PM, law@redhat.com wrote:


In message <1067879609.3402.8.camel@frodo.toronto.redhat.com>, Diego Novillo wr
ites:
On Mon, 2003-11-03 at 11:58, Zdenek Dvorak wrote:

	* 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.

This is OK, but you also need to update doc/invoke.texi.

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.



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