aboutsummaryrefslogtreecommitdiff
path: root/gold/common.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-11-03 18:38:43 +0000
committerIan Lance Taylor <iant@google.com>2006-11-03 18:38:43 +0000
commit593f47df457d5e059f49b1ce62d1b51d4a7cc3e4 (patch)
tree1f5b2070678b01fd88b1818246356679bd078d59 /gold/common.cc
parentead1e4244a55707685d105c662a9a1faf5d122fe (diff)
downloadgdb-593f47df457d5e059f49b1ce62d1b51d4a7cc3e4.zip
gdb-593f47df457d5e059f49b1ce62d1b51d4a7cc3e4.tar.gz
gdb-593f47df457d5e059f49b1ce62d1b51d4a7cc3e4.tar.bz2
gcc 3.2.2 portability hacks.
Diffstat (limited to 'gold/common.cc')
-rw-r--r--gold/common.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/gold/common.cc b/gold/common.cc
index 9738f98..28ca2f6 100644
--- a/gold/common.cc
+++ b/gold/common.cc
@@ -84,11 +84,11 @@ Sort_commons<size>::operator()(const Symbol* pa, const Symbol* pb) const
const Symbol_table* symtab = this->symtab_;
const Sized_symbol<size>* psa;
- psa = symtab->get_sized_symbol SELECT_SIZE_NAME (pa
- SELECT_SIZE(size));
+ 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 (pb
- SELECT_SIZE(size));
+ psb = symtab->get_sized_symbol SELECT_SIZE_NAME(size) (pb
+ SELECT_SIZE(size));
typename Sized_symbol<size>::Size_type sa = psa->symsize();
typename Sized_symbol<size>::Size_type sb = psb->symsize();
@@ -153,8 +153,9 @@ Symbol_table::do_allocate_commons(const General_options&,
{
any = true;
Sized_symbol<size>* ssym;
- ssym = this->get_sized_symbol SELECT_SIZE_NAME (sym
- SELECT_SIZE(size));
+ ssym = this->get_sized_symbol SELECT_SIZE_NAME(size) (
+ sym
+ SELECT_SIZE(size));
if (ssym->value() > addralign)
addralign = ssym->value();
}
@@ -187,8 +188,8 @@ Symbol_table::do_allocate_commons(const General_options&,
break;
Sized_symbol<size>* ssym;
- ssym = this->get_sized_symbol SELECT_SIZE_NAME (sym
- SELECT_SIZE(size));
+ ssym = this->get_sized_symbol SELECT_SIZE_NAME(size) (sym
+ SELECT_SIZE(size));
off = align_address(off, ssym->value());