diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-19 06:01:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-19 06:01:35 +0000 |
commit | 8ae3da9046f6ef7b39eaf19cc85ee05f5c002c07 (patch) | |
tree | 7d6d163c8573512f0c154f858467e78c6f380241 /gold/common.cc | |
parent | f81c953f3a5b458b6cc06b929951b68a7c0e01d6 (diff) | |
download | binutils-8ae3da9046f6ef7b39eaf19cc85ee05f5c002c07.zip binutils-8ae3da9046f6ef7b39eaf19cc85ee05f5c002c07.tar.gz binutils-8ae3da9046f6ef7b39eaf19cc85ee05f5c002c07.tar.bz2 |
Add control over template specialization.
Diffstat (limited to 'gold/common.cc')
-rw-r--r-- | gold/common.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gold/common.cc b/gold/common.cc index e83219c..40d4f95 100644 --- a/gold/common.cc +++ b/gold/common.cc @@ -116,9 +116,21 @@ void Symbol_table::allocate_commons(const General_options& options, Layout* layout) { if (this->get_size() == 32) - this->do_allocate_commons<32>(options, layout); + { +#if defined(HAVE_TARGET_32_LITTLE) || defined(HAVE_TARGET_32_BIG) + this->do_allocate_commons<32>(options, layout); +#else + gold_unreachable(); +#endif + } else if (this->get_size() == 64) - this->do_allocate_commons<64>(options, layout); + { +#if defined(HAVE_TARGET_64_LITTLE) || defined(HAVE_TARGET_64_BIG) + this->do_allocate_commons<64>(options, layout); +#else + gold_unreachable(); +#endif + } else gold_unreachable(); } |