189857Sobrien// Compatibility symbols for previous versions -*- C++ -*-
289857Sobrien
338889Sjdp// Copyright (C) 2005-2015 Free Software Foundation, Inc.
489857Sobrien//
589857Sobrien// This file is part of the GNU ISO C++ Library.  This library is free
689857Sobrien// software; you can redistribute it and/or modify it under the
789857Sobrien// terms of the GNU General Public License as published by the
889857Sobrien// Free Software Foundation; either version 3, or (at your option)
989857Sobrien// any later version.
1089857Sobrien
1133965Sjdp// This library is distributed in the hope that it will be useful,
1289857Sobrien// but WITHOUT ANY WARRANTY; without even the implied warranty of
1389857Sobrien// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1433965Sjdp// GNU General Public License for more details.
1533965Sjdp
1633965Sjdp// Under Section 7 of GPL version 3, you are granted additional
1733965Sjdp// permissions described in the GCC Runtime Library Exception, version
1833965Sjdp// 3.1, as published by the Free Software Foundation.
1989857Sobrien
2089857Sobrien// You should have received a copy of the GNU General Public License and
21130561Sobrien// a copy of the GCC Runtime Library Exception along with this program;
2289857Sobrien// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2389857Sobrien// <http://www.gnu.org/licenses/>.
2489857Sobrien
2533965Sjdp#define _GLIBCXX_USE_CXX11_ABI 0
2633965Sjdp#include <bits/c++config.h>
2733965Sjdp
2889857Sobrien#if defined(_GLIBCXX_SYMVER_GNU) && defined(_GLIBCXX_SHARED) \
2938889Sjdp    && defined(_GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE)\
3033965Sjdp    && defined(_GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT)
3133965Sjdp#define istreambuf_iterator istreambuf_iteratorXX
3233965Sjdp#define basic_fstream basic_fstreamXX
3333965Sjdp#define basic_ifstream basic_ifstreamXX
3433965Sjdp#define basic_ofstream basic_ofstreamXX
3533965Sjdp#define _M_copy(a, b, c) _M_copyXX(a, b, c)
3633965Sjdp#define _M_move(a, b, c) _M_moveXX(a, b, c)
3738889Sjdp#define _M_assign(a, b, c) _M_assignXX(a, b, c)
3833965Sjdp#define _M_disjunct(a) _M_disjunctXX(a)
3938889Sjdp#define _M_check_length(a, b, c) _M_check_lengthXX(a, b, c)
4038889Sjdp#define _M_set_length_and_sharable(a) _M_set_length_and_sharableXX(a)
4189857Sobrien#define ignore ignoreXX
4238889Sjdp#define eq eqXX
4338889Sjdp#define _List_node_base _List_node_baseXX
4438889Sjdp#endif
4538889Sjdp
4638889Sjdp#include <string>
4738889Sjdp#include <istream>
4838889Sjdp#include <fstream>
4989857Sobrien#include <sstream>
5038889Sjdp#include <cmath>
5189857Sobrien#include <ext/numeric_traits.h>
5289857Sobrien
5338889Sjdpnamespace std _GLIBCXX_VISIBILITY(default)
5438889Sjdp{
5538889Sjdp_GLIBCXX_BEGIN_NAMESPACE_VERSION
5638889Sjdp
5733965Sjdp  // std::istream ignore explicit specializations.
5833965Sjdp  template<>
5989857Sobrien    basic_istream<char>&
6033965Sjdp    basic_istream<char>::
6133965Sjdp    ignore(streamsize __n)
6233965Sjdp    {
6389857Sobrien      if (__n == 1)
6489857Sobrien	return ignore();
6589857Sobrien
6689857Sobrien      _M_gcount = 0;
6789857Sobrien      sentry __cerb(*this, true);
6833965Sjdp      if ( __n > 0 && __cerb)
6933965Sjdp	{
7038889Sjdp	  ios_base::iostate __err = ios_base::goodbit;
7138889Sjdp	  __try
7238889Sjdp	    {
7338889Sjdp	      const int_type __eof = traits_type::eof();
7433965Sjdp	      __streambuf_type* __sb = this->rdbuf();
7533965Sjdp	      int_type __c = __sb->sgetc();
7689857Sobrien
7733965Sjdp	      // See comment in istream.tcc.
7833965Sjdp	      bool __large_ignore = false;
7933965Sjdp	      while (true)
8033965Sjdp		{
8133965Sjdp		  while (_M_gcount < __n
8233965Sjdp			 && !traits_type::eq_int_type(__c, __eof))
8333965Sjdp		    {
8433965Sjdp		      streamsize __size = std::min(streamsize(__sb->egptr()
8589857Sobrien							      - __sb->gptr()),
86130561Sobrien					          streamsize(__n - _M_gcount));
87130561Sobrien		      if (__size > 1)
88130561Sobrien			{
89130561Sobrien			  __sb->__safe_gbump(__size);
90130561Sobrien			  _M_gcount += __size;
91130561Sobrien			  __c = __sb->sgetc();
92130561Sobrien			}
93130561Sobrien		      else
94130561Sobrien			{
95130561Sobrien			  ++_M_gcount;
96130561Sobrien			  __c = __sb->snextc();
97130561Sobrien			}
9833965Sjdp		    }
9933965Sjdp		  if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max
10033965Sjdp		      && !traits_type::eq_int_type(__c, __eof))
10189857Sobrien		    {
10233965Sjdp		      _M_gcount =
10333965Sjdp			__gnu_cxx::__numeric_traits<streamsize>::__min;
10433965Sjdp		      __large_ignore = true;
10533965Sjdp		    }
10660484Sobrien		  else
10760484Sobrien		    break;
10860484Sobrien		}
10960484Sobrien
11060484Sobrien	      if (__large_ignore)
11160484Sobrien		_M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max;
11233965Sjdp
11360484Sobrien	      if (traits_type::eq_int_type(__c, __eof))
11460484Sobrien		__err |= ios_base::eofbit;
115130561Sobrien	    }
11633965Sjdp	  __catch(__cxxabiv1::__forced_unwind&)
11733965Sjdp	    {
11833965Sjdp	      this->_M_setstate(ios_base::badbit);
11933965Sjdp	      __throw_exception_again;
12033965Sjdp	    }
12133965Sjdp	  __catch(...)
12233965Sjdp	    { this->_M_setstate(ios_base::badbit); }
12333965Sjdp	  if (__err)
12438889Sjdp	    this->setstate(__err);
125130561Sobrien	}
12633965Sjdp      return *this;
12789857Sobrien    }
12889857Sobrien
12933965Sjdp#ifdef _GLIBCXX_USE_WCHAR_T
13033965Sjdp  template<>
13133965Sjdp    basic_istream<wchar_t>&
13233965Sjdp    basic_istream<wchar_t>::
13392828Sobrien    ignore(streamsize __n)
13433965Sjdp    {
13533965Sjdp      if (__n == 1)
13633965Sjdp	return ignore();
13738889Sjdp
13889857Sobrien      _M_gcount = 0;
13938889Sjdp      sentry __cerb(*this, true);
14089857Sobrien      if (__n > 0 && __cerb)
14189857Sobrien	{
142130561Sobrien	  ios_base::iostate __err = ios_base::goodbit;
143130561Sobrien	  __try
144130561Sobrien	    {
145130561Sobrien	      const int_type __eof = traits_type::eof();
146130561Sobrien	      __streambuf_type* __sb = this->rdbuf();
147130561Sobrien	      int_type __c = __sb->sgetc();
148130561Sobrien
149130561Sobrien	      bool __large_ignore = false;
150130561Sobrien	      while (true)
151130561Sobrien		{
152130561Sobrien		  while (_M_gcount < __n
153130561Sobrien			 && !traits_type::eq_int_type(__c, __eof))
154130561Sobrien		    {
155130561Sobrien		      streamsize __size = std::min(streamsize(__sb->egptr()
156130561Sobrien							      - __sb->gptr()),
157130561Sobrien						  streamsize(__n - _M_gcount));
15889857Sobrien		      if (__size > 1)
15989857Sobrien			{
160130561Sobrien			  __sb->__safe_gbump(__size);
161130561Sobrien			  _M_gcount += __size;
162130561Sobrien			  __c = __sb->sgetc();
163130561Sobrien			}
16489857Sobrien		      else
165130561Sobrien			{
166130561Sobrien			  ++_M_gcount;
167130561Sobrien			  __c = __sb->snextc();
168130561Sobrien			}
169130561Sobrien		    }
170130561Sobrien		  if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max
171130561Sobrien		      && !traits_type::eq_int_type(__c, __eof))
172130561Sobrien		    {
173130561Sobrien		      _M_gcount =
174130561Sobrien			__gnu_cxx::__numeric_traits<streamsize>::__min;
175130561Sobrien		      __large_ignore = true;
176130561Sobrien		    }
177130561Sobrien		  else
178130561Sobrien		    break;
179130561Sobrien		}
180130561Sobrien
181130561Sobrien	      if (__large_ignore)
182130561Sobrien		_M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max;
183130561Sobrien
184130561Sobrien	      if (traits_type::eq_int_type(__c, __eof))
185130561Sobrien		__err |= ios_base::eofbit;
186130561Sobrien	    }
187130561Sobrien	  __catch(__cxxabiv1::__forced_unwind&)
188130561Sobrien	    {
189130561Sobrien	      this->_M_setstate(ios_base::badbit);
190130561Sobrien	      __throw_exception_again;
191130561Sobrien	    }
192130561Sobrien	  __catch(...)
193130561Sobrien	    { this->_M_setstate(ios_base::badbit); }
194130561Sobrien	  if (__err)
195130561Sobrien	    this->setstate(__err);
196130561Sobrien	}
197130561Sobrien      return *this;
198130561Sobrien    }
199130561Sobrien#endif
200130561Sobrien
201130561Sobrien_GLIBCXX_END_NAMESPACE_VERSION
202130561Sobrien} // namespace std
20360484Sobrien
20460484Sobrien
20538889Sjdp// NB: These symbols renames should go into the shared library only,
20660484Sobrien// and only those shared libraries that support versioning.
20760484Sobrien#if defined(_GLIBCXX_SYMVER_GNU) && defined(_GLIBCXX_SHARED) \
20860484Sobrien    && defined(_GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE) \
20938889Sjdp    && defined(_GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT)
21060484Sobrien
21138889Sjdp/* gcc-3.4.4
21260484Sobrien_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv
21360484Sobrien_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv
21460484Sobrien */
21560484Sobrien
21660484Sobriennamespace std _GLIBCXX_VISIBILITY(default)
21760484Sobrien{
21860484Sobrien_GLIBCXX_BEGIN_NAMESPACE_VERSION
21960484Sobrien
22060484Sobrien  template
22160484Sobrien    istreambuf_iterator<char>&
22260484Sobrien    istreambuf_iterator<char>::operator++();
22360484Sobrien
22460484Sobrien#ifdef _GLIBCXX_USE_WCHAR_T
22560484Sobrien  template
22660484Sobrien    istreambuf_iterator<wchar_t>&
22760484Sobrien    istreambuf_iterator<wchar_t>::operator++();
22860484Sobrien#endif
22960484Sobrien
23060484Sobrien_GLIBCXX_END_NAMESPACE_VERSION
23160484Sobrien} // namespace std
23260484Sobrien
23360484Sobrien
23460484Sobrien/* gcc-4.0.0
23560484Sobrien_ZNSs4_Rep26_M_set_length_and_sharableEj
23660484Sobrien_ZNSs7_M_copyEPcPKcj
23760484Sobrien_ZNSs7_M_moveEPcPKcj
23860484Sobrien_ZNSs9_M_assignEPcjc
23960484Sobrien_ZNKSs11_M_disjunctEPKc
24060484Sobrien_ZNKSs15_M_check_lengthEjjPKc
24160484Sobrien_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj
24260484Sobrien_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwj
24389857Sobrien_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwj
24460484Sobrien_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwjw
24560484Sobrien_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw
24660484Sobrien_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEjjPKc
24760484Sobrien
24860484Sobrien_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv
24960484Sobrien_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv
25060484Sobrien_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv
25160484Sobrien_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv
25260484Sobrien_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv
25360484Sobrien_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv
25460484Sobrien
25560484Sobrien_ZNSi6ignoreEi
25660484Sobrien_ZNSi6ignoreEv
25760484Sobrien_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi
25860484Sobrien_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv
25960484Sobrien
26060484Sobrien_ZNSt11char_traitsIcE2eqERKcS2_
26160484Sobrien_ZNSt11char_traitsIwE2eqERKwS2_
26260484Sobrien */
26360484Sobriennamespace std _GLIBCXX_VISIBILITY(default)
26460484Sobrien{
26560484Sobrien_GLIBCXX_BEGIN_NAMESPACE_VERSION
26689857Sobrien
26760484Sobrien  // std::char_traits is explicitly specialized
26860484Sobrien  bool (* __p1)(const char&, const char&) = &char_traits<char>::eq;
26960484Sobrien
27060484Sobrien  // std::string
27160484Sobrien  template
27260484Sobrien    void
27360484Sobrien    basic_string<char>::_M_copy(char*, const char*, size_t);
274
275  template
276    void
277    basic_string<char>::_M_move(char*, const char*, size_t);
278
279  template
280    void
281    basic_string<char>::_M_assign(char*, size_t, char);
282
283  template
284    bool
285    basic_string<char>::_M_disjunct(const char*) const;
286
287  template
288    void
289    basic_string<char>::_M_check_length(size_t, size_t, const char*) const;
290
291  template
292    void
293    basic_string<char>::_Rep::_M_set_length_and_sharable(size_t);
294
295
296  // std::istream
297  template
298    basic_istream<char>&
299    basic_istream<char>::ignore();
300
301  template
302    bool
303    basic_fstream<char>::is_open() const;
304
305  template
306    bool
307    basic_ifstream<char>::is_open() const;
308
309  template
310    bool
311    basic_ofstream<char>::is_open() const;
312
313#ifdef _GLIBCXX_USE_WCHAR_T
314  bool (* __p2)(const wchar_t&, const wchar_t&) = &char_traits<wchar_t>::eq;
315
316  // std::wstring
317  template
318    void
319    basic_string<wchar_t>::_M_copy(wchar_t*, const wchar_t*, size_t);
320
321  template
322    void
323    basic_string<wchar_t>::_M_move(wchar_t*, const wchar_t*, size_t);
324
325  template
326    void
327    basic_string<wchar_t>::_M_assign(wchar_t*, size_t, wchar_t);
328
329  template
330    bool
331    basic_string<wchar_t>::_M_disjunct(const wchar_t*) const;
332
333  template
334    void
335    basic_string<wchar_t>::_M_check_length(size_t, size_t,
336					   const char*) const;
337
338  template
339    void
340    basic_string<wchar_t>::_Rep::_M_set_length_and_sharable(size_t);
341
342  template
343    basic_istream<wchar_t>&
344    basic_istream<wchar_t>::ignore();
345
346  template
347    bool
348    basic_fstream<wchar_t>::is_open() const;
349
350  template
351    bool
352    basic_ifstream<wchar_t>::is_open() const;
353
354  template
355    bool
356    basic_ofstream<wchar_t>::is_open() const;
357#endif
358
359_GLIBCXX_END_NAMESPACE_VERSION
360} // namespace std
361
362// The rename syntax for default exported names is
363//   asm (".symver name1,exportedname@GLIBCXX_3.4")
364//   asm (".symver name2,exportedname@@GLIBCXX_3.4.5")
365// In the future, GLIBCXX_ABI > 6 should remove all uses of
366// _GLIBCXX_*_SYMVER macros in this file.
367
368#define _GLIBCXX_3_4_SYMVER(XXname, name) \
369   extern "C" void \
370   _X##name() \
371   __attribute__ ((alias(#XXname))); \
372   asm (".symver " "_X" #name "," #name "@GLIBCXX_3.4");
373
374#define _GLIBCXX_3_4_5_SYMVER(XXname, name) \
375   extern "C" void \
376   _Y##name() \
377   __attribute__ ((alias(#XXname))); \
378   asm (".symver " "_Y" #name  "," #name "@@GLIBCXX_3.4.5");
379
380#define _GLIBCXX_ASM_SYMVER(cur, old, version) \
381   asm (".symver " #cur "," #old "@@" #version);
382
383#define _GLIBCXX_APPLY_SYMVER _GLIBCXX_3_4_SYMVER
384#include <bits/compatibility.h>
385#undef _GLIBCXX_APPLY_SYMVER
386
387#define _GLIBCXX_APPLY_SYMVER _GLIBCXX_3_4_5_SYMVER
388#include <bits/compatibility.h>
389#undef _GLIBCXX_APPLY_SYMVER
390
391
392/* gcc-3.4.0
393_ZN10__gnu_norm15_List_node_base4hookEPS0_;
394_ZN10__gnu_norm15_List_node_base4swapERS0_S1_;
395_ZN10__gnu_norm15_List_node_base6unhookEv;
396_ZN10__gnu_norm15_List_node_base7reverseEv;
397_ZN10__gnu_norm15_List_node_base8transferEPS0_S1_;
398*/
399#include "list.cc"
400_GLIBCXX_ASM_SYMVER(_ZNSt8__detail17_List_node_baseXX7_M_hookEPS0_, \
401_ZN10__gnu_norm15_List_node_base4hookEPS0_, \
402GLIBCXX_3.4)
403
404_GLIBCXX_ASM_SYMVER(_ZNSt8__detail17_List_node_baseXX4swapERS0_S1_, \
405_ZN10__gnu_norm15_List_node_base4swapERS0_S1_, \
406GLIBCXX_3.4)
407
408_GLIBCXX_ASM_SYMVER(_ZNSt8__detail17_List_node_baseXX9_M_unhookEv, \
409_ZN10__gnu_norm15_List_node_base6unhookEv, \
410GLIBCXX_3.4)
411
412_GLIBCXX_ASM_SYMVER(_ZNSt8__detail17_List_node_baseXX10_M_reverseEv, \
413_ZN10__gnu_norm15_List_node_base7reverseEv, \
414GLIBCXX_3.4)
415
416_GLIBCXX_ASM_SYMVER(_ZNSt8__detail17_List_node_baseXX11_M_transferEPS0_S1_, \
417_ZN10__gnu_norm15_List_node_base8transferEPS0_S1_, \
418GLIBCXX_3.4)
419#undef _List_node_base
420
421// gcc-4.1.0
422// Long double versions of "C" math functions.
423#if defined (_GLIBCXX_LONG_DOUBLE_COMPAT) \
424    || (defined (__arm__) && defined (__linux__) && defined (__ARM_EABI__)) \
425    || (defined (__hppa__) && defined (__linux__)) \
426    || (defined (__m68k__) && defined (__mcoldfire__) && defined (__linux__)) \
427    || (defined (__mips__) && defined (_ABIO32) && defined (__linux__)) \
428    || (defined (__sh__) && defined (__linux__) && __SIZEOF_SIZE_T__ == 4) \
429
430#define _GLIBCXX_MATHL_WRAPPER(name, argdecl, args, ver) \
431extern "C" double						\
432__ ## name ## l_wrapper argdecl					\
433{								\
434  return name args;						\
435}								\
436asm (".symver __" #name "l_wrapper, " #name "l@" #ver)
437
438#define _GLIBCXX_MATHL_WRAPPER1(name, ver) \
439  _GLIBCXX_MATHL_WRAPPER (name, (double x), (x), ver)
440
441#define _GLIBCXX_MATHL_WRAPPER2(name, ver) \
442  _GLIBCXX_MATHL_WRAPPER (name, (double x, double y), (x, y), ver)
443
444#ifdef _GLIBCXX_HAVE_ACOSL
445_GLIBCXX_MATHL_WRAPPER1 (acos, GLIBCXX_3.4.3);
446#endif
447#ifdef _GLIBCXX_HAVE_ASINL
448_GLIBCXX_MATHL_WRAPPER1 (asin, GLIBCXX_3.4.3);
449#endif
450#ifdef _GLIBCXX_HAVE_ATAN2L
451_GLIBCXX_MATHL_WRAPPER2 (atan2, GLIBCXX_3.4);
452#endif
453#ifdef _GLIBCXX_HAVE_ATANL
454_GLIBCXX_MATHL_WRAPPER1 (atan, GLIBCXX_3.4.3);
455#endif
456#ifdef _GLIBCXX_HAVE_CEILL
457_GLIBCXX_MATHL_WRAPPER1 (ceil, GLIBCXX_3.4.3);
458#endif
459#ifdef _GLIBCXX_HAVE_COSHL
460_GLIBCXX_MATHL_WRAPPER1 (cosh, GLIBCXX_3.4);
461#endif
462#ifdef _GLIBCXX_HAVE_COSL
463_GLIBCXX_MATHL_WRAPPER1 (cos, GLIBCXX_3.4);
464#endif
465#ifdef _GLIBCXX_HAVE_EXPL
466_GLIBCXX_MATHL_WRAPPER1 (exp, GLIBCXX_3.4);
467#endif
468#ifdef _GLIBCXX_HAVE_FLOORL
469_GLIBCXX_MATHL_WRAPPER1 (floor, GLIBCXX_3.4.3);
470#endif
471#ifdef _GLIBCXX_HAVE_FMODL
472_GLIBCXX_MATHL_WRAPPER2 (fmod, GLIBCXX_3.4.3);
473#endif
474#ifdef _GLIBCXX_HAVE_FREXPL
475_GLIBCXX_MATHL_WRAPPER (frexp, (double x, int *y), (x, y), GLIBCXX_3.4.3);
476#endif
477#ifdef _GLIBCXX_HAVE_HYPOTL
478_GLIBCXX_MATHL_WRAPPER2 (hypot, GLIBCXX_3.4);
479#endif
480#ifdef _GLIBCXX_HAVE_LDEXPL
481_GLIBCXX_MATHL_WRAPPER (ldexp, (double x, int y), (x, y), GLIBCXX_3.4.3);
482#endif
483#ifdef _GLIBCXX_HAVE_LOG10L
484_GLIBCXX_MATHL_WRAPPER1 (log10, GLIBCXX_3.4);
485#endif
486#ifdef _GLIBCXX_HAVE_LOGL
487_GLIBCXX_MATHL_WRAPPER1 (log, GLIBCXX_3.4);
488#endif
489#ifdef _GLIBCXX_HAVE_MODFL
490_GLIBCXX_MATHL_WRAPPER (modf, (double x, double *y), (x, y), GLIBCXX_3.4.3);
491#endif
492#ifdef _GLIBCXX_HAVE_POWL
493_GLIBCXX_MATHL_WRAPPER2 (pow, GLIBCXX_3.4);
494#endif
495#ifdef _GLIBCXX_HAVE_SINHL
496_GLIBCXX_MATHL_WRAPPER1 (sinh, GLIBCXX_3.4);
497#endif
498#ifdef _GLIBCXX_HAVE_SINL
499_GLIBCXX_MATHL_WRAPPER1 (sin, GLIBCXX_3.4);
500#endif
501#ifdef _GLIBCXX_HAVE_SQRTL
502_GLIBCXX_MATHL_WRAPPER1 (sqrt, GLIBCXX_3.4);
503#endif
504#ifdef _GLIBCXX_HAVE_TANHL
505_GLIBCXX_MATHL_WRAPPER1 (tanh, GLIBCXX_3.4);
506#endif
507#ifdef _GLIBCXX_HAVE_TANL
508_GLIBCXX_MATHL_WRAPPER1 (tan, GLIBCXX_3.4);
509#endif
510#endif // _GLIBCXX_LONG_DOUBLE_COMPAT
511
512#endif
513
514#ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
515extern void *_ZTVN10__cxxabiv123__fundamental_type_infoE[];
516extern void *_ZTVN10__cxxabiv119__pointer_type_infoE[];
517extern __attribute__((used, weak)) const char _ZTSe[2] = "e";
518extern __attribute__((used, weak)) const char _ZTSPe[3] = "Pe";
519extern __attribute__((used, weak)) const char _ZTSPKe[4] = "PKe";
520extern __attribute__((used, weak)) const void * const _ZTIe[2]
521  = { reinterpret_cast<const void *>
522      (&_ZTVN10__cxxabiv123__fundamental_type_infoE[2]),
523      reinterpret_cast<const void *>(_ZTSe) };
524extern __attribute__((used, weak)) const void * const _ZTIPe[4]
525  = { reinterpret_cast<const void *>
526      (&_ZTVN10__cxxabiv119__pointer_type_infoE[2]),
527      reinterpret_cast<const void *>(_ZTSPe),
528      reinterpret_cast<const void *>(0L),
529      reinterpret_cast<const void *>(_ZTIe) };
530extern __attribute__((used, weak)) const void * const _ZTIPKe[4]
531  = { reinterpret_cast<const void *>
532      (&_ZTVN10__cxxabiv119__pointer_type_infoE[2]),
533      reinterpret_cast<const void *>(_ZTSPKe),
534      reinterpret_cast<const void *>(1L),
535      reinterpret_cast<const void *>(_ZTIe) };
536#endif // _GLIBCXX_LONG_DOUBLE_COMPAT
537
538#ifdef _GLIBCXX_SYMVER_DARWIN
539#if (defined(__ppc__) || defined(__ppc64__)) && defined(_GLIBCXX_SHARED)
540/* __eprintf shouldn't have been made visible from libstdc++, or
541   anywhere, but on Mac OS X 10.4 it was defined in
542   libstdc++.6.0.3.dylib; so on that platform we have to keep defining
543   it to keep binary compatibility.  We can't just put the libgcc
544   version in the export list, because that doesn't work; once a
545   symbol is marked as hidden, it stays that way.  */
546
547#include <cstdio>
548#include <cstdlib>
549
550using namespace std;
551
552extern "C" void
553__eprintf(const char *string, const char *expression,
554	  unsigned int line, const char *filename)
555{
556  fprintf(stderr, string, expression, line, filename);
557  fflush(stderr);
558  abort();
559}
560#endif
561#endif
562