Hi,
This is another version of my old patch, changed to use target hooks as
requested by Steven Bosscher.
Tested on i686-w64-mingw32, x86_64-w64-mingw32 and
x86_64-unknown-linux-gnu, bootstrapped on x86_64-unknown-linux-gnu.
Disclaimer: the patch is in public domain.
(because I don't have
2012/6/15 Eric Botcazou :
>> Jacek Caban sent this:
>>
>> http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01987.html
>>
>> in response to this:
>>
>> http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01986.html
>>
>> But it never got reviewed. Could you review and commit?
>
> No, I don't have approval rig
> Jacek Caban sent this:
>
> http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01987.html
>
> in response to this:
>
> http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01986.html
>
> But it never got reviewed. Could you review and commit?
No, I don't have approval rights here, you need a Windows maintaine
Eric,
Jacek Caban sent this:
http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01987.html
in response to this:
http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01986.html
But it never got reviewed. Could you review and commit?
Fixed Changelog as requested by Eric. Thanks.
gcc/ChangeLog
* config/i386/mingw-w64.h: Specify entry points with implicit C linkage
gcc/cp/ChangeLog:
* decl.c: Allow custom target implicit C linkage
gcc/testsuite/ChangeLog:
* g++.dg/ext/main.C: Added implicit C linkage
> This is my first patch to GCC, so please let me know if I did something
> wrong. This patch fixes common annoyance on w64-mingw32 targets, where
> once needs to add explicit "C" linkage to make C++ app work with wmain
> entry point.
>
> * decl.c: Allow custom target implicit C linkage
>
This is my first patch to GCC, so please let me know if I did something
wrong. This patch fixes common annoyance on w64-mingw32 targets, where
once needs to add explicit "C" linkage to make C++ app work with wmain
entry point.
* decl.c: Allow custom target implicit C linkage
*