diff options
author | Richard Biener <rguenther@suse.de> | 2017-09-13 09:01:42 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2017-09-13 09:01:42 +0000 |
commit | 2fc1f4828b269cd54810abd6f05303b265279e82 (patch) | |
tree | 35d5a41f869b653bd284b3e6f94e3b93beafea12 | |
parent | 2da6996c61125da38e0e9e8182ca2a623e03de63 (diff) | |
download | gcc-2fc1f4828b269cd54810abd6f05303b265279e82.zip gcc-2fc1f4828b269cd54810abd6f05303b265279e82.tar.gz gcc-2fc1f4828b269cd54810abd6f05303b265279e82.tar.bz2 |
dwarf2out.c (output_die_symbol): Remove.
2017-09-13 Richard Biener <rguenther@suse.de>
* dwarf2out.c (output_die_symbol): Remove.
(output_die): Do not output a DIEs symbol.
From-SVN: r252063
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 31 |
2 files changed, 5 insertions, 31 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e73946b..ef793e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2017-09-13 Richard Biener <rguenther@suse.de> + * dwarf2out.c (output_die_symbol): Remove. + (output_die): Do not output a DIEs symbol. + +2017-09-13 Richard Biener <rguenther@suse.de> + PR middle-end/82128 * gimple-fold.c (gimple_fold_call): Update SSA name in-place to default-def to avoid breaking iterator update with the weird diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 00d6d95..980c4cc 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3472,7 +3472,6 @@ static enum dwarf_form value_format (dw_attr_node *); static void output_value_format (dw_attr_node *); static void output_abbrev_section (void); static void output_die_abbrevs (unsigned long, dw_die_ref); -static void output_die_symbol (dw_die_ref); static void output_die (dw_die_ref); static void output_compilation_unit_header (enum dwarf_unit_type); static void output_comp_unit (dw_die_ref, int, const unsigned char *); @@ -9625,27 +9624,6 @@ output_abbrev_section (void) dw2_asm_output_data (1, 0, NULL); } -/* Output a symbol we can use to refer to this DIE from another CU. */ - -static inline void -output_die_symbol (dw_die_ref die) -{ - const char *sym = die->die_id.die_symbol; - - gcc_assert (!die->comdat_type_p); - - if (sym == 0) - return; - - if (strncmp (sym, DIE_LABEL_PREFIX, sizeof (DIE_LABEL_PREFIX) - 1) == 0) - /* We make these global, not weak; if the target doesn't support - .linkonce, it doesn't support combining the sections, so debugging - will break. */ - targetm.asm_out.globalize_label (asm_out_file, sym); - - ASM_OUTPUT_LABEL (asm_out_file, sym); -} - /* Return a new location list, given the begin and end range, and the expression. */ @@ -10004,15 +9982,6 @@ output_die (dw_die_ref die) unsigned long size; unsigned ix; - /* If someone in another CU might refer to us, set up a symbol for - them to point to. */ - if (! die->comdat_type_p && die->die_id.die_symbol - /* Don't output the symbol twice. For LTO we want the label - on the section beginning, not on the actual DIE. */ - && ((!flag_generate_lto && !flag_generate_offload) - || die->die_tag != DW_TAG_compile_unit)) - output_die_symbol (die); - dw2_asm_output_data_uleb128 (die->die_abbrev, "(DIE (%#lx) %s)", (unsigned long)die->die_offset, dwarf_tag_name (die->die_tag)); |