On Tue, Oct 08, 2024 at 10:57:06AM +0100, Jonathan Wakely wrote:
> Whoops, yes of course. Raising the topic of __cxa_guard_acquire was my
> fault, and doesn't apply here, sorry.
> 
> But we still want to get rid of the STB_GNU_UNIQUE binding for the
> static variables, don't we?

I think it is the other way around.  At least when I try:
static inline volatile int *foo (void) { static volatile int v = -1; return &v; 
}
inline volatile int z = -1;
volatile int *p = foo ();

z is STB_GNU_UNIQUE, _ZZL3foovE1v is not.  Whether that is a bug or not, I
don't know...

        Jakub

Reply via email to