aboutsummaryrefslogtreecommitdiff
path: root/gold/icf.cc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-12-11 13:42:17 +0000
committerNick Clifton <nickc@redhat.com>2009-12-11 13:42:17 +0000
commit91d6fa6a035cc7d0b7be5c99c194a64cb80924b0 (patch)
tree214507c313b77d619b52afcae2af0b02c9fa700b /gold/icf.cc
parent01fe1b4183324882e88e8c64748bffdc69ea3a9c (diff)
downloadgdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.zip
gdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.tar.gz
gdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.tar.bz2
Add -Wshadow to the gcc command line options used when compiling the binutils.
Fix up all warnings generated by the addition of this switch.
Diffstat (limited to 'gold/icf.cc')
-rw-r--r--gold/icf.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/icf.cc b/gold/icf.cc
index 03b927a..39334a5 100644
--- a/gold/icf.cc
+++ b/gold/icf.cc
@@ -557,7 +557,7 @@ Icf::find_identical_sections(const Input_objects* input_objects,
Symbol_table* symtab)
{
unsigned int section_num = 0;
- std::vector<unsigned int> num_tracked_relocs;
+ std::vector<unsigned int> num_tracked_rels;
std::vector<bool> is_secn_or_group_unique;
std::vector<std::string> section_contents;
@@ -585,7 +585,7 @@ Icf::find_identical_sections(const Input_objects* input_objects,
this->id_section_.push_back(Section_id(*p, i));
this->section_id_[Section_id(*p, i)] = section_num;
this->kept_section_id_.push_back(section_num);
- num_tracked_relocs.push_back(0);
+ num_tracked_rels.push_back(0);
is_secn_or_group_unique.push_back(false);
section_contents.push_back("");
section_num++;
@@ -605,7 +605,7 @@ Icf::find_identical_sections(const Input_objects* input_objects,
{
num_iterations++;
converged = match_sections(num_iterations, symtab,
- &num_tracked_relocs, &this->kept_section_id_,
+ &num_tracked_rels, &this->kept_section_id_,
this->id_section_, &is_secn_or_group_unique,
&section_contents);
}