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


Hello,

>  >> 	* 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.
> 
> If I understand what you're asking for, we would stop printing that
> information unless it was explicitly asked for.  Which would certainly
> make my life easier from time to time...

sounds good to me; the problem is that tree_dump_bb does not take any
flags argument.  Perhaps we could switch off printing lines there by
default; it does not seem somehow terribly useful.

Zdenek


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