Track indirect calls for call site information in debug info
authorPierre-Marie de Rodat <derodat@adacore.com>
Wed, 2 Dec 2015 15:57:34 +0000 (15:57 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 2 Dec 2015 15:57:34 +0000 (15:57 +0000)
commitf2834b5d870fb769b4156ab4b35809e4fd613ae0
treea32dc57ea24048ca49e8b206953e1025378e8dc7
parentff7a55bf56a6f148b29c8fd44ca90c4e535fc2bd
Track indirect calls for call site information in debug info

gcc/ChangeLog:

* dwarf2out.c (dwar2out_var_location): In addition to notes,
process indirect calls whose target is compile-time known.
Enhance pattern matching to get the SYMBOL_REF they embed.
(gen_subprogram_die): Handle such calls.
* final.c (final_scan_insn): For call instructions, invoke the
var_location debug hook only after the call has been emitted.

From-SVN: r231185
gcc/ChangeLog
gcc/dwarf2out.c
gcc/final.c