From cf516713d070277d1455a20a14de705a1513c0d7 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 26 Nov 2020 19:05:21 +0100 Subject: fixes https://github.com/status-im/nimbus-eth2/issues/1549 (#16146) * fixes https://github.com/status-im/nimbus-eth2/issues/1549 [backport:1.4] * test fixup --- compiler/cgen.nim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compiler/cgen.nim') diff --git a/compiler/cgen.nim b/compiler/cgen.nim index c2a31b775..15b85097c 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -471,6 +471,14 @@ proc getTemp(p: BProc, t: PType, result: var TLoc; needsInit=false) = result.storage = OnStack result.flags = {} constructLoc(p, result, not needsInit) + when false: + # XXX Introduce a compiler switch in order to detect these easily. + if getSize(p.config, t) > 1024 * 1024: + if p.prc != nil: + echo "ENORMOUS TEMPORARY! ", p.config $ p.prc.info + else: + echo "ENORMOUS TEMPORARY! ", p.config $ p.lastLineInfo + writeStackTrace() proc getTempCpp(p: BProc, t: PType, result: var TLoc; value: Rope) = inc(p.labels) -- cgit 1.4.1-2-gfad0
summary refs log tree commit diff stats
path: root/tinyc/config.mak
blob: 1722d20b3619e222bb5b98b5f8d933574e6226f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20