diff options
author | Sterling Augustine <saugustine@google.com> | 2012-01-20 18:17:10 +0000 |
---|---|---|
committer | Sterling Augustine <saugustine@google.com> | 2012-01-20 18:17:10 +0000 |
commit | e4da4b61794487c39dbca9a337004a3603a1961a (patch) | |
tree | e76aea41d4847c8a103f684a23b5bb655e32e412 | |
parent | 47f83c637524082ebdf075b203dc9b7edc2f88b9 (diff) |
2012-01-19 Sterling Augustine <saugustine@google.com>
* gcc/dwarf2out.c (break_out_comdat_types): Call add_AT_lineptr with
DW_AT_GNU_pubnames and DW_AT_GNU_pubtypes.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6@183346 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog.google-4_6 | 6 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog.google-4_6 b/gcc/ChangeLog.google-4_6 index b20abc89f98..fec2649dd57 100644 --- a/gcc/ChangeLog.google-4_6 +++ b/gcc/ChangeLog.google-4_6 @@ -1,3 +1,9 @@ +2012-01-20 Sterling Augustine <saugustine@google.com> + Backport from google/main + + * gcc/dwarf2out.c (break_out_comdat_types): Call add_AT_lineptr with + DW_AT_GNU_pubnames and DW_AT_GNU_pubtypes. + 2012-01-12 Rong Xu <xur@google.com> Backport r183142 from google/main diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 63ec7a0a47e..675a68270a6 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -10318,6 +10318,15 @@ break_out_comdat_types (dw_die_ref die) type_node->root_die = unit; type_node->next = comdat_type_list; comdat_type_list = type_node; + if (targetm.want_debug_pub_sections) + { + /* FIXME: Should use add_AT_pubnamesptr. This works because most + targets don't care what the base section is. */ + add_AT_lineptr (unit, DW_AT_GNU_pubnames, + debug_pubnames_section_label); + add_AT_lineptr (unit, DW_AT_GNU_pubtypes, + debug_pubtypes_section_label); + } /* Generate the type signature. */ generate_type_signature (c, type_node); |