https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114291
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
`Declarations used by main, sorted by DECL_UID` is printed by
dump_enumerated_decls
Which is caused by execute_cleanup_cfg_post_optimizing :
```
if ((flag_compare_debug_opt || flag_compare_debug)
&& flag_dump_final_insns)
{
...
flag_dump_noaddr = flag_dump_unnumbered = 1;
fprintf (final_output, "\n");
dump_enumerated_decls (final_output,
dump_flags | TDF_SLIM | TDF_NOUID);
flag_dump_noaddr = save_noaddr;
flag_dump_unnumbered = save_unnumbered;
```
That looks fine.
But I don't get why L0 is there in the -g case but not there without ...