aboutsummaryrefslogtreecommitdiff
path: root/gold/common.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-29 19:19:17 +0000
committerIan Lance Taylor <iant@google.com>2008-02-29 19:19:17 +0000
commit7d1a9ebbf2b6018657e88172df4356ad4733b9c6 (patch)
tree684a7533508954f514333d59e7aac505a7764b9f /gold/common.cc
parentc24d74257b6b46bc55be02dd1760658f842a3872 (diff)
downloadgdb-7d1a9ebbf2b6018657e88172df4356ad4733b9c6.zip
gdb-7d1a9ebbf2b6018657e88172df4356ad4733b9c6.tar.gz
gdb-7d1a9ebbf2b6018657e88172df4356ad4733b9c6.tar.bz2
Remove gcc 3.2 compatibility hacks.
Diffstat (limited to 'gold/common.cc')
-rw-r--r--gold/common.cc21
1 files changed, 4 insertions, 17 deletions
diff --git a/gold/common.cc b/gold/common.cc
index e6f3910..286a112 100644
--- a/gold/common.cc
+++ b/gold/common.cc
@@ -90,12 +90,8 @@ Sort_commons<size>::operator()(const Symbol* pa, const Symbol* pb) const
return true;
const Symbol_table* symtab = this->symtab_;
- const Sized_symbol<size>* psa;
- psa = symtab->get_sized_symbol SELECT_SIZE_NAME(size) (pa
- SELECT_SIZE(size));
- const Sized_symbol<size>* psb;
- psb = symtab->get_sized_symbol SELECT_SIZE_NAME(size) (pb
- SELECT_SIZE(size));
+ const Sized_symbol<size>* psa = symtab->get_sized_symbol<size>(pa);
+ const Sized_symbol<size>* psb = symtab->get_sized_symbol<size>(pb);
typename Sized_symbol<size>::Size_type sa = psa->symsize();
typename Sized_symbol<size>::Size_type sb = psb->symsize();
@@ -171,10 +167,7 @@ Symbol_table::do_allocate_commons(const General_options&,
else
{
any = true;
- Sized_symbol<size>* ssym;
- ssym = this->get_sized_symbol SELECT_SIZE_NAME(size) (
- sym
- SELECT_SIZE(size));
+ Sized_symbol<size>* ssym = this->get_sized_symbol<size>(sym);
if (ssym->value() > addralign)
addralign = ssym->value();
}
@@ -205,15 +198,9 @@ Symbol_table::do_allocate_commons(const General_options&,
Symbol* sym = *p;
if (sym == NULL)
break;
-
- Sized_symbol<size>* ssym;
- ssym = this->get_sized_symbol SELECT_SIZE_NAME(size) (sym
- SELECT_SIZE(size));
-
+ Sized_symbol<size>* ssym = this->get_sized_symbol<size>(sym);
off = align_address(off, ssym->value());
-
ssym->allocate_common(poc, off);
-
off += ssym->symsize();
}