diff options
author | Richard Biener <rguenther@suse.de> | 2017-08-30 10:40:16 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2017-08-30 10:40:16 +0000 |
commit | 70704d4272d3930c29c583b2bca51bf99f570c73 (patch) | |
tree | 77bbac8893b291ad68fba1b3b4fd1aa14e3cadd8 /gcc | |
parent | 39459216fcf68c21e692e9a18797e3dc764b023f (diff) | |
download | gcc-70704d4272d3930c29c583b2bca51bf99f570c73.zip gcc-70704d4272d3930c29c583b2bca51bf99f570c73.tar.gz gcc-70704d4272d3930c29c583b2bca51bf99f570c73.tar.bz2 |
dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
2017-08-30 Richard Biener <rguenther@suse.de>
* dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
(dwarf2out_early_finish): Move setting of AT_pubnames from
early debug output to early finish.
From-SVN: r251450
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 21 |
2 files changed, 13 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 407b025..0aa097f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-08-30 Richard Biener <rguenther@suse.de> + + * dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames. + (dwarf2out_early_finish): Move setting of AT_pubnames from + early debug output to early finish. + 2017-08-30 Jozef Lawrynowicz <jozef.l@somniumtech.com> * gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index d76fef8..00aab04 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -29965,13 +29965,6 @@ dwarf2out_finish (const char *) *slot = ctnode; } - /* The AT_pubnames attribute needs to go in all skeleton dies, including - both the main_cu and all skeleton TUs. Making this call unconditional - would end up either adding a second copy of the AT_pubnames attribute, or - requiring a special case in add_top_level_skeleton_die_attrs. */ - if (!dwarf_split_debug_info) - add_AT_pubnames (comp_unit_die ()); - if (dwarf_split_debug_info) { int mark; @@ -30521,6 +30514,13 @@ dwarf2out_early_finish (const char *filename) for (limbo_die_node *node = limbo_die_list; node; node = node->next) note_variable_value (node->die); + /* The AT_pubnames attribute needs to go in all skeleton dies, including + both the main_cu and all skeleton TUs. Making this call unconditional + would end up either adding a second copy of the AT_pubnames attribute, or + requiring a special case in add_top_level_skeleton_die_attrs. */ + if (!dwarf_split_debug_info) + add_AT_pubnames (comp_unit_die ()); + /* The early debug phase is now finished. */ early_dwarf_finished = true; @@ -30581,13 +30581,6 @@ dwarf2out_early_finish (const char *filename) *slot = ctnode; } - /* The AT_pubnames attribute needs to go in all skeleton dies, including - both the main_cu and all skeleton TUs. Making this call unconditional - would end up either adding a second copy of the AT_pubnames attribute, or - requiring a special case in add_top_level_skeleton_die_attrs. */ - if (!dwarf_split_debug_info) - add_AT_pubnames (comp_unit_die ()); - /* Stick a unique symbol to the main debuginfo section. */ compute_comp_unit_symbol (comp_unit_die ()); |