From 91c603de8d021d2129bdb2baecdc68198c551ae4 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Mon, 6 Oct 2014 09:58:42 +0000 Subject: [PATCH] * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215921 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/dwarf2cfi.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0441734fc63..3aaed7cdf42 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-10-06 Eric Botcazou + + * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering. + 2014-10-06 Jakub Jelinek * ubsan.h (ubsan_get_source_location): New prototype. diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c index c8c8a425796..b7fa3bc5b75 100644 --- a/gcc/dwarf2cfi.c +++ b/gcc/dwarf2cfi.c @@ -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)" : ""); -- 2.11.4.GIT