aboutsummaryrefslogtreecommitdiff
path: root/gold/expression.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/expression.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/expression.cc')
-rw-r--r--gold/expression.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/gold/expression.cc b/gold/expression.cc
index 853a698..8bbcfaa 100644
--- a/gold/expression.cc
+++ b/gold/expression.cc
@@ -1,6 +1,6 @@
// expression.cc -- expressions in linker scripts for gold
-// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -739,10 +739,10 @@ class Align_expression : public Binary_expression
&& parameters->options().relocatable())
gold_warning(_("aligning to section relative value"));
- uint64_t value = this->left_value(eei, eei->result_section_pointer);
+ uint64_t val = this->left_value(eei, eei->result_section_pointer);
if (align <= 1)
- return value;
- return ((value + align - 1) / align) * align;
+ return val;
+ return ((val + align - 1) / align) * align;
}
void
@@ -768,10 +768,10 @@ class Assert_expression : public Unary_expression
uint64_t
value(const Expression_eval_info* eei)
{
- uint64_t value = this->arg_value(eei, eei->result_section_pointer);
- if (!value && eei->check_assertions)
+ uint64_t val = this->arg_value(eei, eei->result_section_pointer);
+ if (!val && eei->check_assertions)
gold_error("%s", this->message_.c_str());
- return value;
+ return val;
}
void