Distinguish only between __declspec and __attribute__
This commit is contained in:
parent
c5db4fc3a2
commit
78c26cbf18
2 changed files with 10 additions and 10 deletions
|
|
@ -26,10 +26,10 @@ type
|
|||
hasAssume, # CC has __assume (Visual C extension)
|
||||
hasGcGuard, # CC supports GC_GUARD to keep stack roots
|
||||
hasGnuAsm, # CC's asm uses the absurd GNU assembler syntax
|
||||
hasNakedDeclspec, # CC has __declspec(naked)
|
||||
hasNakedAttribute, # CC has __attribute__((naked))
|
||||
hasNoreturnAttribute, # CC has __attribute__((noreturn))
|
||||
hasNoreturnDeclspec # CC has __declspec(noreturn)
|
||||
hasDeclspec, # CC has __declspec(X)
|
||||
hasAttribute, # CC has __attribute__((X))
|
||||
hasNaked, # CC has naked declspec/attribute
|
||||
hasNoreturn # CC has noreturn declspec/attribute
|
||||
TInfoCCProps* = set[TInfoCCProp]
|
||||
TInfoCC* = tuple[
|
||||
name: string, # the short name of the compiler
|
||||
|
|
@ -87,7 +87,7 @@ compiler gcc:
|
|||
structStmtFmt: "$1 $3 $2 ", # struct|union [packed] $name
|
||||
packedPragma: "__attribute__((__packed__))",
|
||||
props: {hasSwitchRange, hasComputedGoto, hasCpp, hasGcGuard, hasGnuAsm,
|
||||
hasNakedAttribute, hasNoreturnAttribute})
|
||||
hasAttribute, hasNaked, hasNoreturn})
|
||||
|
||||
# LLVM Frontend for GCC/G++
|
||||
compiler llvmGcc:
|
||||
|
|
@ -129,7 +129,7 @@ compiler vcc:
|
|||
asmStmtFrmt: "__asm{$n$1$n}$n",
|
||||
structStmtFmt: "$3$n$1 $2",
|
||||
packedPragma: "#pragma pack(1)",
|
||||
props: {hasCpp, hasAssume, hasNakedDeclspec, hasNoreturnDeclspec})
|
||||
props: {hasCpp, hasAssume, hasDeclspec, hasNaked, hasNoreturn})
|
||||
|
||||
# Intel C/C++ Compiler
|
||||
compiler icl:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue