This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add implicit C linkage for win32-specific entry points


On 09/12/13 14:38, Jason Merrill wrote:
> 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.

Thanks for review, a patch with that change is attached.

Jacek


Attachment: patch.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]