dwarf2cfi: Dump row differences before asserting
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 10 Nov 2016 17:43:02 +0000 (18:43 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 10 Nov 2016 17:43:02 +0000 (18:43 +0100)
commita1566696653132892d629525644c2c63da8dab87
tree255a2bea9a7801a0a94cdf14d4b242a346093e6d
parent8ebd1b31828a67ad889f894bc82141e1acafb953
dwarf2cfi: Dump row differences before asserting

If maybe_record_trace_start fails because the CFI is inconsistent on two
paths into a block it currently just ICEs.  This changes it to also dump
the CFI on those two paths in the dump file; debugging it without that
information is hopeless.

* dwarf2cfi.c (dump_cfi_row): Add forward declaration.
(maybe_record_trace_start): If the CFI is different on the new and
old paths, print out both to the dump file before ICEing.

From-SVN: r242046
gcc/ChangeLog
gcc/dwarf2cfi.c