re PR debug/86964 (Too many debug symbols included, especially for extern globals)
authorJohan Karlsson <johan.karlsson@enea.com>
Mon, 25 Mar 2019 21:19:09 +0000 (21:19 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 25 Mar 2019 21:19:09 +0000 (15:19 -0600)
commit715e3349b08decc26a5590a017e85dcf761b0de8
tree8adb95f6f51f4871997545830de9c9c7f9243b51
parent33163a622d9f334e862078419782e3d967bb3db3
re PR debug/86964 (Too many debug symbols included, especially for extern globals)

PR debug/86964
* dwarf2out.c (premark_used_variables): New function.
(prune_unused_types_walk): Do not mark not premarked external
variables.
(prune_unused_types): Call premark_used_variables.

* gcc.dg/debug/dwarf2/pr86964.c: New testcase.

From-SVN: r269925
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/pr86964.c [new file with mode: 0644]