re PR debug/61188 (Many -fcompare-debug failures)
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 14 May 2014 15:53:11 +0000 (15:53 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 14 May 2014 15:53:11 +0000 (15:53 +0000)
gcc/
PR debug/61188
* print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.

From-SVN: r210429

gcc/ChangeLog
gcc/print-rtl.c

index 5af99f4224e8983b76eba4ced975b323ea878e15..10774c72a3b00cae3bdb370570b601c13d3ea689 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       PR debug/61188
+       * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
+
 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
 
        PR target/61084
 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
 
        PR target/61084
index 66d98b10caf12e2ba955cc8ddff13eeb80bda304..2f9f54738c093077beb0ac1444fe0b256c03d096 100644 (file)
@@ -188,7 +188,12 @@ print_rtx (const_rtx in_rtx)
 #endif
 
   if (INSN_CHAIN_CODE_P (GET_CODE (in_rtx)))
 #endif
 
   if (INSN_CHAIN_CODE_P (GET_CODE (in_rtx)))
-    fprintf (outfile, " %d", INSN_UID (in_rtx));
+    {
+      if (flag_dump_unnumbered)
+       fprintf (outfile, " #");
+      else
+       fprintf (outfile, " %d", INSN_UID (in_rtx));
+    }
 
   /* Get the format string and skip the first elements if we have handled
      them already.  */
 
   /* Get the format string and skip the first elements if we have handled
      them already.  */