summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* Update btrees.nim (#14916)Dean Eigenmann2020-07-061-0/+3
|
* Fix #14396 (#14793)Clyybber2020-07-042-45/+102
| | | | | | | | | | | | | | | | | | | | | | * Correct Left-To-Right evaluation of proc args * Fix CPP backend * Add testcase * closes #14396 * closes #14345 * Improve test and optimize * Improve testcase and optimize literals * Fix bug * Expand testcase and use DFA to optimize * Turn genParams into proc * Turn withTmpIfNeeded into a proc * Cleanup * Fix crash * Better analysis * Cleanup * Trailing newline.. * Fix build * Tiny cleanup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* scoped memory management (#14790)Andreas Rumpf2020-07-048-437/+367
| | | | | | | * fixes the regressions * closes #13936 * scope based memory management implemented * enabled tcontrolflow.nim test case * final cleanups
* deprecate existsDir; use dirExists instead (#14884)Timothee Cour2020-07-031-1/+1
|
* typetraits.$: $((int, float), int)` is now `"((int, float), int)"` instead ↵Timothee Cour2020-07-021-2/+1
| | | | | of `"(tuple of (int, float), int)" (#14812) Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* {.deprecated: [existsFile: fileExists].} (#14735)Timothee Cour2020-07-022-2/+2
| | | | | | | | | * {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
* Fix #12745 (#14879)Tomohiro2020-07-022-11/+6
|
* allow packed union (#14868)Clyybber2020-07-011-9/+7
| | | Co-authored-by: Arne Döring <arne.doering@gmx.net>
* fix #14401, trailing comma confuses nimpretty (#14867)Miran2020-07-011-0/+3
|
* Clean out oldast (#14837)Juan Carlos2020-06-304-23/+13
| | | | * Clean out old Deprecated CLI switch * Update to remove --oldast CLI option
* New freebsd platforms (#14801)lbartoletti2020-06-291-1/+1
| | | | | * add riscv as riscv64 * add all platforms supported by FreeBSD
* fix #13432 typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] (#14799)Timothee Cour2020-06-291-1/+2
| | | | | * typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] * changelog
* Make unreachable code a warning instead of an error (#14816)Clyybber2020-06-292-6/+6
| | | | | | | * Make unreachable code a warning * Adapt test * Trigger CI
* DFA and injectdestructors cleanup (#14824)Clyybber2020-06-282-157/+118
| | | | | | | | | | | | | | | * DFA and injectdestructors cleanup * More precise write analysis * Cleanup obsoleted path * Unify defInstrTargets and useInstrTargets * Misc cleanups * Nicer CFG printing * Misc cleanups 2
* Fix #14647 (#14776)Clyybber2020-06-282-8/+5
| | | | | | | | | * Fix #14647 * Correct fix * Typo and add test * For real now :p
* expr => untyped; stmt => typed (#14804)Timothee Cour2020-06-251-2/+2
| | | | | * expr => untyped; stmt => typed * changelog + comment
* fix #14802 (#14803)Timothee Cour2020-06-251-1/+2
|
* Reject casts to builtin typeclasses (#14788)Danil Yarantsev2020-06-241-0/+2
| | | | | * Closes #14231, closes #14452 * Merge test to tcast.nim
* [backport] fix #14748, move gdb files to other section of installer.ini (#14772)Miran2020-06-231-2/+2
|
* Deprecated laxStrings for mutating the internal zero terminator on strings ↵Juan Carlos2020-06-235-7/+1
| | | | | and its Deprecated code cleaned out (#14766) Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Deprecate oldNewlines, clean out deprecated code from oldNewlines (#14763)Juan Carlos2020-06-232-16/+1
|
* minor bugfixes for 'func' and .borrowAraq2020-06-232-2/+3
|
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-2327-193/+210
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* fix bug in semgnrc: runnableExamples should not semcheck, even with > 1 arg ↵Timothee Cour2020-06-231-1/+1
| | | | (#14768)
* fixes #14240 [backport:1.2] (#14757)Andreas Rumpf2020-06-223-9/+12
|
* fixes #14458 [backport:1.2] (#14756)Andreas Rumpf2020-06-222-4/+7
|
* sizeof for empty objects/tuples should be 1; fixes #14690 (#14751)Andreas Rumpf2020-06-211-2/+2
|
* improve the parser's error messageAraq2020-06-191-1/+1
|
* added a spaceAraq2020-06-191-1/+1
|
* fix #14691 docgen works again for methods (#14701)Timothee Cour2020-06-181-14/+5
| | | | | * fix #14691 docgen methods * fixup
* [cleanups] doassert => doAssert; mark deadcode (#14711)Timothee Cour2020-06-171-10/+12
|
* fix #14179, fix #14142, make CI 1.4x faster (2x faster locally) (#14658)Timothee Cour2020-06-161-6/+4
| | | | | | | | | | | | | | | * fix #14142: no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims * remove a comment * Revert "fixes the regression #12860 caused; hotfix" This reverts commit 3d2459bdc0b6d6236a2cd9209ed81c965ee411a5. * Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860)" This reverts commit d38853c504d89d6e361f064a17391afaf42d74b8. * noNimScript => noWeirdTarget + noNimJs
* `hintMsgOrigin` now works in VM code (#14678)Timothee Cour2020-06-162-13/+11
| | | | | * `hintMsgOrigin` now works in VM code * remove a simplification for now
* misc cleanups in compiler msgs: use toHumanStr, etc (#14677)Timothee Cour2020-06-154-12/+9
|
* fix codegen bug due to changing existing symbol declaration in template (#14666)jcosborn2020-06-151-1/+1
|
* compiler/commands: make gitHash settable at compile-time. (#14654)alaviss2020-06-141-1/+1
| | | | This is useful for building nightlies, since we will be building from a generated source archive and git metadata is lost there.
* reorder.nim: fixed typosAraq2020-06-121-3/+3
|
* remove tyOpt, mOpt (#14636)Timothee Cour2020-06-128-21/+18
| | | | | * remove tyOpt, mOpt * fixup
* fix #14545 windows CI docs (#14590)Timothee Cour2020-06-102-3/+72
| | | | | | * fix #14545 windows paths * add lib/std/private/strutils2.nim * remove dependency strutils2 => strutils * address comment: lib/std/private/strutils2.nim => compiler/strutils2.nim
* fixes #14279 (#14618)Andreas Rumpf2020-06-091-2/+6
|
* fixes #14578 (#14615)Andreas Rumpf2020-06-091-7/+6
|
* [OpenBSD] Add arm support (#14608)lbartoletti2020-06-081-1/+1
| | | | | * add arm support to openbsd * use clang on openbsd
* fixes #14557 (#14607)Andreas Rumpf2020-06-081-1/+1
|
* Fix #14568 (#14583)Clyybber2020-06-071-23/+23
| | | | | | | * Fix #14568 * Add testcase * Fix bogus test * Adapt other failing tests * Declarations are always first writes
* fixes #14315 (#14594)Andreas Rumpf2020-06-071-2/+1
|
* fixes #14118 (#14595)Andreas Rumpf2020-06-071-1/+4
|
* implement the 'bind' statement for generics, it was an oversight that this ↵Andreas Rumpf2020-06-071-4/+11
| | | | was never implemented (#14584)
* more precise analysis about 'observable stores' [backport:1.2] (#14582)Andreas Rumpf2020-06-063-4/+15
|
* fix #14576 addr of param (including for lent) now works with nim js (#14577)Timothee Cour2020-06-062-2/+10
| | | | | * fix #14576 addr(param) now works in nim js * workaround https://github.com/nim-lang/Nim/issues/14578
* reorder.nim: fixes the indentationAraq2020-06-061-41/+40
|