From 89570aa44b3a90ed00cca4c31b62503d013719ce Mon Sep 17 00:00:00 2001 From: rockcavera Date: Fri, 3 Jan 2020 18:41:58 -0300 Subject: [PATCH 1/2] fix #12988 (#13022) fix #12988 --- compiler/extccomp.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 5db719f85297..f8b7ac150ce6 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -302,10 +302,10 @@ compiler tcc: linkLibCmd: "", # XXX: not supported yet debug: " -g ", pic: "", - asmStmtFrmt: "__asm{$n$1$n}$n", + asmStmtFrmt: "asm($1);$n", structStmtFmt: "$1 $2", - produceAsm: "", - props: {hasSwitchRange, hasComputedGoto}) + produceAsm: gnuAsmListing, + props: {hasSwitchRange, hasComputedGoto, hasGnuAsm}) # Pelles C Compiler compiler pcc: From 47e7b8771c76deb1eb0827b7613a77b4bbacf019 Mon Sep 17 00:00:00 2001 From: cooldome Date: Sat, 4 Jan 2020 01:33:13 +0000 Subject: [PATCH 2/2] Fixes #13026 (#13028) --- compiler/sempass2.nim | 2 +- tests/destructor/ttuple.nim | 84 ++++++++++++++++++++++++++++++++++++- 2 files changed, 84 insertions(+), 2 deletions(-) diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 6f83fac05a01..b2837c6126f3 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -1019,7 +1019,7 @@ proc trackProc*(c: PContext; s: PSym, body: PNode) = for i in 1.. 0, "MyObjContainer is not initialized, use newMyObjContainer() to initialize object before use" + let cf = allocateMyObjPtr(m.size2) + for i in 0..