Add new option -ggnu-pubnames.
authorSterling Augustine <saugustine@google.com>
Tue, 22 Oct 2013 19:01:26 +0000 (19:01 +0000)
committerSterling Augustine <sterling@gcc.gnu.org>
Tue, 22 Oct 2013 19:01:26 +0000 (19:01 +0000)
commit7a1dd0fab3c8bf87e3c40bc5f281968010b5465f
treeceef264b6494cfe1fff48bbe4839ccf4a9d0693c
parent9ae93484ede1edb8ade7d16d8ac95fda8944aae4
Add new option -ggnu-pubnames.

2013-10-22  Sterling Augustine  <saugustine@google.com>

* doc/invoke.texi: Document -ggnu-pubnames.
* common.opt: Add new option -ggnu-pubnames and modify -gpubnames
logic.
* dwarf2out.c: Include gdb/gdb-index.h.
(DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
debug_generate_pub_sections.
(is_java, output_pubtables, output_pubname): New functions.
(include_pubname_in_output): Handle debug_generate_pub_sections at
level 2.
(size_of_pubnames): Use new local space_for_flags based on
debug_generate_pub_sections.
(output_pubnames): Unify pubnames and pubtypes output logic.
Genericize comments.  Call output_pubname.
(dwarf2out_finish): Move logic to output_pubnames and call it.

From-SVN: r203936
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/dwarf2out.c