'pure' is now 'noStackFrame' for procs

This commit is contained in:
Araq 2011-08-19 19:11:58 +02:00
commit 5cba831c88
6 changed files with 28 additions and 21 deletions

View file

@ -111,7 +111,7 @@ const
when asmVersion and not defined(gcc) and not defined(llvm_gcc):
# assembler optimized versions for compilers that
# have an intel syntax assembler:
proc addInt(a, b: int): int {.compilerProc, pure.} =
proc addInt(a, b: int): int {.compilerProc, noStackFrame.} =
# a in eax, and b in edx
asm """
mov eax, `a`
@ -121,7 +121,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc):
theEnd:
"""
proc subInt(a, b: int): int {.compilerProc, pure.} =
proc subInt(a, b: int): int {.compilerProc, noStackFrame.} =
asm """
mov eax, `a`
sub eax, `b`
@ -130,7 +130,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc):
theEnd:
"""
proc negInt(a: int): int {.compilerProc, pure.} =
proc negInt(a: int): int {.compilerProc, noStackFrame.} =
asm """
mov eax, `a`
neg eax
@ -139,7 +139,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc):
theEnd:
"""
proc divInt(a, b: int): int {.compilerProc, pure.} =
proc divInt(a, b: int): int {.compilerProc, noStackFrame.} =
asm """
mov eax, `a`
mov ecx, `b`
@ -150,7 +150,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc):
theEnd:
"""
proc modInt(a, b: int): int {.compilerProc, pure.} =
proc modInt(a, b: int): int {.compilerProc, noStackFrame.} =
asm """
mov eax, `a`
mov ecx, `b`
@ -162,7 +162,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc):
mov eax, edx
"""
proc mulInt(a, b: int): int {.compilerProc, pure.} =
proc mulInt(a, b: int): int {.compilerProc, noStackFrame.} =
asm """
mov eax, `a`
mov ecx, `b`