On 03/06/2018 01:47 PM, Jakub Jelinek wrote:
> As discussed, e.g. gimplification of STATEMENT_LISTs can create extra
> retval.N temporaries for -g and get the counts out of sync, similarly
> the SAVE_EXPR change proposed in the fix for that PR could for decls
> in the statement expressions or addresses thereof get the fancy names
> counters out of sync.
> The following patch marks the temporaries DECL_NAMELESS in addition to
> DECL_IGNORED_P and in the dumps used for -fcompare-debug checking
> prints those as D.xxxx rather than retval.234.
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
> 2018-03-06 Jakub Jelinek <ja...@redhat.com>
> PR c++/84704
> * gimple-expr.c (create_tmp_var_raw): Set DECL_NAMELESS flag
> on tmp_var.
> * tree-pretty-print.c (dump_decl_name): For TDF_COMPARE_DEBUG,
> don't print names of DECL_NAMELESS DECL_IGNORED_P decls.