C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Fix bad thread_local codegen (using an attribute?)

From: Levo D <levoplusplusio_at_[hidden]>
Date: Thu, 22 Jan 2026 03:18:19 +0000
Sorry for the last email. I'm not sure what happened I don't use mutt to write emails that often. I meant to say the below

I'm not sure how many developers would say that after looking at the assembly.

clang (21.1) and gcc (15.2) are nowhere near the __thread codegen, it's almost 10x the code

Not behavior, the optimized assembly is terrible, relatively speaking.

Unless you care about performance, which is why I measured and noticed this years ago.
I was talking to this with a friend (and ran into a situation where __thread won't compile).
I figure this may not get fixed unless it's discussed

Received on 2026-01-22 03:18:19