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

2022-12-27 Thread LIU Hao
在 2022/12/27 23:34, Alvin Wong via Mingw-w64-public 写道: Signed-off-by: Alvin Wong --- Removed trailing comma after last enum item. mingw-w64-headers/include/shcore.h | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 mingw-w64-headers/include/shcore.h

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

2022-12-27 Thread LIU Hao
在 2022/12/28 06:13, Martin Storsjö 写道: I tested this now. With LLVM, adding these used attributes doesn't seem to help, but the TLS callbacks fail both before and after this patch. So for that, some other solution is needed. (Additionally, having mingw-w64-crt built with LTO triggers a failed

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

2022-12-27 Thread Martin Storsjö
On Tue, 27 Dec 2022, Martin Storsjö wrote: On Tue, 27 Dec 2022, LIU Hao wrote: -- Thanks - it seems like a good idea to include it via this macro, as indeed probably all such special section objects need this treatment. I'd love to try this out with LTO on the crt files with LLVM too - b

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

2022-12-27 Thread Pali Rohár
On Tuesday 27 December 2022 14:38:00 LIU Hao wrote: > Variables that are required to be placed in explicit sections probably > have special meanings, and shall not be eliminated by LTO. Preserving > all of them might look an overkill, but should be safest. > > Signed-off-by: LIU Hao > --- > ming

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

2022-12-27 Thread Alvin Wong via Mingw-w64-public
Signed-off-by: Alvin Wong --- Removed trailing comma after last enum item. mingw-w64-headers/include/shcore.h | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 mingw-w64-headers/include/shcore.h diff --git a/mingw-w64-headers/include/shcore.h b/mingw-w64

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

2022-12-27 Thread Martin Storsjö
On Tue, 27 Dec 2022, LIU Hao wrote: -- Thanks - it seems like a good idea to include it via this macro, as indeed probably all such special section objects need this treatment. I'd love to try this out with LTO on the crt files with LLVM too - but I guess this patch should either fix thin