Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/libstdc++-v3 Add a forward declaratio...



details:   https://anonhg.NetBSD.org/src/rev/a2233e746651
branches:  trunk
changeset: 458534:a2233e746651
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jul 30 20:28:50 2019 +0000

description:
Add a forward declaration for the specialized __timepunct<wchar_t> destructor
that the dragonfly code needs to avoid "instantiation before specialization",
and an empty implementation for the generic code.

diffstat:

 external/gpl3/gcc/dist/libstdc++-v3/config/locale/generic/time_members.cc |  4 ++++
 external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_facets_nonio.h    |  2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 058669faeade -r a2233e746651 external/gpl3/gcc/dist/libstdc++-v3/config/locale/generic/time_members.cc
--- a/external/gpl3/gcc/dist/libstdc++-v3/config/locale/generic/time_members.cc Tue Jul 30 20:24:58 2019 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/config/locale/generic/time_members.cc Tue Jul 30 20:28:50 2019 +0000
@@ -205,6 +205,10 @@
       _M_data->_M_amonth11 = L"Nov";
       _M_data->_M_amonth12 = L"Dec";
     }
+  template<> 
+    __timepunct<wchar_t>::~__timepunct()
+   { 
+   }
 #endif
 
 _GLIBCXX_END_NAMESPACE_VERSION
diff -r 058669faeade -r a2233e746651 external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_facets_nonio.h
--- a/external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_facets_nonio.h    Tue Jul 30 20:24:58 2019 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_facets_nonio.h    Tue Jul 30 20:28:50 2019 +0000
@@ -328,6 +328,8 @@
 
 #ifdef _GLIBCXX_USE_WCHAR_T
   template<>
+    __timepunct<wchar_t>::~__timepunct();
+  template<>
     void
     __timepunct<wchar_t>::_M_initialize_timepunct(__c_locale __cloc);
 



Home | Main Index | Thread Index | Old Index