[tree-ssa] Pretty print tweak

Steven Bosscher s.bosscher@student.tudelft.nl
Sat Jul 5 15:15:00 GMT 2003


Op za 05-07-2003, om 16:07 schreef Diego Novillo:
> On Sat, 2003-07-05 at 09:39, Steven Bosscher wrote:
> 
> > 	* tree-pretty-print.c (dump_generic_node): Do not dump the
> > 	else clause of a COND_EXPR if it is an empty statmement.
> > 
> > 
> Could you change it so that it *does* output the empty ELSE_CLAUSE when
> TDF_BLOCKS is specified?  Otherwise, listings with basic block

OK

> information are confusing.  THEN_CLAUSE should be treated similarly if
> it's empty.

COND_EXPR_THEN is special because it can be empty empty even when
COND_EXPR_ELSE is not; this gives you confusing tree dumps as well.  I
think writing a ';' after the if should help.  Something like this.

Gr.
Steven

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree-pretty-print.patch
Type: text/x-patch
Size: 1968 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030705/65212367/attachment.bin>


More information about the Gcc-patches mailing list