Re: [PATCH] Improve CONSTRUCTOR printing in tree-pretty-print.c

2011-07-01 Thread Richard Guenther
On Thu, Jun 30, 2011 at 8:42 PM, Jakub Jelinek wrote: > Hi! > > As reporteed by Tobias, when printing array ctors the pretty printer would > never print indexes or ranges, which means that e.g. > {[2 ... 71]=7} > ctor was printed as > {7} > and > {[3]=1, [7]=2} > ctor was printed as > {1, 2} > The

[PATCH] Improve CONSTRUCTOR printing in tree-pretty-print.c

2011-06-30 Thread Jakub Jelinek
Hi! As reporteed by Tobias, when printing array ctors the pretty printer would never print indexes or ranges, which means that e.g. {[2 ... 71]=7} ctor was printed as {7} and {[3]=1, [7]=2} ctor was printed as {1, 2} The following patch prints the index (if different from the last index + 1 resp.