diff options
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 9 | ||||
-rw-r--r-- | gold/dwarf_reader.cc | 6 | ||||
-rw-r--r-- | gold/reduced_debug_output.cc | 5 |
3 files changed, 11 insertions, 9 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 562e22a..888affd 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,12 @@ +2012-05-01 Cary Coutant <ccoutant@google.com> + + * dwarf_reader.cc (Dwarf_die::read_attributes) + (Dwarf_die::skip_attributes, Dwarf_die::int_attribute) + (Dwarf_die::uint_attribute): Remove DW_FORM_null. + * reduced_debug_output.cc + (Output_reduced_debug_info_section::get_die_end): Remove + DW_FORM_GNU_ref_index. Add default case. + 2012-04-26 Mark Wielaard <mjw@redhat.com> * dwarf_reader.cc (Dwarf_die::address_attribute): New function. diff --git a/gold/dwarf_reader.cc b/gold/dwarf_reader.cc index 6245dc8..2955d79 100644 --- a/gold/dwarf_reader.cc +++ b/gold/dwarf_reader.cc @@ -613,9 +613,6 @@ Dwarf_die::read_attributes() attr_value.aux.shndx = 0; switch(form) { - case elfcpp::DW_FORM_null: - attr_value.val.intval = 0; - break; case elfcpp::DW_FORM_flag_present: attr_value.val.intval = 1; break; @@ -845,7 +842,6 @@ Dwarf_die::skip_attributes() } switch(form) { - case elfcpp::DW_FORM_null: case elfcpp::DW_FORM_flag_present: break; case elfcpp::DW_FORM_strp: @@ -985,7 +981,6 @@ Dwarf_die::int_attribute(unsigned int attr) return 0; switch (attr_val->form) { - case elfcpp::DW_FORM_null: case elfcpp::DW_FORM_flag_present: case elfcpp::DW_FORM_data1: case elfcpp::DW_FORM_flag: @@ -1007,7 +1002,6 @@ Dwarf_die::uint_attribute(unsigned int attr) return 0; switch (attr_val->form) { - case elfcpp::DW_FORM_null: case elfcpp::DW_FORM_flag_present: case elfcpp::DW_FORM_data1: case elfcpp::DW_FORM_flag: diff --git a/gold/reduced_debug_output.cc b/gold/reduced_debug_output.cc index 31eaf77..a6158fc 100644 --- a/gold/reduced_debug_output.cc +++ b/gold/reduced_debug_output.cc @@ -1,6 +1,6 @@ // reduced_debug_output.cc -- output reduced debugging information to save space -// Copyright 2008, 2010 Free Software Foundation, Inc. +// Copyright 2008, 2010, 2012 Free Software Foundation, Inc. // Written by Caleb Howe <cshowe@google.com>. // This file is part of gold. @@ -60,7 +60,6 @@ Output_reduced_debug_info_section::get_die_end( return false; switch(form) { - case elfcpp::DW_FORM_null: case elfcpp::DW_FORM_flag_present: break; case elfcpp::DW_FORM_strp: @@ -128,9 +127,9 @@ Output_reduced_debug_info_section::get_die_end( break; } case elfcpp::DW_FORM_indirect: - case elfcpp::DW_FORM_GNU_ref_index: case elfcpp::DW_FORM_GNU_addr_index: case elfcpp::DW_FORM_GNU_str_index: + default: return false; } } |