* dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 6 Oct 2014 09:58:42 +0000 (09:58 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 6 Oct 2014 09:58:42 +0000 (09:58 +0000)
From-SVN: r215921

gcc/ChangeLog
gcc/dwarf2cfi.c

index 0441734fc638381efbbbda6115a56cb7a61aeb87..3aaed7cdf42911644fba0db14ec35920b05db4be 100644 (file)
@@ -1,3 +1,7 @@
+2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
+
 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
 
        * ubsan.h (ubsan_get_source_location): New prototype.
index c8c8a4257964e9dc23b9dc232da760a555118440..b7fa3bc5b75e1e238af5a1bfbe1c6eb59841d587 100644 (file)
@@ -2763,7 +2763,7 @@ create_pseudo_cfg (void)
          memset (&ti, 0, sizeof (ti));
          ti.head = insn;
          ti.switch_sections = switch_sections;
-         ti.id = trace_info.length () - 1;
+         ti.id = trace_info.length ();
          trace_info.safe_push (ti);
 
          saw_barrier = false;
@@ -2781,7 +2781,7 @@ create_pseudo_cfg (void)
       dw_trace_info **slot;
 
       if (dump_file)
-       fprintf (dump_file, "Creating trace %u : start at %s %d%s\n", i,
+       fprintf (dump_file, "Creating trace %u : start at %s %d%s\n", tp->id,
                 rtx_name[(int) GET_CODE (tp->head)], INSN_UID (tp->head),
                 tp->switch_sections ? " (section switch)" : "");