Actions
Defect #2
closeddo something about cl 'optimizing' out inline singleton registration voodoo
Start date:
02/28/2013
Due date:
% Done:
100%
Estimated time:
Description
GCC and Clang/LLVM behave in a sane manner, but the stupid cl seems to 'optimize' out the damn registrations for all the damn PDUs and such.
It seems necessary to do something about it. Maybe there's a compiler option to make it behave.
Updated by Tony Ciavarella almost 12 years ago
It seems like link is throwing out the symbols due to unreferenced COMDAT elimination as described on MSDN. The simple answer is to pass /OPT:NOREF to the linker, but that won't help with singleton registrations in user code and requiring such a linker option in user code seems unwise.
Updated by Tony Ciavarella over 11 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
r432 seems to have made things happy without causing any weirdness.
Actions