diff options
-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); |