[PATCH] w32: Use __declspec(thread) for FIPS thread context TLS
Knugi
hello at knugi.com
Tue Dec 9 05:59:16 CET 2025
Hi Werner,
The previous configuration also compiled successfully on my side, but caused
incorrect runtime behavior because it seems Windows failed to properly initialize
the thread-local variables defined using __thread. More specifically, with
__thread, libaacs could not be properly initialized.
Thanks,
Knugi
Dec 9, 2025, 01:49 by wk at gnupg.org:
> On Mon, 8 Dec 2025 17:17, Knugi said:
>
>> * src/fips.c: Use __declspec(thread) for MinGW32 thread-local context.
>>
>
> Why do you need this? We are building Windows versions using mingw just
> fine with the __thread attribute.
>
>
> Shalom-Salam,
>
> Werner
>
> --
> The pioneers of a warless world are the youth that
> refuse military service. - A. Einstein
>
More information about the Gcrypt-devel
mailing list