re PR debug/86964 (Too many debug symbols included, especially for extern globals)
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Fri, 31 May 2019 08:22:14 +0000 (08:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 31 May 2019 08:22:14 +0000 (08:22 +0000)
commitd1137c020aa59c6e86385523ac7e23934d408758
tree6d5ca061eb98fb9388c317d482bd6cd46682553d
parent6992d6fbf2ffdb4a5c78604fbf33ae95956fffdd
re PR debug/86964 (Too many debug symbols included, especially for extern globals)

2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>

PR debug/86964
* common.opt (feliminate-unused-debug-symbols): Enable by default.
* doc/invoke.texi (Debugging Options): Document new default of
-feliminate-unused-debug-symbols and remove restriction to 'stabs'.

* g++.dg/debug/dwarf2/fesd-any.C: Use
-fno-eliminate-unused-debug-symbols.
* g++.dg/debug/dwarf2/fesd-baseonly.C: Likewise.
* g++.dg/debug/dwarf2/fesd-none.C: Likewise.
* g++.dg/debug/dwarf2/fesd-reduced.C: Likewise.
* g++.dg/debug/dwarf2/fesd-sys.C: Likewise.
* g++.dg/debug/dwarf2/inline-var-1.C: Likewise.
* g++.dg/debug/enum-2.C: Likewise.
* gcc.dg/debug/dwarf2/fesd-any.c: Likewise.
* gcc.dg/debug/dwarf2/fesd-baseonly.c: Likewise.
* gcc.dg/debug/dwarf2/fesd-none.c: Likewise.
* gcc.dg/debug/dwarf2/fesd-reduced.c: Likewise.
* gcc.dg/debug/dwarf2/fesd-sys.c: Likewise.

From-SVN: r271803
16 files changed:
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/fesd-any.C
gcc/testsuite/g++.dg/debug/dwarf2/fesd-baseonly.C
gcc/testsuite/g++.dg/debug/dwarf2/fesd-none.C
gcc/testsuite/g++.dg/debug/dwarf2/fesd-reduced.C
gcc/testsuite/g++.dg/debug/dwarf2/fesd-sys.C
gcc/testsuite/g++.dg/debug/dwarf2/inline-var-1.C
gcc/testsuite/g++.dg/debug/enum-2.C
gcc/testsuite/gcc.dg/debug/dwarf2/fesd-any.c
gcc/testsuite/gcc.dg/debug/dwarf2/fesd-baseonly.c
gcc/testsuite/gcc.dg/debug/dwarf2/fesd-none.c
gcc/testsuite/gcc.dg/debug/dwarf2/fesd-reduced.c
gcc/testsuite/gcc.dg/debug/dwarf2/fesd-sys.c