Daily bump.
[official-gcc.git] / libstdc++-v3 / src / compatibility-ldbl.cc
bloba9bdb8b09864b6a7935a88159f5c6fbd43ff06b4
1 // Compatibility symbols for -mlong-double-64 compatibility -*- C++ -*-
3 // Copyright (C) 2006, 2008, 2009, 2010
4 // Free Software Foundation, Inc.
5 //
6 // This file is part of the GNU ISO C++ Library. This library is free
7 // software; you can redistribute it and/or modify it under the
8 // terms of the GNU General Public License as published by the
9 // Free Software Foundation; either version 3, or (at your option)
10 // any later version.
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // Under Section 7 of GPL version 3, you are granted additional
18 // permissions described in the GCC Runtime Library Exception, version
19 // 3.1, as published by the Free Software Foundation.
21 // You should have received a copy of the GNU General Public License and
22 // a copy of the GCC Runtime Library Exception along with this program;
23 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 // <http://www.gnu.org/licenses/>.
26 #include <locale>
27 #include <cmath>
28 #include <tr1/functional>
30 #ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
32 #ifdef __LONG_DOUBLE_128__
33 #error "compatibility-ldbl.cc must be compiled with -mlong-double-64"
34 #endif
36 namespace std _GLIBCXX_VISIBILITY(default)
38 #define C char
39 template class num_get<C, istreambuf_iterator<C> >;
40 template class num_put<C, ostreambuf_iterator<C> >;
41 template class money_get<C, istreambuf_iterator<C> >;
42 template class money_put<C, ostreambuf_iterator<C> >;
43 template const num_put<C>& use_facet<num_put<C> >(const locale&);
44 template const num_get<C>& use_facet<num_get<C> >(const locale&);
45 template const money_put<C>& use_facet<money_put<C> >(const locale&);
46 template const money_get<C>& use_facet<money_get<C> >(const locale&);
47 template bool has_facet<num_put<C> >(const locale&);
48 template bool has_facet<num_get<C> >(const locale&);
49 template bool has_facet<money_put<C> >(const locale&);
50 template bool has_facet<money_get<C> >(const locale&);
51 #undef C
52 #ifdef _GLIBCXX_USE_WCHAR_T
53 #define C wchar_t
54 template class num_get<C, istreambuf_iterator<C> >;
55 template class num_put<C, ostreambuf_iterator<C> >;
56 template class money_get<C, istreambuf_iterator<C> >;
57 template class money_put<C, ostreambuf_iterator<C> >;
58 template const num_put<C>& use_facet<num_put<C> >(const locale&);
59 template const num_get<C>& use_facet<num_get<C> >(const locale&);
60 template const money_put<C>& use_facet<money_put<C> >(const locale&);
61 template const money_get<C>& use_facet<money_get<C> >(const locale&);
62 template bool has_facet<num_put<C> >(const locale&);
63 template bool has_facet<num_get<C> >(const locale&);
64 template bool has_facet<money_put<C> >(const locale&);
65 template bool has_facet<money_get<C> >(const locale&);
66 #undef C
67 #endif
70 // For std::tr1::hash<long double>::operator()
71 #define _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL
73 namespace std _GLIBCXX_VISIBILITY(default)
75 namespace tr1
77 #include "hash-long-double-aux.cc"
81 // std::tr1::hash<long double>::operator()
82 // and std::hash<long double>::operator()
83 // are the same, no need to duplicate them.
84 extern "C" void _ZNKSt4hashIeEclEe (void)
85 __attribute__((alias ("_ZNKSt3tr14hashIeEclEe")));
87 #endif