re PR debug/78835 (ICE with -fdebug-types-section and member function)
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 Jan 2017 21:44:49 +0000 (22:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 Jan 2017 21:44:49 +0000 (22:44 +0100)
commitf7c06c0f9955a6d12dd7eaef040de563fe279166
tree1f43f54af8acabd8d284a7ddcd24f5708f9f1963
parent5d93da1d112c93b38b6c68e3c51e20daefc01423
re PR debug/78835 (ICE with -fdebug-types-section and member function)

PR debug/78835
* dwarf2out.c (prune_unused_types): Mark all functions with DIEs
which have direct callers with -fvar-tracking-assignments enabled
in the current TU.
(resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
inside of type units.

* g++.dg/debug/dwarf2/pr78835.C: New test.

From-SVN: r244954
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/pr78835.C [new file with mode: 0644]