aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-10-06 09:58:42 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-10-06 09:58:42 +0000
commitf8ed2fc24eece9723ec375ae8b237c23b1990179 (patch)
tree4425cda4847834db2394d2ef7bf32b2dd6f9d5ec
parent8994e34a895be02d645de5cd6802e82900e4b705 (diff)
downloadgcc-f8ed2fc24eece9723ec375ae8b237c23b1990179.zip
gcc-f8ed2fc24eece9723ec375ae8b237c23b1990179.tar.gz
gcc-f8ed2fc24eece9723ec375ae8b237c23b1990179.tar.bz2
* dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
From-SVN: r215921
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/dwarf2cfi.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0441734..3aaed7c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c
index c8c8a42..b7fa3bc 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)" : "");