C codegen: generate nimKeepAlive calls at strategic places to keep the C compiler from optimizing away all stack roots

This commit is contained in:
Araq 2011-11-24 23:28:28 +01:00
commit 703430787d
6 changed files with 256 additions and 174 deletions

View file

@ -18,6 +18,8 @@ Bugfixes
- Bugfix c2nim, c2pas: the ``--out`` option has never worked properly.
- Bugfix: forwarding of generic procs never worked.
- Some more bugfixes for macros and compile-time evaluation.
- The compiler now generates code that tries to keep the C compiler from
optimizing stack allocated GC roots away.
Changes affecting backwards compatibility