summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* make `from` an operator (#14241)hlaaftana2020-05-083-5/+7
|
* fix #14243 (#14257)cooldome2020-05-071-5/+9
| | | | | * fix #14243 Co-authored-by: cooldome <ariabushenko@bk.ru>
* Fix the DFA for "unstructured controlflow" (#14263)Clyybber2020-05-072-80/+117
| | | | | * Fix the DFA for "unstructured controlflow" * Add testcase from #14233
* fix #14236 (#14250)cooldome2020-05-071-3/+3
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fixes #14244 (#14248)cooldome2020-05-061-6/+6
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* added a new feature: --cc:env so that you can use any C compiler as long as ↵Andreas Rumpf2020-05-062-13/+27
| | | | it works like GCC
* cleanup the CC setting, only leave in there what is at least semi-officially ↵Andreas Rumpf2020-05-062-122/+2
| | | | supported
* fix js stacktraces, unify all file,line,col formatting into a single ↵Timothee Cour2020-05-052-31/+38
| | | | | function (#14230) * fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
* fixes #14209 [backport:1.2] (#14213)Andreas Rumpf2020-05-052-0/+31
| | | | * fixes #14209 [backport:1.2] * improve stability
* vcc fix (#14222)cooldome2020-05-041-1/+1
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fix https://github.com/timotheecour/Nim/issues/152: avoid writing spurious ↵Timothee Cour2020-05-042-6/+3
| | | | | | | | | `^[[0m` to stderr when callStyledWriteLineStderr not called (#14214) * fix https://github.com/timotheecour/Nim/issues/152 `^[[0m` is inserted in stderr for `echo code | nim c -` * resetAttributes not even needed, already handled in styledWriteLine * simplify tests in tests/trunner.nim thanks to this fix
* `echo cmd | nim r - -arg1 -arg2` now works (#14210)Timothee Cour2020-05-041-1/+1
|
* destructors: don't produce stupid code for 'cast' (#14208) [backport:1.2]Andreas Rumpf2020-05-042-4/+8
| | | | | * destructors: don't produce stupid code for 'cast' * fixes #14207
* fixes #14136 (#14198)Andreas Rumpf2020-05-031-3/+5
|
* improve the 'has to be discarded' error messageAraq2020-05-021-2/+2
|
* fixes #14159 [backport:1.2]Araq2020-05-021-1/+3
|
* fixes #14177Araq2020-05-021-2/+3
|
* fixes a bug encountered when running 'nim check posix_haiku.nim'Araq2020-05-021-1/+1
|
* Make unreachable else in case statements a warning instead of an error (#14190)Clyybber2020-05-023-4/+5
| | | | | * Fix #14019 by making trailing else a warning * Rename to UnreachableElse
* Make ./koch temp --gc:arc work (#14186)Clyybber2020-05-018-11/+26
|
* arc: do not unload globals when building a library [backport:1.2] (#14180)Andreas Rumpf2020-05-011-2/+3
|
* fixes #13986 [backport:1.2] (#14173)Andreas Rumpf2020-04-301-1/+7
|
* Fix #14160 (#14161)Clyybber2020-04-301-1/+7
| | | | | * Fix #14160 * Add testcase
* fixes another silly arc/orc bug [backport:1.2]Araq2020-04-291-0/+1
|
* fixes #14079 [backport:1.2] (#14163)Andreas Rumpf2020-04-293-4/+5
|
* many bugfixes for js (#14158)hlaaftana2020-04-291-30/+90
| | | | | | | | | | | | | * many bugfixes for js fixes #12672, fixes #14153, closes #14123, closes #11331, fixes #11783, fixes #13966, fixes #14087, fixes #14117, closes #12256. mostly fixes the fact that it was allowed to assign to newly created temp variables. additionally attempts to get rid of null initialized seqs/strings (though they might pop up here and there); this simplifies a lot of things and makes code size smaller. even if null seqs/strings pop up here and there it's still better than all those bugs existing. * formatting fixes * CI fixes * more CI fixes
* Fix negative indexed arrays for JS, refs #13966 (#14152)hlaaftana2020-04-291-4/+4
| | | | | * Fix negative arrays for JS, refs #13966 * small extra fix: no need to .slice() cstring in JS
* parseEnum_regression (#14150)cooldome2020-04-281-0/+2
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-287-14/+14
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* fixes a critical =trace generation bug (see test case) (#14140)Andreas Rumpf2020-04-272-2/+6
|
* Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860)Neelesh Chandola2020-04-271-4/+6
| | | | | | | * Remove `paramStr` and `paramCount` from implicitly imported nimscript.nim * Update changelog.md * Update stable nimble commit hash Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Fix #14066 issue with stringifying incomplete types (#14135)PMunch2020-04-271-13/+27
|
* `$(a: float)` now works consistently in nim js, avoiding printing floats as ↵Timothee Cour2020-04-271-6/+7
| | | | | | | | | ints (#14134) * fix https://github.com/timotheecour/Nim/issues/133; $(a: float) works in nim js like in other backends * fix tests * fix test for windows that prints 1.1e17 differently than other OS
* fix #14132 dsymutil should not be called on static libraries (#14133) ↵Timothee Cour2020-04-271-6/+6
| | | | [backport:1.2]
* fixes #14112, tests for #12892, #12671, #11697 (#14125)hlaaftana2020-04-261-1/+2
|
* HCR: properly handling complex const objects in the codegen - fixes #13915 ↵Viktor Kirilov2020-04-251-6/+28
| | | | (#14115)
* implement (#14114)cooldome2020-04-251-8/+3
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* changed type() to typeof() in docs and error messages (#14084)hlaaftana2020-04-242-2/+2
|
* Make JS not mangle to snake_case (#14086)hlaaftana2020-04-241-5/+1
|
* CT sizeof(+friends) for {.importc, completeStruct.} types, enable ABI static ↵Timothee Cour2020-04-239-18/+58
| | | | | | | | | | | checks (#13926) * -d:checkabi obsolete (ABI check now enforced); add `addTypeHeader` helper * cleanups * import sizeof at CT for {.completeType.} * address comments; revert default enabling of -d:checkAbi for now * mimportc_size_check.nim => msizeof5.nim; merge mabi_check.nim into msizeof5.nim; refactor * all pragmas in errmsgs should be written: '.importc' (un-ambiguous and less verbose than {.importc.})
* new cmd: `nim r main [args...]` to compile & run, saving binary under ↵Timothee Cour2020-04-233-16/+27
| | | | | | $nimcache/main (#13382) * implement `nim r main` to compile and run, saving binary to $nimcache * remove outFileAbs for now
* Add LTO support for most compilers and do some VCC fixes (#14013)Keithcat12020-04-221-3/+4
| | | | | | | | | * Added LTO in nim.cfg, added /link in extccomp.nim and other fixes * Fix line endings * Fix line endings, for real this time. Almost certainly. Like, 95% certain. * Removed /MD from extccom.nim VCC comiler
* cycle collector (#14071)Andreas Rumpf2020-04-222-4/+5
| | | | * figured out the wrong cycle trace proc problem * cycle collector/break refactorings and minor improvements
* fix typo (#14063)Andy Davidoff2020-04-211-1/+1
|
* cleanup PR #14048Araq2020-04-211-2/+2
|
* fixes #14052 [backport:1.2] (#14055)Andreas Rumpf2020-04-211-1/+2
|
* Replace enum fields idents with syms (#14048)cooldome2020-04-211-1/+9
| | | | | | * replace enum fields idents with syms * Trigger build Co-authored-by: cooldome <ariabushenko@bk.ru>
* #12103 - CI for OpenBSD (#12105)Euan2020-04-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Working on OpenBSD CI * Condense steps into 2 steps to make output easier to follow. * Move up one directory after csources build. * Remove FreeBSD build manifest and add OpenBSD test ignores for coroutines and hot code reloading. * If runCI fails, run the test results script. * Add email trigger for build failure * Remove .git from repository URL * Disable SFML test on OpenBSD * Disable tgetaddrinfo on OpenBSD as only UDP and TCP protocols are supported. * Remove getFilePermissions as it causes CI test failures with NimScript. * Set clang as cc in nim.cfg and use gmake to build csources. * Add getCurrentDir to nimscript. * Remove duplicate getCurrentDir and check for not weirdTarget. * Add CI badge for OpenBSD. * Disable tests which allocate lots of memory for OpenBSD. * Use `CORO_BACKEND_SETJMP` on OpenBSD rather than ucontext. * Simplify building of koch * Disable t8657 on OpenBSD. See issue #13760. * Fix #12142 - tarray_of_channels fails on OpenBSD * Disable thhtpclient_ssl and tosprocterminate on OpenBSD. These tests can be enabled at a later date after fixing them. * Install libffi. * Set path to libc for openbsd. * Disable tevalffi for now. * Remove tevalffi.nim. * Use ncpuonline sysctl rather than ncpu. * Disable tacceptcloserace and tasynchttpserver on OpenBSD. * Enable tacceptcloserace and tasynchttpserver. * Fix #13775 as suggested by @alaviss - use /bin/cat on OpenBSD rather than /bin/sh. * Enable test on OpenBSD. * Disable tflowvar on OpenBSD.
* Fixes #14014 (#14029)cooldome2020-04-201-2/+7
| | | | | | | | | | | | | * add test * improve test * progress * fix #14014 * fix bug Co-authored-by: cooldome <ariabushenko@bk.ru>
* allow generic typedesc field access (#12220)Jasper Jenkins2020-04-201-57/+53
| | | Co-authored-by: Clyybber <darkmine956@gmail.com>