Tomohiro Kashiwada
eb6d51a2fd
[Cygwin] Enable TLS on Cygwin target (#138618)
Cygwin environment and toolchain supports EMUTLS.
From
https://cygwin.com/git/?p=newlib-cygwin.git;a=blob;f=config/tls.m4;hb=HEAD#l118,
```
$ LANG=C gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/15/lto-wrapper.exe Target: x86_64-pc-cygwin
Configured with: (snip)
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.1 20250406 (experimental) (GCC)
$ echo '__thread int a; int b; int main() { return a = b; }' | gcc -S -xc -o- - | grep __emutls_get_address
call __emutls_get_address
.def __emutls_get_address; .scl 2; .type 32; .endef
```
2025-05-06 23:38:18 +03:00
..
2025-02-20 17:07:16 +00:00
2025-04-22 13:26:32 -04:00
2025-04-22 13:26:32 -04:00
2025-04-29 14:14:00 +01:00
2025-02-04 18:04:57 +00:00
2025-02-05 11:39:27 +03:00
2025-02-05 11:39:27 +03:00
2025-04-23 18:42:07 +08:00
2025-03-04 09:19:39 -08:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-04-07 12:06:57 -04:00
2025-04-22 13:26:32 -04:00
2025-02-04 18:04:58 +00:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-04-15 17:01:36 +08:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-05-01 16:29:48 -05:00
2025-04-22 13:26:32 -04:00
2025-03-13 14:02:44 +08:00
2025-04-26 17:06:04 +02:00
2024-10-24 10:23:40 +01:00
2025-02-04 18:04:57 +00:00
2025-03-14 09:24:44 -04:00
2025-03-14 09:24:44 -04:00
2025-04-19 10:37:25 -07:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-03-28 10:49:19 -04:00
2025-04-28 19:26:01 +00:00
2025-04-11 00:20:58 +02:00
2025-04-22 13:26:32 -04:00
2025-04-22 13:26:32 -04:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2025-04-22 13:26:32 -04:00
2025-02-19 10:12:54 +08:00
2025-05-06 23:38:18 +03:00
2025-02-04 18:04:57 +00:00
2025-02-04 18:04:57 +00:00
2024-12-25 09:56:15 +01:00
2025-02-04 18:04:57 +00:00