Discussion:
Fix trace numbering in .dwarf2 dump file
Eric Botcazou
2014-10-06 09:55:56 UTC
Permalink
The numbering of traces in the .dwarf2 dump file is broken, for example:

Creating trace 0 : start at note 1
Creating trace 1 : start at note 51
Creating trace 2 : start at code_label 16
Creating trace 3 : start at code_label 23
Creating trace 4 : start at code_label 38
Creating trace 5 : start at code_label 29
Processing trace 0 : start at note 1
saw edge from trace 0 to 0 (via fallthru 0)
push trace 0 to worklist
Processing trace 0 : start at note 51
saw edge from trace 0 to 1 (via jump_insn 11)
push trace 1 to worklist
saw edge from trace 0 to 2 (via jump_insn 13)
push trace 2 to worklist
Processing trace 2 : start at code_label 23
saw edge from trace 2 to 4 (via jump_insn 26)
push trace 4 to worklist
saw edge from trace 2 to 3 (via fallthru 0)
push trace 3 to worklist
Processing trace 3 : start at code_label 38
saw edge from trace 3 to 3 (via jump_insn 61)
Processing trace 4 : start at code_label 29
Processing trace 1 : start at code_label 16
saw edge from trace 1 to 1 (via jump_insn 19)

Note the 2 "Processing trace 0" and the off-by-one discrepancy between the
"Creating" and the "Processing" lines.

Tested on x86_64-suse-linux, applied on the mainline as obvious.


2014-10-06 Eric Botcazou <***@adacore.com>

* dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
--
Eric Botcazou
Loading...