summary refs log tree commit diff stats
path: root/compiler/extccomp.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-05-08 02:08:32 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-05-08 02:08:32 +0200
commit9422dbf3374248cf8e1cd181897236187759d524 (patch)
tree2d07853975c56115687be614f5956ab953ba50fb /compiler/extccomp.nim
parentc384f05e49e0716cc99042491f65bcc7d415d4c3 (diff)
parent4a2a0894aee91fac027f9d0cce401bf5c9dc353b (diff)
downloadNim-9422dbf3374248cf8e1cd181897236187759d524.tar.gz
Merge pull request #2657 from def-/noreturn
Pass noReturn pragma to C code.
Diffstat (limited to 'compiler/extccomp.nim')
-rw-r--r--compiler/extccomp.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index 75cb1ef27..186a3884d 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -26,8 +26,8 @@ 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))
+    hasDeclspec,              # CC has __declspec(X)
+    hasAttribute,             # CC has __attribute__((X))
   TInfoCCProps* = set[TInfoCCProp]
   TInfoCC* = tuple[
     name: string,        # the short name of the compiler
@@ -85,7 +85,7 @@ compiler gcc:
     structStmtFmt: "$1 $3 $2 ", # struct|union [packed] $name
     packedPragma: "__attribute__((__packed__))",
     props: {hasSwitchRange, hasComputedGoto, hasCpp, hasGcGuard, hasGnuAsm,
-            hasNakedAttribute})
+            hasAttribute})
 
 # LLVM Frontend for GCC/G++
 compiler llvmGcc:
@@ -127,7 +127,7 @@ compiler vcc:
     asmStmtFrmt: "__asm{$n$1$n}$n",
     structStmtFmt: "$3$n$1 $2",
     packedPragma: "#pragma pack(1)",
-    props: {hasCpp, hasAssume, hasNakedDeclspec})
+    props: {hasCpp, hasAssume, hasDeclspec})
 
 # Intel C/C++ Compiler
 compiler icl: