This prevents initializers for comdat-folded globals from running multiple times.
Please take a look!
Differential D5281
Emit initializers for selectany globals in comdat-associative sections (PR20889) hans on Sep 9 2014, 5:21 PM. Authored by
Details
This prevents initializers for comdat-folded globals from running multiple times. Please take a look!
Diff Detail Event Timeline
Comment Actions lgtm
|
Should we do the same for WeakAttr? What does GCC do?
I wonder if there is a more general GVA linkage check we should do. Can you add a test for static data members of implicitly instantiated dllexport class templates?