Re: [Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-08 Thread LIU Hao
在 2022-10-08 21:15, Pali Rohár 写道: Is not _CRTIMP automatically marking variable with dllimport and instruct compiler to convert variable name to __imp_name* pointer? Not always, at least. When building the CRT itself, where `_CRTBLD` is defined, `_CRTIMP` is defined as empty. I am unclear ab

Re: [Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-08 Thread Pali Rohár
On Saturday 08 October 2022 20:07:56 LIU Hao wrote: > 在 2022/10/8 19:10, Pali Rohár 写道: > > _HUGE global variable is available and exported from crtdll and msvcrt > > libraries. So declare it explicitly via _CRTIMP as global variable and not > > via __MINGW_IMP_SYMBOL pointer. > > --- > > I suspec

Re: [Mingw-w64-public] [PATCHv2] Update .gitignore files

2022-10-08 Thread LIU Hao
在 2022/10/8 20:03, JonY via Mingw-w64-public 写道: On 10/8/22 09:56, LIU Hao wrote: Ignore `libtool` as well. Looks good to me. Thanks. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-p

Re: [Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-08 Thread LIU Hao
在 2022/10/8 19:10, Pali Rohár 写道: _HUGE global variable is available and exported from crtdll and msvcrt libraries. So declare it explicitly via _CRTIMP as global variable and not via __MINGW_IMP_SYMBOL pointer. --- I suspect you are linking to the `_HUGE` in 'math/_huge.c'. I'm really not s

Re: [Mingw-w64-public] [PATCHv2] Update .gitignore files

2022-10-08 Thread JonY via Mingw-w64-public
On 10/8/22 09:56, LIU Hao wrote: Ignore `libtool` as well. Looks good to me. ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-08 Thread Pali Rohár
_HUGE global variable is available and exported from crtdll and msvcrt libraries. So declare it explicitly via _CRTIMP as global variable and not via __MINGW_IMP_SYMBOL pointer. --- I'm really not sure what was the reason to define _HUGE via macro __MINGW_IMP_SYMBOL poinster. So maybe there is a re

[Mingw-w64-public] [PATCHv2] Update .gitignore files

2022-10-08 Thread LIU Hao
Ignore `libtool` as well. -- Best regards, LIU Hao From 63bcf31b48d7ead90a1f176436ab55992f7acc1b Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 8 Oct 2022 00:58:20 +0800 Subject: [PATCH] Update .gitignore files Signed-off-by: LIU Hao --- .gitignore | 36 +