jyu2-git

Results comments of jyu2-git

I am sorry. I was past wrong result for `x_cl.sh`: ```console [0 llvm-23549]$ sh x_cl.sh x_a.cpp Creating library x_a.lib and object x_a.exp x.cpp In EXE's ::operator new Drawbot() ~Drawbot() In...

[small test case](https://user-images.githubusercontent.com/52715938/143751438-0aa84dd6-232e-46aa-8770-63d309bc5583.gz) I attach a small test case, that fails with clang-cl but pass with MS cl >sh x_clang_cl.sh In EXE's ::operator new Drawbot() ~Drawbot() In DLL's ::operator delete...

Fix has being commit with:committed rGc19f4f806972: Fix bug 37903:MS ABI: handle inline static data member and inline variable as… (authored by jyu2).

Yes, MS latest VC works. For clang we generate following for each TU 03D 00000040 SECT1 notype () Static | _GLOBAL__sub_I_x.cpp That is why ctor get call multiple time. So...

It seems MS fix the problem Solution by avatar image Blair Wang [MSFT] · Mar 05 at 08:20 AM A fix for this issue has been released! Please install the...

This is fix by: D58160: MS ABI: adding template static member in the linker directive section to make sure init function can be called before main.

The problem is since al is defined in unnamed namespace, so the al is not external linkage. That is why COMDATKey is set to NULL. For that case we really...

Yes, because that thread local variable has internal linkage(eg. inside unnamed name space), thread not safe, need guard var for thread safe.

-fno-use-cxa-atexit should not effect __cxa_thread_atexit. I checked g++ with -fno-use-cxa-atexit the __cxa_thread_atexit is used.