Add new option -ggnu-pubnames.
commitea096d3dd3fd4f5fb3a2389dde7789250115dc02
authorsterling <sterling@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Oct 2013 19:01:26 +0000 (22 19:01 +0000)
committersterling <sterling@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Oct 2013 19:01:26 +0000 (22 19:01 +0000)
treeceef264b6494cfe1fff48bbe4839ccf4a9d0693c
parent87f4db2070e1007ce1f73ea3221687ee4af388e4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203936 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/dwarf2out.c