[PATCH] D33852: Enable __declspec(selectany) on linux
David Majnemer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 4 20:12:27 PDT 2017
majnemer added inline comments.
================
Comment at: include/clang/Basic/Attr.td:2421
-def SelectAny : InheritableAttr, TargetSpecificAttr<TargetWindows> {
+def SelectAny : InheritableAttr, TargetSpecificAttr<TargetWindowsAndLinux> {
let Spellings = [Declspec<"selectany">, GCC<"selectany">];
----------------
selectany should work on targets other than "x86", "x86_64", "arm", "thumb", etc. I think it is only necessary to require that it be a COFF or ELF target.
https://reviews.llvm.org/D33852
More information about the cfe-commits
mailing list