Re: [Mingw-w64-public] [PATCH] headers: Include typeinfo in eh.h for std::type_info

2022-12-12 Thread LIU Hao
Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/crt/eh.h | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) Thanks for the patch. Looks good to me. Pushed. The Microsoft header doesn't contain , but it is required by the C++ standard anyway. -- Best regards, LI

Re: [Mingw-w64-public] [PATCH] crt: Remove unused lib64/moldname-msvcrt.def file

2022-12-12 Thread LIU Hao
-crt/lib64/moldname-msvcrt.def diff --git a/mingw-w64-crt/lib64/moldname-msvcrt.def b/mingw-w64-crt/lib64/moldname-msvcrt.def deleted file mode 100644 index 6f31518d5c82.. Thanks for the patch. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] #ifdef _MSVCRT_

2022-12-17 Thread LIU Hao
ctions are always `DECLSPEC_IMPORT`. So, when is `WINUSERAPI` defined empty? I suspect it's only effective when building USER32.DLL itself by Microsoft. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64

Re: [Mingw-w64-public] [PATCH] crt: Fix type of daylight, timezone and tzname symbols in msvcrt-common.def.in

2022-12-17 Thread LIU Hao
/msvcrt-common.def.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Thanks for catching this. This patch looks good to me. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64

Re: [Mingw-w64-public] [PATCH] crt: Fix building LTO version of mingw-w64 crt libraries

2022-12-17 Thread LIU Hao
which I think should be avoided? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] Remove old and unused msvcrt def file ms.def

2022-12-19 Thread LIU Hao
/sample/ms.def deleted file mode 100644 index 1cb08ef3e04d.. Hmm what does 'genstubdll' do? Looks like neither MSYS2 nor Debian builds it; maybe it can be removed completely? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] [PATCH 1/3] headers: Fix noreturn compile warning for __fastfail()

2022-12-19 Thread LIU Hao
these patches (except the one for removal of 'ms.def'). Pushed to master now. I am a bit unsure about 'ms.def': If genstubdll is no longer useful nowadays, I think it had better be removed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenP

Re: [Mingw-w64-public] [PATCH] headers: Add systemmediatransportcontrolsinterop.idl

2022-12-19 Thread LIU Hao
/include/systemmediatransportcontrolsinterop.idl Thanks for the patch. Looks good to me. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH 2/2] crt: Include moldname content for crtdll and msvcrt10, 20, 40, 70, 71

2022-12-20 Thread LIU Hao
you to acknowledge the status of this patch - see https://sourceforge.net/p/mingw-w64/mailman/message/37748083/. I can apply it when I get a chance - I'm quite swamped at the moment but trying to catch up - or then maybe someone else can push it. Okay, pushed now. -- Best regards, LI

Re: [Mingw-w64-public] interface macro conflicts with interface variable

2022-12-21 Thread LIU Hao
variable declared before '=' ``` If you define `WIN32_LEAN_AND_MEAN` (either `#define` it or pass `-DWIN32_LEAN_AND_MEAN` to GCC) before inclusion of , then the error will go away. This seems to be yet another reason why `WIN32_LEAN_AND_MEAN` should be preferred. -

Re: [Mingw-w64-public] interface macro conflicts with interface variable

2022-12-21 Thread LIU Hao
在 2022/12/21 17:06, Alvin Wong via Mingw-w64-public 写道: On 21/12/2022 16:45, LIU Hao wrote: If you define `WIN32_LEAN_AND_MEAN` (either `#define` it or pass `-DWIN32_LEAN_AND_MEAN` to GCC) before inclusion of , then the error will go away. This seems to be yet another reason why

Re: [Mingw-w64-public] interface macro conflicts with interface variable

2022-12-21 Thread LIU Hao
does not use COM will not get that unwanted macro; and when COM stuff is needed, COM headers can be included explicitly after . -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw

[Mingw-w64-public] [PATCH] genstubdll: Remove

2022-12-21 Thread LIU Hao
在 2022-12-20 02:49, Pali Rohár 写道: And I think that this decision is independent of tool itself if should be removed too or not. My point is that if this should be removed then we shouldn't behave as if it was being actively maintained. Patch attached. Thoughts? -- Best regards, LI

Re: [Mingw-w64-public] [PATCH] genstubdll: Remove

2022-12-23 Thread LIU Hao
在 2022-12-22 02:04, Jacek Caban 写道: Removal seems good to me. Thanks. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH 1/3] crt: Add non-inline variant of UCRT _scprintf, _snprintf and _snscanf functions

2022-12-23 Thread LIU Hao
ossible to provide unified non-inline *printf functions. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/list

Re: [Mingw-w64-public] [PATCH] crt: Fix building LTO version of mingw-w64 crt libraries

2022-12-23 Thread LIU Hao
dn't be built with `-flto`... This patch shouldn't affect non-LTO builds, so pushed for now. If there are any issues, please let me know. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-p

Re: [Mingw-w64-public] [PATCH] crt: Fix building LTO version of mingw-w64 crt libraries

2022-12-23 Thread LIU Hao
tested carefully. At the moment, these are `__xl_b`, `__xl_c` and `_tls_used`, but there might be more. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] crt: Fix building LTO version of mingw-w64 crt libraries

2022-12-23 Thread LIU Hao
output. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Use Windows 10 as default _WIN32_WINNT value.

2022-12-23 Thread LIU Hao
et when compiling Windows code. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] crt: Fix building LTO version of mingw-w64 crt libraries

2022-12-23 Thread LIU Hao
} ``` And with LTO it prints nothing. When I added __attribute__((used)) for those 3 symbols then it started printing "ő<". So the attribute seems necessary. Patches are welcome. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___

Re: [Mingw-w64-public] [PATCH] crt: Fix building LTO version of mingw-w64 crt libraries

2022-12-25 Thread LIU Hao
在 2022-12-25 02:19, Pali Rohár 写道: This patch fixes it! And also in LTO mode it prints "test thread atexit". Mostly good. Should `__xl_d` be given an attribute as well? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] [PATCH] headers: Add shcore.h

2022-12-26 Thread LIU Hao
there. The only issue I see in this patch is that there is a trailing comma on the line `BSOS_PREFERDESTINATIONSTREAM,` which we don't allow, so please remove that. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital sign

Re: [Mingw-w64-public] [RFC PATCH] headers: Add robuffer.idl to generate robuffer.h

2022-12-26 Thread LIU Hao
r.idl This patch looks good to me. Pushed to master. Thanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/

[Mingw-w64-public] [PATCH] crt: Preserve special variables when LTO is in effect

2022-12-26 Thread LIU Hao
-- Best regards, LIU Hao From 1288ab9f2a965bcca5513b36bd29e906c4b7ee2f Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Tue, 27 Dec 2022 14:32:37 +0800 Subject: [PATCH] crt: Preserve special variables when LTO is in effect Variables that are required to be placed in explicit sections probably have

Re: [Mingw-w64-public] [PATCH] crt: Preserve special variables when LTO is in effect

2022-12-27 Thread LIU Hao
ailed assert in LLVM's LTO, but this assert isn't enabled in release builds of LLBM.) So this patch is ok, and for LLVM LTO of the crt startup files, more work is needed. Thanks. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP di

Re: [Mingw-w64-public] [PATCH v2] headers: Add shcore.h

2022-12-27 Thread LIU Hao
Thanks for the update. Looks good to me now. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists

Re: [Mingw-w64-public] [PATCH] headers: Import msxml IDL files from wine

2022-12-28 Thread LIU Hao
在 2022-12-28 21:16, Biswapriyo Nath 写道: xmldom and and xmldso do not have their corresponding headers. So, those are not added in Makefile.am. Also make sure to match widl version. Thanks for the patch. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] [PATCH] crt: Use only __ImageBase symbol in mingw-w64 code

2022-12-28 Thread LIU Hao
eeded. Alternatively, we should always use `__MINGW_LSYMBOL(_image_base__)` and get rid of that `__ImageBase` thing. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Ming

Re: [Mingw-w64-public] [PATCH] crt: Use only __ImageBase symbol in mingw-w64 code

2022-12-29 Thread LIU Hao
在 2022-12-28 21:38, Pali Rohár 写道: Hello! I'm really really sorry :-( but I totally messed up my devel env during testing this change and this change in v2 does not work :-( OK I reverted these patches on master. New ideas will always be welcome. -- Best regards, LI

Re: [Mingw-w64-public] [PATCH] crt: Add msxml GUID library

2022-12-29 Thread LIU Hao
, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] Add more WTS APIs in

2022-12-31 Thread LIU Hao
they work. Looks like the patch didn't arrive. Please send it as a TXT file instead. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net

Re: [Mingw-w64-public] [PATCH] Add more WTS APIs in

2023-01-01 Thread LIU Hao
); These should be `WINBOOL` instead of `BOOL`, as the latter denotes something different in Objective-C. Other parts look good to me. Amended and pushed. Thanks for the work. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] headers: Fix macros in except.h

2023-01-07 Thread LIU Hao
/crt/excpt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Thanks for the patch. Looks good to me. pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list

Re: [Mingw-w64-public] [PATCH] headers: Add missing const qualifier in rpcdce.h

2023-01-12 Thread LIU Hao
Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/rpcdce.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Thanks for the patch. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] Add more WTS APIs in

2023-01-15 Thread LIU Hao
在 2023-01-15 13:23, Li Carter 写道: I’m sorry, but I missed `WINAPI` specifier for WTSFreeMemoryEx*, which breaks x86 build Ah, yes. I was distracted by the `BOOL` thing. Fixed in a57cacad31f5766d45959b6c0f9b122918d545fa. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP

Re: [Mingw-w64-public] Undefined reference to _set_doserrno w/ msvcrt

2023-01-19 Thread LIU Hao
e of these functions? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH 2/2] headers: Fix declaration of _wcsset_s_l and _wcsnset_s_l

2023-01-23 Thread LIU Hao
-w64-headers/crt/sec_api/string_s.h | 4 ++-- mingw-w64-headers/crt/sec_api/wchar_s.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) These patches look good to me. Pushed now. Thanks for the work. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] crt: Fix builtin declaration mismatch warning with ssp functions

2023-01-23 Thread LIU Hao
t/ssp/mempcpy_chk.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) Thanks for catching this. Pushed now, too. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-publ

Re: [Mingw-w64-public] Undefined reference to _set_doserrno w/ msvcrt

2023-01-23 Thread LIU Hao
在 2023-01-23 22:19, Luca Bacci 写道: Awesome! Thank you very much, LIU Hao and Martin Storsjö! Yes, making both _set_controlfp, _set_doserrno available in MSVCRT toolchains would be great! Should I prepare a patch? Yes if you can, and we'll be happy to check it in. -- Best regards

Re: [Mingw-w64-public] Undefined reference to _set_doserrno w/ msvcrt

2023-01-24 Thread LIU Hao
在 2023-01-24 00:07, Luca Bacci 写道: Ok, first tentative here. Let me know if anything needs to be changed! This patch looks good to me, but would you like to sign off your commit? You can do this with `git commit -s`. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP

Re: [Mingw-w64-public] [PATCH] headers: Add __CRT_UUID_DECL declarations in dbgeng.h

2023-01-24 Thread LIU Hao
in dbgeng.h Required for JDK Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/dbgeng.h | 66 ++ 1 file changed, 66 insertions(+) Thanks. This patch looks good to me. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description

Re: [Mingw-w64-public] Undefined reference to _set_doserrno w/ msvcrt

2023-01-31 Thread LIU Hao
在 2023/1/24 00:07, Luca Bacci 写道: Ok, first tentative here. Let me know if anything needs to be changed! Thank you, Luca Hi Luca. If you are not willing to sign off this patch I will check it in without the 'Signed-off-by:' line. -- Best regards, LIU Hao OpenPGP_signature D

Re: [Mingw-w64-public] Undefined reference to _set_doserrno w/ msvcrt

2023-01-31 Thread LIU Hao
在 2023-01-31 22:05, Luca Bacci 写道: Hi LIU, very sorry for the delay! I have now attached a patch with a proper sign-off Thanks for the patch. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] headers: Add support for _FORTIFY_SOURCE=3

2023-02-02 Thread LIU Hao
在 2023/2/2 06:41, Christian Franke 写道: This patch allows to use _FORTIFY_SOURCE=3 which is also supported by GLIBC headers. Thanks. This patch looks good to me. Pushed now. BTW does clang support this as well? I suspect we should add a check for clang too. -- Best regards, LIU Hao

Re: [Mingw-w64-public] [PATCH] headers: Add missing DXGI_COLOR_SPACE_TYPE enumeration values

2023-02-02 Thread LIU Hao
? Done now. Thanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Generate header from ivectorchangedeventargs.idl

2023-02-02 Thread LIU Hao
windows.foundation.collections.h. Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/Makefile.am | 1 + 1 file changed, 1 insertion(+) Thanks for the patch. Pushed now. Really, I thought I must have missed something... -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] Internal compiler error specific to MinGW when using -fstack-clash-protection and __attribute__((noreturn))

2023-02-04 Thread LIU Hao
在 2023-02-04 20:51, Théo Cavignac 写道: Sorry, I misclicked and sent an half written mail. So as I tried to expose, I am using MinGW with following configuration: This looks like a GCC issue. Reported here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 -- Best regards, LIU Hao

Re: [Mingw-w64-public] [PATCH] headers: _FORTIFY_SOURCE: Enhance missing open() argument warning

2023-02-04 Thread LIU Hao
atch looks good to me. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] crt: Fix misleading indentation warning with gcc

2023-02-05 Thread LIU Hao
: warning: this 'if' clause does not guard... [-Wmisleading-indentation] Signed-off-by: Biswapriyo Nath --- mingw-w64-crt/secapi/strerror_s.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Thanks for the patch. Pushed now. -- Best regards, LIU Hao OpenPGP_signature D

Re: [Mingw-w64-public] [PATCH] headers: Add support for _FORTIFY_SOURCE=3

2023-02-08 Thread LIU Hao
n the indention before `#define`? Pre-processor directives should not be indented. I have heard that some ancient compilers did not accept such indention, although all modern compilers seem fine about it. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital sign

Re: [Mingw-w64-public] string_s.h is missing a C++ overload

2023-02-10 Thread LIU Hao
/string_s.h | 1 + 1 file changed, 1 insertion(+) Thanks. This patch looks good to me. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Add missing FSCTL macros in winioctl.h

2023-02-11 Thread LIU Hao
--- mingw-w64-headers/include/winioctl.h | 161 ++- 1 file changed, 157 insertions(+), 4 deletions(-) Thanks. This patch looks good to me. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] headers: Fix ambigous declaration of the LeaseObtained and LeaseExpires fields of the IP_ADAPTER_INFO structure in iptypes.h

2023-02-13 Thread LIU Hao
much sense. Thanks for the patch. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo

Re: [Mingw-w64-public] [PATCH] crt: Implement __gets_chk

2023-02-13 Thread LIU Hao
insertions(+), 1 deletion(-) create mode 100644 mingw-w64-crt/ssp/gets_chk.c LGTM. Thanks. Side note: I am a bit curious how this function is supposed to be useful. Generally speaking `get()` should never be used. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] [PATCH] headers: Always warn if gets() is used

2023-02-14 Thread LIU Hao
me. Pushed now. Thanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] inttypes.h section (__CRTDLL__ || __MSVCRT_VERSION__ < 0x200) is always disabled

2023-02-15 Thread LIU Hao
was checked like `(defined(__USE_MINGW_ANSI_STDIO) && ((__USE_MINGW_ANSI_STDIO + 0) != 0))` but that was changed in a84fc015351e664519359214cbb08d6e21f42814 (which also contained a hunk against 'inttypes.h'). -- Best regards, LIU Hao OpenPGP_signature Desc

Re: [Mingw-w64-public] [PATCH] headers: Fix member variable in SYSTEM_POWER_STATUS

2023-02-19 Thread LIU Hao
/include/winbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Thanks for the patch. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Fix the signature of wcstok() for UCRT in string.h

2023-02-19 Thread LIU Hao
: Martin Storsjö --- mingw-w64-headers/crt/string.h | 4 1 file changed, 4 insertions(+) LGTM. Thanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] gcc shows warning with

2023-02-23 Thread LIU Hao
//gcc.godbolt.org/z/6z11qTYa7 -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] [PATCH] headers/intrin-impl: Expand `__movsd` to `movsl` in default AT&T syntax

2023-02-24 Thread LIU Hao
-- Best regards, LIU Hao From 00e46892b8e2407aa6ec47af4b5a793a170d5019 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Fri, 24 Feb 2023 23:38:52 +0800 Subject: [PATCH] headers/intrin-impl: Expand `__movsd` to `movsl` in default AT&T syntax This was originally reported on mailing lis

Re: [Mingw-w64-public] [PATCH] headers/intrin-impl: Expand `__movsd` to `movsl` in default AT&T syntax

2023-02-27 Thread LIU Hao
在 2023/2/24 23:45, LIU Hao 写道: From 00e46892b8e2407aa6ec47af4b5a793a170d5019 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Fri, 24 Feb 2023 23:38:52 +0800 Subject: [PATCH] headers/intrin-impl: Expand `__movsd` to `movsl` in default AT&T syntax This was originally reported on mailing lis

Re: [Mingw-w64-public] [PATCH] headers/intrin-impl: Expand `__movsd` to `movsl` in default AT&T syntax

2023-02-27 Thread LIU Hao
在 2023/2/27 18:30, JonY via Mingw-w64-public 写道: Makes sense to me, OK to commit. Thanks. Thanks for the review. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list

Re: [Mingw-w64-public] Question about -ffast-math on mingw-w64

2023-02-28 Thread LIU Hao
} ``` should set `errno` if `x` is negative or is a NaN. If `-fno-math-errno` is set, GCC doesn't check for NaN inputs and let the hardware propagate them. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature _

[Mingw-w64-public] [PATCH] inttypes: Fix check for `__USE_MINGW_ANSI_STDIO`

2023-03-01 Thread LIU Hao
-- Best regards, LIU Hao From a3cda37eed7ded9650e96bf246e611c13ce0d7f7 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Thu, 2 Mar 2023 14:51:07 +0800 Subject: [PATCH] inttypes: Fix check for `__USE_MINGW_ANSI_STDIO` Since a84fc015351e664519359214cbb08d6e21f42814 it's always defined, as 0

Re: [Mingw-w64-public] Cross compiling MinGW itself from Debian to Windows, linking libgcc_s fails

2023-03-01 Thread LIU Hao
在 2023/2/21 07:06, Ansel Sermersheim 写道: I’m trying to cross compile MinGW and GCC from a Debian system for use on Windows, and I’m running into trouble linking libgcc_s: Would you please try removing `--enable-lto`? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] [PATCH] inttypes: Fix check for `__USE_MINGW_ANSI_STDIO`

2023-03-02 Thread LIU Hao
在 2023/3/2 16:39, Martin Storsjö 写道: On Thu, 2 Mar 2023, LIU Hao wrote: -- LGTM, thank you! Thanks. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

Re: [Mingw-w64-public] Cross compiling MinGW itself from Debian to Windows, linking libgcc_s fails

2023-03-06 Thread LIU Hao
bootstrapped GCC 12 and there are no such symbols. Did you enable half-precision somehow? I am not familiar with half-precision floating point support; just guessing. Maybe you can get more helpful replies on gcc-h...@gcc.gnu.org. -- Best regards, LIU Hao OpenPGP_signature Descrip

Re: [Mingw-w64-public] [PATCH] headers: Allow opting out from the SEH based setjmp

2023-03-07 Thread LIU Hao
ooks like it was designed mainly for x86_64, in 5b99e86d446ae5971be734c1fa76a21c3adb7148? It was introduced one day earlier in 6ef8b92929cc918dc50fb6802839be61c0cfab7c, but without wording a purpose. -- Best regards, LIU Hao OpenPGP_signature Description:

Re: [Mingw-w64-public] [PATCH] headers: Allow opting out from the SEH based setjmp

2023-03-07 Thread LIU Hao
that, there is really only function to call, so how is the one-argument `_setjmp()` supposed to be useful? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-p

Re: [Mingw-w64-public] [PATCH] headers: Allow opting out from the SEH based setjmp

2023-03-07 Thread LIU Hao
t out? AFAICT the i686 `_setjmp()` takes one argument and the x86_64 one takes two; not sure about ARM. My opinion is that those #if conditions should check for the actual target macro, instead of `USE_NO_MINGW_SETJMP_TWO_ARGS` which can be removed thereafter. -- Best regards, LIU Hao OpenPGP_sign

Re: [Mingw-w64-public] [PATCH] headers: Add missing member in SECPKG_CLIENT_INFO struct

2023-03-07 Thread LIU Hao
-headers/include/ntsecpkg.h | 2 ++ 1 file changed, 2 insertions(+) Thanks for the patch. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH v2 2/2] headers: Remove the unused ifdefs for USE_NO_MINGW_SETJMP_TWO_ARGS

2023-03-08 Thread LIU Hao
在 2023/3/8 20:18, Martin Storsjö 写道: ... Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/setjmp.h | 72 +++--- 1 file changed, 31 insertions(+), 41 deletions(-) These patches look good to me. Thanks for the work. -- Best regards, LIU Hao

Re: [Mingw-w64-public] [PATCH] headers: Add new symbols in ntsecpkg.h

2023-03-09 Thread LIU Hao
/ntsecpkg.h | 369 ++- 1 file changed, 361 insertions(+), 8 deletions(-) Thanks. This patch looks good to me. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64

Re: [Mingw-w64-public] [PATCH] headers: Import mftransform.idl from wine

2023-03-18 Thread LIU Hao
: Biswapriyo Nath --- mingw-w64-headers/wine-import.sh | 1 + 1 file changed, 1 insertion(+) Thanks for the patch. Pushed now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

Re: [Mingw-w64-public] [PATCH] headers: explicitly define Reserved bits in DXVAHD_BLT_STATE, structures

2023-03-18 Thread LIU Hao
where necessary. This patch looks good to me. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/

Re: [Mingw-w64-public] [patch ]add UTF-8 support for dirname and basename

2023-03-20 Thread LIU Hao
Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [patch ]add UTF-8 support for dirname and basename

2023-03-20 Thread LIU Hao
e default. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] Fix mbrtoc32 function.

2023-03-20 Thread LIU Hao
wrong value. After correcting the bad array index the result is correct. --- mingw-w64-crt/misc/uchar_mbrtoc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Thanks for catching this. This patch looks correct to me. Pushed to master now. -- Best regards, LIU Hao

Re: [Mingw-w64-public] [patch ]add UTF-8 support for dirname and basename

2023-03-21 Thread LIU Hao
ale, without actually modifying it. In your patch you discard its result so it does nothing. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] [PATCH] crt: Make CRT buildable with `-masm=intel`

2023-03-21 Thread LIU Hao
64-mingw32-gcc; not sure whether anything goes wrong. Martin, would you please include this patch in your nightly tests? `-masm=intel` requires the latest Clang, though. Older versions do not accept Intel syntax in inline assembly (but they do output Intel syntax). -- Best regards, LI

Re: [Mingw-w64-public] [PATCH] crt: Make CRT buildable with `-masm=intel`

2023-03-22 Thread LIU Hao
seemed to want Intel syntax, but in that case it should look for the second alternative within { | }, not the other. Does GCC also give the same error? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___

Re: [Mingw-w64-public] [PATCH] crt: Make CRT buildable with `-masm=intel`

2023-03-22 Thread LIU Hao
at's not my experience. Oh yeah, indeed. Noted. I think I will have to move that thing into a .S file, or introduce more magic.. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing l

Re: [Mingw-w64-public] [PATCH] crt: Make CRT buildable with `-masm=intel`

2023-03-22 Thread LIU Hao
ks about that [1]; I hope I would not have to repeat myself [2]. [1] https://outerproduct.net/2021-02-13_att-asm.html [2] https://gcc.gnu.org/pipermail/gcc/2022-November/240103.html -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature _

[Mingw-w64-public] [PATCHv2] crt: Make CRT buildable with `-masm=intel`

2023-03-22 Thread LIU Hao
ith `-masm=att` and `-masm=intel`. No errors have been observed. The file '_scprintf.c' has been compiled with GCC, target i686-w64-mingw32 (it's i386-only and MSYS2 doesn't have an i386 clang environment), with `-masm=att` and `-masm=intel`. No errors have been observed.

Re: [Mingw-w64-public] [PATCH] crt: Make CRT buildable with `-masm=intel`

2023-03-22 Thread LIU Hao
some well established evilness, the patch is not bad itself. You may commit it as appropriate. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net

Re: [Mingw-w64-public] [PATCH] rewrite the dirname.c and basename.c without wide character processing

2023-03-22 Thread LIU Hao
er a path separator), and will not a mistake non-leading byte as a path separator. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] rewrite the dirname.c and basename.c without wide character processing

2023-03-23 Thread LIU Hao
needs no special treatment. I think I can propose a reimplementation when I have time. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge

[Mingw-w64-public] [PATCH] crt: Remove conversion functions between UTF-{16, 32} characters from MSVCRT

2023-03-24 Thread LIU Hao
-- Best regards, LIU Hao From 544a196787132e0ceae01fe2f0f6c62e76da0e05 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Fri, 24 Mar 2023 16:38:51 +0800 Subject: [PATCH] crt: Remove conversion functions between UTF-{16,32} characters from MSVCRT Microsoft documentation says these functions operate

Re: [Mingw-w64-public] [PATCH] rewrite the dirname.c and basename.c without wide character processing

2023-03-25 Thread LIU Hao
cales; those are not something we can handle, because we can't know the encoding of the argument string. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-

Re: [Mingw-w64-public] [PATCH 2/2] headers: Add powersettings.h

2023-03-25 Thread LIU Hao
now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-25 Thread LIU Hao
erroneous results if the argument path was not in the default ANSI code page. (I don't think this is a bug though, just a design flaw.) -- Best regards, LIU Hao From 5ef71a3214b71032b442575a761436fbb9327040 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 25 Mar 2023 18:35:15

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-25 Thread LIU Hao
This is an updated to the third patch. The previous one missed a check for string terminators while looking for a UNC host. -- Best regards, LIU Hao From 7ef8e1f7d49167de3b5b900f98f31788da5c32f9 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sun, 26 Mar 2023 02:02:52 +0800 Subject: [PATCH 3/3

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-26 Thread LIU Hao
://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-170 -- Best regards, LIU Hao From 5b176b5327e898949eed3b38bf3440815081f1f9 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sun, 26 Mar 2023 02:02:52 +0800 Subject: [PATCH] crt: Reimplement `dirname()` and `basename()` Signed-off

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-26 Thread LIU Hao
ves `\\hostname.`. Should this be converted to `\\hostname\.`? -- Best regards, LIU Hao From ac4a2fc5c6c4ae36621695a115bbe66204ce0d6e Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sun, 26 Mar 2023 02:02:52 +0800 Subject: [PATCH] crt: Reimplement `dirname()` and `basename()` Signed-off-by: LIU Hao

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-27 Thread LIU Hao
allowed in their non-UNC form. This means now `dirname("C:")` returns "C:", while `dirname("\\?\C:")` returns "\\?\C:\". [1] https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#identify-the-path -- Best regards, LIU Hao From 6b20

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-27 Thread LIU Hao
alternative patch. -- Best regards, LIU Hao From c4f11d50c9abef455ac4ef334d7fa89de929a316 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sun, 26 Mar 2023 02:02:52 +0800 Subject: [PATCH] crt: Reimplement `dirname()` and `basename()` It is necessary to re-implement these two functions because 1. They

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-28 Thread LIU Hao
在 2023/3/28 10:49, LIU Hao 写道: According to Microsoft documentation about paths, which I linked yesterday, the `\\host\share` part is the name of a volume, so I think only the CMD behavior is right: `dirname()` should not remove `..` which would move to a different volume. And here is the

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-28 Thread LIU Hao
cept about 'volume prefix'. This path is taking as a sole prefix and an empty component, and is absolute. Hence, `dirname()` returns the prefix with a backslash appended i.e. `\\host\`, and `basename()` returns `\`. -- Best regards, LIU Hao OpenPGP_signature Description: OpenP

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-28 Thread LIU Hao
ut from an invalid input (e.g. `\\host\share` from `\\host\\share`) or an invalid output from a valid input (e.g. `\\host` from `\\host\share`) is not acceptable? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___

Re: [Mingw-w64-public] [PATCH] crt: Reimplement `dirname()` and `basename()`

2023-03-29 Thread LIU Hao
ore than two leading slashes shall be treated as a single slash." Well, Windows paths have different semantics from POSIX paths - for example the 'volume' thing does not exist in POSIX. Thus, largely, UNC paths and paths with DOS drive letters can't follow POSIX semantics,

<    1   2   3   4   5   6   7   8   9   10   >