summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
...
* Small cleanup to cgen output (#20874)Matt Moseley2022-11-211-9/+9
|
* fixes #20856; store defaults directly (#20859)ringabout2022-11-172-10/+3
| | | | | | | | | | | * fixes #20856; store defaults directly * fixes * fixes * check * fixes
* fixes ptr to cstring warnings[backport] (#20848)ringabout2022-11-162-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix =#13790 ptr char (+friends) should not implicitly convert to cstring * Apply suggestions from code review * first round; compiles on windows * nimPreviewSlimSystem * conversion is unsafe, cast needed * fixes more tests * fixes asyncnet * another try another error * last one * true * one more * why bugs didn't show at once * add `nimPreviewCstringConversion` switch * typo * fixes ptr to cstring warnings[backport] * add fixes Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* fixes a long-standing ARC bug (#20849)ringabout2022-11-161-2/+6
| | | | | * fixes an ARC bug * add a testcase
* createDir is now callable at compile time (#20824)Don-Duong Quach2022-11-141-3/+18
|
* fixes object default fields bugs and add tests (#20839)ringabout2022-11-153-17/+32
| | | | | | | | | | | * fixes object default fields bugs and add tests * Update compiler/semmagic.nim * Update compiler/sem.nim * Update compiler/sem.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #20836; fixes #20833; fixes `unsafeNew` (#20841)ringabout2022-11-141-1/+4
| | | | | * fixes #20836; fixes `unsafeNew` * fixes #20833
* fix a few "broken link" warnings (#20837)Andrey Makarov2022-11-143-3/+3
|
* fix #3505 wrong var {.global.} initialization, asign variable to it (#20812)Bung2022-11-121-1/+21
| | | | | | | | | | | | | | | | | | | | | | | * fix #3505 wrong var {.global.} initialization, asign variable to it * fix #5132 as well * follow suggestions * handle all call kinds * Update tests/global/t3505.nim * Update compiler/semstmts.nim * Update compiler/semstmts.nim * Update compiler/semstmts.nim * follow suggestion * Update compiler/semstmts.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Revert "fixes #20699; generate an empty struct for void type" (#20806)Andreas Rumpf2022-11-122-15/+17
| | | | | | | * Revert "fixes #20699; generate an empty struct for void type (#20790)" This reverts commit 8fcb9380f076e55bde29e365d395bd0603fc6229. * better fix [backport]
* fixes a strange issue most likely caused by a git merge (#20822)Andreas Rumpf2022-11-121-4/+2
|
* fixes #20807, refs #20450, regression with seq inference (#20818)metagn2022-11-121-1/+5
|
* issue a warning for ptr to cstring conversion[backport] (#20814)ringabout2022-11-112-0/+7
| | | | | * issue a warning for ptr to cstring conversion[backport] * add a changelog
* refactor strongSpaceB with an enum (#20809)ringabout2022-11-103-21/+24
| | | refactor strongSpaceB
* fixes #20699; generate an empty struct for void type (#20790)Aditya Siram2022-11-091-11/+14
| | | | | * fixes #20699; generate an empty struct for void type * Add docs and test case.
* reduce openArray-related C undefined behavior (#20795)tersec2022-11-093-10/+25
|
* remove name field for ARC (#20797)ringabout2022-11-091-12/+15
| | | | | | | | | | | | | * remove name field for ARC * mistake * improvement * better * typo * fixes a pre-existing bug
* add more `{.cursor.}` to vm (#20796)ringabout2022-11-091-13/+13
|
* arc/orc no longer needs type names by default; with `nimTypeNames` it gets ↵ringabout2022-11-081-20/+16
| | | | | | nicer names (#20789) Co-authored-by: Araq <rumpf_a@web.de>
* implements display based subtype checking (6.4x faster without threads; 2.8x ↵ringabout2022-11-083-37/+79
| | | | | | | | faster with threads) (#20781) * WIP: fast 'of' operator based on the literature * implement display based subtype checking Co-authored-by: Araq <rumpf_a@web.de>
* fixes regression #20746; remove string copies for ORC booted compiler (#20776)ringabout2022-11-071-1/+3
| | | | | | | | | | | | | * fixes #20746; remove string copies for ORC booted compiler * add a test case * use `cursor` thanks to @beef331 * for old compilers * change file extension * change test cases
* fixes regression #17121; adding doc comment in importc proc makes it ↵ringabout2022-11-061-1/+10
| | | | | | | | | silently noop at CT (#20766) * fixes regression #17121; adding doc comment in importc proc makes it silently noop at CT * Update compiler/vmgen.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #19149 Invalid codegen when returning var tuple from a template (#20762)Bung2022-11-061-2/+3
| | | | | * fix #19149 Invalid codegen when returning var tuple from a template * fix type
* Arc global (#20768)Bung2022-11-061-1/+1
| | | | | | | | | | | | | | | * temp * unsure * fix condition * port macro arc runable examples to one file * trigger doc ci * fix Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* codegen: optimized generation of proc headers (#20770)Andreas Rumpf2022-11-061-7/+6
|
* Revert "fix arc global variable issues" (#20764)ringabout2022-11-051-5/+2
| | | | | | | * Revert "fix arc global variable issues (#20759)" This reverts commit a3d32a4176539d0829a4e868f4b005a1a71eb7ee. * trigger documentation builds
* remove compiler/strutils2.nim (#20748)Bung2022-11-052-64/+7
| | | | | | | | | * use std strutils toLowerAscii char * avoid additional call and assign * remove compiler/strutils2.nim * canonical
* fix arc global variable issues (#20759)Bung2022-11-051-2/+5
| | | | | * temp * unsure
* Support doc comments in new-styled concepts (#20752)konsumlamm2022-11-041-0/+2
| | | Support comments in new-styled concepts
* Fix #18079 Illegal storage access compiling call with nested ref/deref (#20738)Bung2022-11-043-9/+27
| | | | | | * add test case * refactoring transformAddrDeref and fix #18079 * fix jsgen
* Improve dollar int (#20737)Juan Carlos2022-11-031-1/+3
| | | Improve dollar
* fixes #15688; handle `strongSpace` overflow issues (#20724)ringabout2022-11-033-18/+20
| | | | | | | * fixes #15688; handle `strongSpace` overflow issues * stop at 1 * change the type of strongSpaceA to bool
* fixes #20740; fixes pre-existing field visibility issues and removes ↵ringabout2022-11-034-10/+7
| | | | | `efSkipFieldVisibilityCheck` (#20741) fixes #20740 pre-existing field visibility and refactoring
* fix sighashes for generic ref (#20723)Jacek Sieka2022-11-011-1/+2
| | | | the `hashType` issue in #12229 was never really fixed - it just stopped being called in that context
* fix semcase on tySequence and tyObject #20283 #19682 (#20339)Bung2022-11-013-8/+12
| | | | | | | | | | | | | * fix semcase on tySequence and tyObject #20283 #19682 * use better arg name * avoiding returns nil use errorNode instead, clean code * use efNoDiagnostics flag * remove tests/errmsgs/t19682.nim * combine 2 test cases to one file
* refactor os imports into corresponding small modules (#20720)ringabout2022-11-011-1/+2
|
* fix #20272 range of uint64 shows signed upper bound (#20702)Bung2022-11-011-1/+4
|
* fixes #20715; range[a..b] inside object variant fails (#20716)ringabout2022-10-311-5/+6
| | | | | | | | | | | * fixes #20715; range[a..b] inside object variant fails * step one fix * better fix * fixes private fields * mistake
* fix closure iter state table init type [backport] (#20717)Jacek Sieka2022-10-311-1/+1
| | | | | | | fix closure iter state table init type It is a well-known fact that using closed intervals for ranges is logically, objectively and eternally wrong, as evidenced by this off-by-one.
* fix dispatcher call type [backport] (#20696)Jacek Sieka2022-10-291-0/+1
| | | | | | fix dispatcher call type The call node should have the type of the dispatcher, not the static call
* fix #20148 implicit compile time conversion int to ranged float cause… ↵Bung2022-10-291-1/+4
| | | | | (#20698) fix #20148 implicit compile time conversion int to ranged float causes compiler fatal error
* alternate fix + test for #12094, refs #13804 (#20686)metagn2022-10-292-3/+2
|
* fixes #20681; add efSkipFieldVisibilityCheck to skip check (#20639)ringabout2022-10-284-18/+22
| | | | | | | | | | | | | | | | | * don't sem const objectConstr defaults * fixes * add `efSkipFieldVisibilityCheck`; fixes nkBracket types * fixes #20681 * fixes tests * suggestion from @metagn * fixes tests Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* fixes type check of ranges for default fields (#20660)ringabout2022-10-271-2/+4
|
* int128.nim fix warnings (#20666)Juan Carlos2022-10-271-5/+4
| | | | | | | * Silence warning false positive for int128.nim: Warning: target type is larger than source type * Silence warning false positive for int128.nim: Warning: target type is larger than source type * https://github.com/nim-lang/Nim/pull/20666#discussion_r1006162835
* fix #6637 array index type depends generic (#20673)Bung2022-10-271-1/+1
|
* fixes #19201; fixes sink causes crash in VM (#20658)ringabout2022-10-251-1/+1
|
* fix #12094 Use of _ (as var placeholder) inside a template causes XDe… ↵Bung2022-10-251-1/+2
| | | | | (#20635) fix #12094 Use of _ (as var placeholder) inside a template causes XDeclaredButNotUsed
* add type check for default fields (#20652)ringabout2022-10-251-2/+10
|
* fixes #1027; disallow templates to use ambiguous identifiers (#20631)ringabout2022-10-241-0/+2
| | | | | | | | | | | | | | | | | | | | * test qualifiedLookUp in templates * check later * add testcase * add 4errormsg * Update tests/template/m1027a.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update tests/template/m1027b.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>