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

2013-09-13 Thread Kai Tietz
Applied at revision 202573. Thanks, Kai

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

2013-09-12 Thread Jacek Caban
> language linkage the declaration would normally have. > > OK with that change. Thanks for review, a patch with that change is attached. Jacek commit 2647e6d0a095658829e275a96b63814b488e0451 Author: Jacek Caban Date: Sat Dec 29 18:06:39 2012 +0100 Add implicit C linkage fo

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

2013-09-12 Thread Jason Merrill
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

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

2013-09-12 Thread Jacek Caban
o a look to it. I attached a fixed version. Thanks for review. Jacek commit b0d56c97c651b1d91e66fb8153e0270dd2e8817c Author: Jacek Caban Date: Sat Dec 29 18:06:39 2012 +0100 Add implicit C linkage for win32-specific entry points gcc/c-family/ChangeLog: c-target.de

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

2013-09-12 Thread Kai Tietz
Hi Jacek, 2013/9/12 Jacek Caban : > Hi, > > This is a resend after I'm done with assignment paper work. > > gcc/c-family/ChangeLog: > c-target.def: New hook > > gcc/ChangeLog: > config/config.gcc: Use new winnt-c.c target hooks > config/t-winnt: New file > c

Add implicit C linkage for win32-specific entry points

2013-09-12 Thread Jacek Caban
ec 29 18:06:39 2012 +0100 Add implicit C linkage for win32-specific entry points gcc/c-family/ChangeLog: c-target.def: New hook gcc/ChangeLog: config/config.gcc: Use new winnt-c.c target hooks config/t-winnt: New file config/winnt-c.c: New

[PATCH] Add implicit C linkage for win32-specific entry points

2013-05-04 Thread Jacek Caban
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

Re: [PATCH resend] Add implicit C linkage for win32-specific entry points

2012-06-18 Thread Steven Bosscher
On Mon, Jun 18, 2012 at 12:54 PM, Jacek Caban wrote: > > 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

[PATCH resend] Add implicit C linkage for win32-specific entry points

2012-06-18 Thread Jacek Caban
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 tests --- gcc/config/i386/mingw-w64.h |

Re: Ping: [PATCH] Add implicit C linkage for win32-specific entry points

2012-06-15 Thread Kai Tietz
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

Re: Ping: [PATCH] Add implicit C linkage for win32-specific entry points

2012-06-15 Thread 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 rights here, you need a Windows maintaine

Ping: [PATCH] Add implicit C linkage for win32-specific entry points

2012-06-14 Thread NightStrike
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?

[PATCH] Add implicit C linkage for win32-specific entry points

2012-03-31 Thread Jacek Caban
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

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

2012-03-31 Thread Eric Botcazou
> 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 >

[PATCH] Add implicit C linkage for win32-specific entry points

2012-03-31 Thread Jacek Caban
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 *