Avoid -Wattribute-alias warnings for long double compat symbols
[official-gcc.git] / libstdc++-v3 / src / c++11 / istream-inst.cc
blobf5a9666b18c3668d633cbda9b845e19ef47aef3d
1 // Explicit instantiation file.
3 // Copyright (C) 1997-2017 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 3, or (at your option)
9 // any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // Under Section 7 of GPL version 3, you are granted additional
17 // permissions described in the GCC Runtime Library Exception, version
18 // 3.1, as published by the Free Software Foundation.
20 // You should have received a copy of the GNU General Public License and
21 // a copy of the GCC Runtime Library Exception along with this program;
22 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 // <http://www.gnu.org/licenses/>.
26 // ISO C++ 14882:
29 #include <istream>
30 #include <iomanip>
32 namespace std _GLIBCXX_VISIBILITY(default)
34 _GLIBCXX_BEGIN_NAMESPACE_VERSION
36 template class basic_istream<char>;
37 template istream& ws(istream&);
38 template istream& operator>>(istream&, char&);
39 template istream& operator>>(istream&, unsigned char&);
40 template istream& operator>>(istream&, signed char&);
41 template istream& operator>>(istream&, char*);
42 template istream& operator>>(istream&, unsigned char*);
43 template istream& operator>>(istream&, signed char*);
45 template istream& operator>>(istream&, _Setfill<char>);
46 template istream& operator>>(istream&, _Setiosflags);
47 template istream& operator>>(istream&, _Resetiosflags);
48 template istream& operator>>(istream&, _Setbase);
49 template istream& operator>>(istream&, _Setprecision);
50 template istream& operator>>(istream&, _Setw);
52 template istream& istream::_M_extract(unsigned short&);
53 template istream& istream::_M_extract(unsigned int&);
54 template istream& istream::_M_extract(long&);
55 template istream& istream::_M_extract(unsigned long&);
56 template istream& istream::_M_extract(bool&);
57 #ifdef _GLIBCXX_USE_LONG_LONG
58 template istream& istream::_M_extract(long long&);
59 template istream& istream::_M_extract(unsigned long long&);
60 #endif
61 template istream& istream::_M_extract(float&);
62 template istream& istream::_M_extract(double&);
63 template istream& istream::_M_extract(long double&);
64 template istream& istream::_M_extract(void*&);
66 #ifdef _GLIBCXX_USE_WCHAR_T
67 template class basic_istream<wchar_t>;
68 template wistream& ws(wistream&);
69 template wistream& operator>>(wistream&, wchar_t&);
70 template wistream& operator>>(wistream&, wchar_t*);
72 template wistream& operator>>(wistream&, _Setfill<wchar_t>);
73 template wistream& operator>>(wistream&, _Setiosflags);
74 template wistream& operator>>(wistream&, _Resetiosflags);
75 template wistream& operator>>(wistream&, _Setbase);
76 template wistream& operator>>(wistream&, _Setprecision);
77 template wistream& operator>>(wistream&, _Setw);
79 template wistream& wistream::_M_extract(unsigned short&);
80 template wistream& wistream::_M_extract(unsigned int&);
81 template wistream& wistream::_M_extract(long&);
82 template wistream& wistream::_M_extract(unsigned long&);
83 template wistream& wistream::_M_extract(bool&);
84 #ifdef _GLIBCXX_USE_LONG_LONG
85 template wistream& wistream::_M_extract(long long&);
86 template wistream& wistream::_M_extract(unsigned long long&);
87 #endif
88 template wistream& wistream::_M_extract(float&);
89 template wistream& wistream::_M_extract(double&);
90 template wistream& wistream::_M_extract(long double&);
91 template wistream& wistream::_M_extract(void*&);
92 #endif
94 _GLIBCXX_END_NAMESPACE_VERSION
95 } // namespace
97 // XXX GLIBCXX_ABI Deprecated
98 #ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
100 #pragma GCC diagnostic ignored "-Wattribute-alias"
102 #define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \
103 extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak))
104 _GLIBCXX_LDBL_COMPAT (_ZNSirsERd, _ZNSirsERe);
105 #ifdef _GLIBCXX_USE_WCHAR_T
106 _GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEErsERd,
107 _ZNSt13basic_istreamIwSt11char_traitsIwEErsERe);
108 #endif
109 _GLIBCXX_LDBL_COMPAT (_ZNSi10_M_extractIdEERSiRT_,
110 _ZNSi10_M_extractIeEERSiRT_);
111 #ifdef _GLIBCXX_USE_WCHAR_T
112 _GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIdEERS2_RT_,
113 _ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIeEERS2_RT_);
114 #endif
116 #endif // _GLIBCXX_LONG_DOUBLE_COMPAT