summaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-05-01 22:46:36 +0000
committerCary Coutant <ccoutant@google.com>2012-05-01 22:46:36 +0000
commitb9b9f2ee726779a225deaca3cac4700bcb82a71b (patch)
tree7ee13990852760d1c93eb0871c6a730482f9d4e6 /gold
parentb008ea786b2de8eabce6d54ca323967199d5b348 (diff)
downloadbinutils-gdb-b9b9f2ee726779a225deaca3cac4700bcb82a71b.tar.gz
elfcpp/
* dwarf.h (enum DW_TAG, enum DW_FORM, enum DW_AT, enum DW_ENCODING) (enum DW_OP, enum DW_CFA): Remove. Include dwarf2.def. gold/ * 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.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog9
-rw-r--r--gold/dwarf_reader.cc6
-rw-r--r--gold/reduced_debug_output.cc5
3 files changed, 11 insertions, 9 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 562e22a7920..888affd01bd 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 6245dc81991..2955d794882 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 31eaf779cd3..a6158fcc30f 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;
}
}