* dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.

From-SVN: r215921
This commit is contained in:
Eric Botcazou 2014-10-06 09:58:42 +00:00 committed by Eric Botcazou
parent 8994e34a89
commit f8ed2fc24e
2 changed files with 6 additions and 2 deletions

View 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.

View 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)" : "");