From 5b27b263fd76484fa6251ccd29520c2764b55818 Mon Sep 17 00:00:00 2001 From: Arne Döring <arne.doering@gmx.net> Date: Wed, 29 May 2019 22:21:51 +0200 Subject: Remove immediate pragma (#11308) * remove immediate from tests * remove immediate from the compiler --- lib/system/alloc.nim | 3 +-- lib/system/inclrtl.nim | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/system') diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim index 47e3318fd..1de9258d6 100644 --- a/lib/system/alloc.nim +++ b/lib/system/alloc.nim @@ -1063,8 +1063,7 @@ template instantiateForRegion(allocator: untyped) = result = realloc(p, newSize) when hasThreadSupport: - - template sharedMemStatsShared(v: int) {.immediate.} = + template sharedMemStatsShared(v: int) = acquireSys(heapLock) result = v releaseSys(heapLock) diff --git a/lib/system/inclrtl.nim b/lib/system/inclrtl.nim index f9e6754ef..3caeefcbc 100644 --- a/lib/system/inclrtl.nim +++ b/lib/system/inclrtl.nim @@ -19,11 +19,6 @@ when not defined(nimNewShared): {.pragma: gcsafe.} -when not defined(nimImmediateDeprecated): - {.pragma: oldimmediate, immediate.} -else: - {.pragma: oldimmediate.} - when defined(createNimRtl): when defined(useNimRtl): {.error: "Cannot create and use nimrtl at the same time!".} -- cgit 1.4.1-2-gfad0