Skip to content

Commit 962784a

Browse files
WalterBrightdlang-bot
authored andcommitted
updated __attribute__ and __declspec support
1 parent 8bc9553 commit 962784a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/importc.dd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,9 @@ $(H2 $(LNAME2 gnu-clang-extensions, Gnu and Clang Extensions))
633633
$(LI `__attribute__((naked))`)
634634
$(LI `__attribute__((noinline))`)
635635
$(LI $(RELATIVE_LINK2 noreturn, `__attribute__((noreturn))`))
636+
$(LI `__attribute__((nothrow))`)
637+
$(LI `__attribute__((pure))`)
638+
$(LI `__attribute__((vector_size(N)))`)
636639
$(LI others are ignored)
637640
)
638641

@@ -677,13 +680,15 @@ $(H2 $(LNAME2 visualc-extensions, Visual C Extensions))
677680
$(P The following $(LINK2 https://learn.microsoft.com/en-us/cpp/cpp/declspec?view=msvc-170, `__declspec` extensions):)
678681

679682
$(OL
683+
$(LI `__declspec()`)
680684
$(LI `__declspec(align(N))`)
681685
$(LI `__declspec(deprecated)`)
682686
$(LI `__declspec(dllexport)`)
683687
$(LI `__declspec(dllimport)`)
684688
$(LI `__declspec(naked)`)
685689
$(LI `__declspec(noinline)`)
686690
$(LI `__declspec(noreturn)`)
691+
$(LI `__declspec(nothrow)`)
687692
$(LI `__declspec(thread)`)
688693
$(LI others are ignored)
689694
)

0 commit comments

Comments
 (0)