aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2012-07-11 14:18:40 +0000
committerIan Lance Taylor <ian@airs.com>2012-07-11 14:18:40 +0000
commit1f3212db282db657b7511fe0bee6285eafb67351 (patch)
tree412a6beadece81045b4287f400f2b576270aa678 /gold
parent3db4782ac8f2bf8243892afd1d1838769d562071 (diff)
downloadgdb-1f3212db282db657b7511fe0bee6285eafb67351.zip
gdb-1f3212db282db657b7511fe0bee6285eafb67351.tar.gz
gdb-1f3212db282db657b7511fe0bee6285eafb67351.tar.bz2
* arm.cc (Arm_relocate_functions::abs16): Remove unused typedef.
(Arm_exidx_cantunwind::do_fixed_endian_write): Likewise. (Target_arm::scan_reloc_for_stub): Likewise. * common.cc (Symbol_table::do_allocate_commons_list): Likewise. * dwarf_reader.cc (Dwarf_die::skip_attributes): Likewise. * ehframe.cc (Eh_frame::do_add_ehframe_input_section): Likewise. * incremental.cc (Sized_incr_dynobj::do_add_symbols): Likewise. * powerpc.cc (Target_powerpc::relocate_tls): Likewise.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog11
-rw-r--r--gold/arm.cc5
-rw-r--r--gold/common.cc6
-rw-r--r--gold/dwarf_reader.cc2
-rw-r--r--gold/ehframe.cc3
-rw-r--r--gold/incremental.cc2
-rw-r--r--gold/powerpc.cc1
7 files changed, 14 insertions, 16 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 33317bf..5f80c78 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,14 @@
+2012-07-11 Ian Lance Taylor <iant@google.com>
+
+ * arm.cc (Arm_relocate_functions::abs16): Remove unused typedef.
+ (Arm_exidx_cantunwind::do_fixed_endian_write): Likewise.
+ (Target_arm::scan_reloc_for_stub): Likewise.
+ * common.cc (Symbol_table::do_allocate_commons_list): Likewise.
+ * dwarf_reader.cc (Dwarf_die::skip_attributes): Likewise.
+ * ehframe.cc (Eh_frame::do_add_ehframe_input_section): Likewise.
+ * incremental.cc (Sized_incr_dynobj::do_add_symbols): Likewise.
+ * powerpc.cc (Target_powerpc::relocate_tls): Likewise.
+
2012-07-10 Dodji Seketeli <dodji@redhat.com>
Ian Lance Taylor <iant@google.com>
diff --git a/gold/arm.cc b/gold/arm.cc
index 92735ea..fa257a7 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -3253,7 +3253,6 @@ class Arm_relocate_functions : public Relocate_functions<32, big_endian>
const Symbol_value<32>* psymval)
{
typedef typename elfcpp::Swap_unaligned<16, big_endian>::Valtype Valtype;
- typedef typename elfcpp::Swap<32, big_endian>::Valtype Reltype;
Valtype val = elfcpp::Swap_unaligned<16, big_endian>::readval(view);
int32_t addend = Bits<16>::sign_extend32(val);
Arm_address x = psymval->value(object, addend);
@@ -5209,8 +5208,6 @@ Arm_exidx_cantunwind::do_fixed_endian_write(Output_file* of)
const section_size_type oview_size = 8;
unsigned char* const oview = of->get_output_view(offset, oview_size);
- typedef typename elfcpp::Swap_unaligned<32, big_endian>::Valtype Valtype;
-
Output_section* os = this->relobj_->output_section(this->shndx_);
gold_assert(os != NULL);
@@ -10990,8 +10987,6 @@ Target_arm<big_endian>::scan_reloc_for_stub(
elfcpp::Elf_types<32>::Elf_Swxword addend,
Arm_address address)
{
- typedef typename Target_arm<big_endian>::Relocate Relocate;
-
const Arm_relobj<big_endian>* arm_relobj =
Arm_relobj<big_endian>::as_arm_relobj(relinfo->object);
diff --git a/gold/common.cc b/gold/common.cc
index 1a9aea8..b0c7d6e 100644
--- a/gold/common.cc
+++ b/gold/common.cc
@@ -1,6 +1,7 @@
// common.cc -- handle common symbols for gold
-// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012
+// Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -222,9 +223,6 @@ Symbol_table::do_allocate_commons_list(
Mapfile* mapfile,
Sort_commons_order sort_order)
{
- typedef typename Sized_symbol<size>::Value_type Value_type;
- typedef typename Sized_symbol<size>::Size_type Size_type;
-
// We've kept a list of all the common symbols. But the symbol may
// have been resolved to a defined symbol by now. And it may be a
// forwarder. First remove all non-common symbols.
diff --git a/gold/dwarf_reader.cc b/gold/dwarf_reader.cc
index 2955d79..ac87f4b 100644
--- a/gold/dwarf_reader.cc
+++ b/gold/dwarf_reader.cc
@@ -821,8 +821,6 @@ Dwarf_die::read_attributes()
off_t
Dwarf_die::skip_attributes()
{
- typedef Dwarf_abbrev_table::Attribute Attribute;
-
gold_assert(this->abbrev_code_ != NULL);
const unsigned char* pdie =
diff --git a/gold/ehframe.cc b/gold/ehframe.cc
index dad2331..1aaf346 100644
--- a/gold/ehframe.cc
+++ b/gold/ehframe.cc
@@ -1,6 +1,6 @@
// ehframe.cc -- handle exception frame sections for gold
-// Copyright 2006, 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008, 2010, 2011, 2012 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -631,7 +631,6 @@ Eh_frame::do_add_ehframe_input_section(
section_size_type contents_len,
New_cies* new_cies)
{
- typedef typename elfcpp::Elf_types<size>::Elf_Addr Address;
Track_relocs<size, big_endian> relocs;
const unsigned char* p = pcontents;
diff --git a/gold/incremental.cc b/gold/incremental.cc
index 9a61e77..acabaea 100644
--- a/gold/incremental.cc
+++ b/gold/incremental.cc
@@ -2728,8 +2728,6 @@ Sized_incr_dynobj<size, big_endian>::do_add_symbols(
elfcpp::Sym<size, big_endian> sym(symbuf);
elfcpp::Sym_write<size, big_endian> osym(symbuf);
- typedef typename elfcpp::Elf_types<size>::Elf_WXword Elf_size_type;
-
unsigned int nsyms = this->input_reader_.get_global_symbol_count();
this->symbols_.resize(nsyms);
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index 1bc9dfa..d8e8b82 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -1971,7 +1971,6 @@ Target_powerpc<size, big_endian>::Relocate::relocate_tls(
section_size_type)
{
Output_segment* tls_segment = relinfo->layout->tls_segment();
- typedef Powerpc_relocate_functions<size, big_endian> Reloc;
const Sized_relobj_file<size, big_endian>* object = relinfo->object;
const elfcpp::Elf_Xword addend = rela.get_r_addend();