This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add implicit C linkage for win32-specific entry points
- From: Jason Merrill <jason at redhat dot com>
- To: Jacek Caban <cjacek at gmail dot com>, Kai Tietz <ktietz70 at googlemail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 12 Sep 2013 08:38:03 -0400
- Subject: Re: Add implicit C linkage for win32-specific entry points
- Authentication-results: sourceware.org; auth=none
- References: <52318A7E dot 6020009 at gmail dot com> <CAEwic4YeYZgso6h6o7z_fQRy+u6O+hA0O0rR7Yw700P6tkF+3w at mail dot gmail dot com> <523196CA dot 4010108 at gmail dot com>
On 09/12/2013 06:26 AM, Jacek Caban wrote:
+@deftypefn {C Target Hook} bool TARGET_CXX_IMPLICIT_EXTERN_C (const char*@var{})
+Define this hook to add target-specific C++ implicit extern C functions. An example of such function is WinMain on Win32 targets.
+@end deftypefn
Let's clarify this a bit. Perhaps add a middle sentence,
If this function returns true for the name of a file-scope function,
that function implicitly gets extern "C" linkage rather than whatever
language linkage the declaration would normally have.
OK with that change.
Jason