When comparing dumps from compilations with debugging information generation enabled and disabled, like for -fcompare-debug, commonly dump files generated with TDF_NOUID are used. However, as has become painfully clear while debugging PR44832, such dumps do not help to spot the point where the DECL_UID ordering of declarations / labels varies. There should be a flag to request an enumeration of all declarations / labels of each function to be dumped in the order of their DECL_UID as part of the debugging dump for the function.
Also, a dump of FREE_SSANAMES can be useful at times. -- Summary: TDF_NOUID dumps miss information about DECL_UID ordering Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: amylaar at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44874