Re: Request to update libc++ related packages for current Clang/LLVM toolchain

Takashi Yano via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
On Sun, 18 Jan 2026 01:22:32 -0700
Brian Inglis wrote:
> On 2026-01-18 00:45, Takashi Yano via Cygwin wrote:
> > On Sun, 18 Jan 2026 00:35:37 +0000, kikairoya via Cygwin wrote:
> >> 2026115 21:53:21 (+09:00) Takashi Yano via Cygwin :
> >>> The resulted a.exe will be free from libgcc_s. Please try.
> 
> >> Using compiler-rt instead of libgcc_s requires extra attention in Cygwin,
> >> because the emulated TLS functionality implemented in compiler-rt can't
> >> share the storage across DLL boundaries.
> 
> > Thanks for pointing this out.
> > The comment in the emutls.c explains that.
> > https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/emutls.c#L378-L389
> > Do you think this is a defect we should accept?
> 
> Is there a reason why llvm/clang/compiler-rt can not use Cygwin TLS and must use 
> Emulated TLS?

I think so. gcc also uses its own emutls.

> Should this discussion be moved to -developers as that level of knowledge seems 
> to be required?

Maybe.

-- 
Takashi Yano <[email protected]>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.