Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enable __declspec(selectany) on any platform | Piotr Padlewski | 2017-09-14 | 1 | -0/+2 |
| | | | | | | | | | | | | | | Summary: This feature was disabled probably by mistake in rL300562 This fixes bug https://bugs.llvm.org/show_bug.cgi?id=33285 Reviewers: davide, rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D33852 llvm-svn: 313278 | ||||
* | mingw-w64: enable support for __declspec(selectany) | Martell Malone | 2017-04-18 | 1 | -1/+2 |
| | | | | | | | | | | Add selectany as a GCC spelling for mingw-w64 Reviewers: rnk Differential revision: https://reviews.llvm.org/D32083 llvm-svn: 300562 | ||||
* | [MS] Silence -Wextern-init on const selectany variables | Reid Kleckner | 2016-08-18 | 1 | -0/+8 |
In C, 'extern' is typically used to avoid tentative definitions when declaring variables in headers, but adding an intializer makes it a defintion. This is somewhat confusing, so GCC and Clang both warn on it. In C++, 'extern' is often used to give implictly static 'const' variables external linkage, so don't warn in that case. If selectany is present, this might be header code intended for C and C++ inclusion, so apply the C++ rules. llvm-svn: 279116 |