search for: selectany

Displaying 8 results from an estimated 8 matches for "selectany".

2015 Jul 24
2
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
...ib.c >>> clang-cl.exe: warning: argument unused during compilation: '-GL' >>> In file included from perllib.c:10: >>> In file included from ..\lib\CORE\perl.h:3060: >>> In file included from .\win32thread.h:4: >>> ./win32.h(284,25) : error: 'selectany' can only be applied to data >>> items with external linkage >>> >> >> That line is: >> extern const __declspec(selectany) union { unsigned __int64 __q; double >> __d; } __PL_nan_u = { 0x7FF8000000000000UI64 }; >> >> If it's written like...
2015 Jul 16
2
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
..._SYS -TP -EHsc -Foperllib.obj > perllib.c > clang-cl.exe: warning: argument unused during compilation: '-GL' > In file included from perllib.c:10: > In file included from ..\lib\CORE\perl.h:3060: > In file included from .\win32thread.h:4: > ./win32.h(284,25) : error: 'selectany' can only be applied to data items > with external linkage > That line is: extern const __declspec(selectany) union { unsigned __int64 __q; double __d; } __PL_nan_u = { 0x7FF8000000000000UI64 }; If it's written like so, clang-cl accepts it: union U { unsigned __int64 __q; double __d...
2015 Jul 24
0
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
...b.obj >> perllib.c >> clang-cl.exe: warning: argument unused during compilation: '-GL' >> In file included from perllib.c:10: >> In file included from ..\lib\CORE\perl.h:3060: >> In file included from .\win32thread.h:4: >> ./win32.h(284,25) : error: 'selectany' can only be applied to data items >> with external linkage >> > > That line is: > extern const __declspec(selectany) union { unsigned __int64 __q; double > __d; } __PL_nan_u = { 0x7FF8000000000000UI64 }; > > If it's written like so, clang-cl accepts it: > u...
2013 Mar 26
6
[LLVMdev] Feedback required on proper dllexport/import implementation
...se dllexport/import can also apply to globals which have no attributes, this requires keeping the dllexport/import linkage types just for them. Inline does not apply to globals, but MSVC can actually produce initialized dllexported globals, placed in COMDAT sections, with __declspec(selectany). I have no idea if anyone actually does this. LLVM also does not support __declspec(selectany) yet. There may be even more or better ways to implement this. It may be good to keep a future implementation of __declspec(selectany) in mind when thinking about this issue. -Nico
2013 Apr 23
0
[LLVMdev] Feedback required on proper dllexport/import implementation
...se dllexport/import can also apply to globals which have no attributes, this requires keeping the dllexport/import linkage types just for them. Inline does not apply to globals, but MSVC can actually produce initialized dllexported globals, placed in COMDAT sections, with __declspec(selectany). I have no idea if anyone actually does this. LLVM also does not support __declspec(selectany) yet. There may be even more or better ways to implement this. It may be good to keep a future implementation of __declspec(selectany) in mind when thinking about this issue. -Nico ________________...
2015 Jul 15
10
[LLVMdev] [3.7 Release] We have branched
Hi all, The 3.7 release branch was created from trunk at r242221 today (around 10:40 pm UTC). Branch policy: - Any doc changes can go in. Updates to the release notes are highly encouraged, and should be committed directly to the branch. - All other patches should be approved by the release manager (me) and the appropriate code owner. To get a change merged, commit it to trunk, and then reply
2017 Nov 21
2
question about xray tls data initialization
...deproject.com/Articles/8113/Thread-Local-Storage-The-C-Way gives a thread exit callback way for coff) and last thing , which I don't understand is the weak symbol for __start_xray_instr_map[] __stop_xray_instr_map[] __start_xray_fn_idx[] __stop_xray_fn_idx[] I replace them with __declspec(selectany) , but I'm not sure they have same meanings. some random generated code: .text .intel_syntax noprefix .def call; .scl 2; .type 32; .endef .globl call # -- Begin function call .p2align 4, 0x90 call:...
2017 Nov 16
2
question about xray tls data initialization
I'm learning the xray library and try if it can be built on windows, in xray_fdr_logging_impl.h line 152 , comment written as // Using pthread_once(...) to initialize the thread-local data structures but at line 175, 183, code written as thread_local pthread_key_t key; // Ensure that we only actually ever do the pthread initialization once. thread_local bool UNUSED Unused = [] {