29 lines
928 B
Diff
29 lines
928 B
Diff
From ebade0c4f7558bb16b2504f06076585d1f618a4c Mon Sep 17 00:00:00 2001
|
|
From: Martell Malone <martellmalone@gmail.com>
|
|
Date: Mon, 15 Aug 2016 20:57:27 -0700
|
|
Subject: [PATCH 3/4] mingw-w64: enable support for __declspec(selectany)
|
|
|
|
---
|
|
include/clang/Basic/Attr.td | 5 ++---
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td
|
|
index fa60d51..0739511 100644
|
|
--- a/include/clang/Basic/Attr.td
|
|
+++ b/include/clang/Basic/Attr.td
|
|
@@ -2180,9 +2180,8 @@ def DLLImport : InheritableAttr, TargetSpecificAttr<TargetWindows> {
|
|
let Documentation = [DLLImportDocs];
|
|
}
|
|
|
|
-def SelectAny : InheritableAttr {
|
|
- let Spellings = [Declspec<"selectany">];
|
|
- let LangOpts = [MicrosoftExt];
|
|
+def SelectAny : InheritableAttr, TargetSpecificAttr<TargetWindows> {
|
|
+ let Spellings = [Declspec<"selectany">, GCC<"selectany">];
|
|
let Documentation = [Undocumented];
|
|
}
|
|
|
|
--
|
|
2.7.4
|
|
|