Re: [PATCH] w32: Use __declspec(thread) for FIPS thread context TLS
Knugi via Gcrypt-devel <[email protected]> Tue, 9 Dec 2025 05:59:16 +0100 (CET)
| Newsgroups | gmane.comp.encryption.gpg.libgcrypt.devel |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected]: > 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 >