gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [PATCH, 4/4] Enable libstdc++ as a DLL on windows platforms.

Subject: Re: [PATCH, 4/4] Enable libstdc++ as a DLL on windows platforms.
From: Danny Smith
Date: Sat, 18 Jul 2009 17:35:51 +1200
On Sat, Jul 18, 2009 at 10:17 AM, Dave
Korn<dave.korn.cygwin@xxxxxxxxxxxxxx> wrote:
>
>  This is the final patch in the series, and the largest, but at the same time
> the most routine and mechanical.  It marks up the libstdc++ sources with macro
> annotations that denote which classes, templates, and global data items need
> to be explicitly imported by user applications.
>
> libstdc++-v3/ChangeLog:
>
>        * include/bits/c++config (_GLIBCXX_IMPORT): Add empty definition
>        for non-dllimport targets.
>        * include/std/iostream (cin): Annotate with _GLIBCXX_IMPORT.
>        (cout, cerr, clog): Likewise.
>        * include/std/stdexcept (class logic_error, domain_error,
>        invalid_argument, length_error, out_of_range, runtime_error,
>        range_error, underflow_error): Likewise.
>        * include/ext/concurrence.h (class __concurrence_lock_error,
>        __concurrence_unlock_error): Likewise.
>        * include/bits/locale_classes.tcc (template class collate<char>,
>        collate_byname<char>, collate<wchar_t>,
>        collate_byname<wchar_t>): Likewise.
>        * include/bits/locale_facets.tcc (template class numpunct<char>,
>        numpunct_byname<char>, num_get<char>, num_put<char>,
>        ctype_byname<char>, numpunct<wchar_t>, numpunct_byname<wchar_t>,
>        num_get<wchar_t>, num_put<wchar_t>, ctype_byname<wchar_t>): Likewise.
>        * include/bits/locale_classes.h (class locale, facet, id, _Impl,
>        locale::facet, locale::id, locale::_Impl): Likewise.
>        * include/bits/locale_facets.h (template class ctype<char>,
>        ctype<wchar_t>): Likewise.
>        * include/bits/basic_ios.tcc (template class basic_ios<char>,
>        basic_ios<wchar_t>): Likewise.
>        * include/bits/ios_base.h (class ios_base, failure, Init): Likewise.
>        * include/bits/istream.tcc (template class basic_istream<char>,
>        basic_iostream<char>, basic_istream<wchar_t>,
>        basic_iostream<wchar_t>): Likewise.
>        * include/bits/codecvt.h (template class codecvt_byname<char, char,
>        mbstate_t>, codecvt_byname<wchar_t, char, mbstate_t>): Likewise.
>        * include/bits/ostream.tcc (template class basic_ostream<char>,
>        basic_ostream<wchar_t>): Likewise.
>        * include/bits/sstream.tcc (template class basic_stringbuf<char>,
>        basic_istringstream<char>, basic_ostringstream<char>,
>        basic_stringstream<char>, basic_stringbuf<wchar_t>,
>        basic_istringstream<wchar_t>, basic_ostringstream<wchar_t>,
>        basic_stringstream<wchar_t>): Likewise.
>        * include/bits/basic_string.tcc (template class basic_string<char>,
>        basic_string<wchar_t>, related overloaded operator<<, operator>>,
>        getline): Likewise.
>        * include/bits/locale_facets_nonio.tcc (template class
>        moneypunct<char, false>, moneypunct<char, true>,
>        moneypunct_byname<char, false>, moneypunct_byname<char, true>,
>        money_get<char>, money_put<char>, __timepunct<char>, time_put<char>,
>        time_put_byname<char>, time_get<char>, time_get_byname<char>,
>        messages<char>, messages_byname<char>, moneypunct<wchar_t, false>,
>        moneypunct<wchar_t, true>, moneypunct_byname<wchar_t, false>,
>        moneypunct_byname<wchar_t, true>, money_get<wchar_t>,
>        money_put<wchar_t>, __timepunct<wchar_t>, time_put<wchar_t>,
>        time_put_byname<wchar_t>, time_get<wchar_t>, time_get_byname<wchar_t>,
>        messages<wchar_t>, messages_byname<wchar_t>): Likewise.
>        * include/bits/streambuf.tcc (template class basic_streambuf<char>,
>        basic_streambuf<wchar_t>): Likewise.
>        * include/bits/fstream.tcc (template class basic_filebuf<char>,
>        basic_ifstream<char>, basic_ofstream<char>, basic_fstream<char>,
>        basic_filebuf<wchar_t>, basic_ifstream<wchar_t>,
>        basic_ofstream<wchar_t>, basic_fstream<wchar_t>): Likewise.
>        * include/backward/strstream (class strstreambuf, istrstream,
>        ostrstream, strstream): Likewise.
>        * libsupc++/typeinfo (class type_info, bad_cast, bad_typeid): Likewise.
>        * libsupc++/exception (class exception, bad_exception): Likewise.
>        * libsupc++/new (class bad_alloc): Likewise.
>
>  Ok?
>

These are OK by me, as are parts 1 and 2.
>      DaveK
>
>

<Prev in Thread] Current Thread [Next in Thread>