diff options
author | Sterling Augustine <saugustine@google.com> | 2012-04-23 18:59:29 +0000 |
---|---|---|
committer | Sterling Augustine <saugustine@google.com> | 2012-04-23 18:59:29 +0000 |
commit | 7a7b3d64a24341e569c902550d784486c548a9f7 (patch) | |
tree | 06a8783f97be47d9936f98bceff5a9a593c54819 | |
parent | f7d234f57a4c7e6b2285fd1bc5963f88b1b302b2 (diff) |
2012-04-20 Sterling Augustine <saugustine@google.com>
* gcc/dwarf2out.c (output_skeleton_debug_sections): Fix off-by-one
error.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6@186719 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog.google-4_6 | 5 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog.google-4_6 b/gcc/ChangeLog.google-4_6 index 9b880d8012d..6cc165e0fbd 100644 --- a/gcc/ChangeLog.google-4_6 +++ b/gcc/ChangeLog.google-4_6 @@ -1,3 +1,8 @@ +2012-04-20 Sterling Augustine <saugustine@google.com> + + * gcc/dwarf2out.c (output_skeleton_debug_sections): Fix off-by-one + error. + 2012-04-20 Rong Xu <xur@google.com> * gcc/ipa.c (cgraph_externally_visible_p): Not localize hidden symbols diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 937ab45124d..3ea57738177 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -12010,11 +12010,10 @@ output_skeleton_debug_sections (dw_die_ref comp_unit) dw2_asm_output_data (4, 0xffffffff, "Initial length escape value indicating 64-bit DWARF extension"); - /* One for the terminating NULL byte. */ dw2_asm_output_data (DWARF_OFFSET_SIZE, DWARF_COMPILE_UNIT_HEADER_SIZE - DWARF_INITIAL_LENGTH_SIZE - + size_of_die (comp_unit) + 1, + + size_of_die (comp_unit), "Length of Compilation Unit Info"); dw2_asm_output_data (2, dwarf_version, "DWARF version number"); dw2_asm_output_offset (DWARF_OFFSET_SIZE, debug_skeleton_abbrev_section_label, @@ -12025,8 +12024,6 @@ output_skeleton_debug_sections (dw_die_ref comp_unit) comp_unit->die_abbrev = 1; output_die (comp_unit); - dw2_asm_output_data (1, 0, "end of skeleton .debug_info"); - /* Build the skeleton debug_abbrev section. */ switch_to_section (debug_skeleton_abbrev_section); ASM_OUTPUT_LABEL (asm_out_file, debug_skeleton_abbrev_section_label); |