Andreas Rumpf
920f4acadf
fixes #6279
2017-08-29 00:33:46 +02:00
Paul Tan
b06c0f97a4
writeDepsFile: write included files as well
...
`writeDepsFile()` does not list files which were included with the
`include` statement, e.g, with:
import file1
include file2
`file1` will be written to the deps file, while `file2` would not.
Fix this by modifying `writeDepsFile()` to write included files as well.
Now, both `file1` and `file2` in the above example will be written to
the deps file.
2017-08-25 17:45:33 +08:00
Paul Tan
1a50442c13
Generate deps file during C compilation
...
The "genDepend" command was previously taught how to generate a "deps"
file in 4910a87c6 (gendepend improvements; refs #5144 ). Such a deps file
is useful in integrating the Nim compiler with an external build system
or watch daemon, such that it's possible to only run the Nim compiler
when any of the source files are modified.
It's also useful to generate the deps file in the nimcache directory
during C compilation, without needing to re-run the compilation passes
with "genDepend". This would thus reduce overall project build times.
2017-08-25 17:45:33 +08:00
cooldome
82453825e9
Make Nim gdb pretty print friendly ( #6240 )
2017-08-24 10:21:38 +02:00
Parashurama
837b77b0a1
fixes basic type alignement issue on i386 platform. ( #6209 )
2017-08-19 09:02:02 +02:00
Parashurama
03b11b66cf
fixes mitems iterator on vm. (issue with tuple value)
...
this discard any implicit conversion on iterator return value.
the previous behaviour was to return a reference to a converted copy and
thus not modifying the original value.
2017-08-19 08:58:57 +02:00
Zahary Karadjov
7ad115f530
Restore the old behavior of parsing "quote do:"
...
close #5845
2017-08-19 08:57:43 +02:00
Zahary Karadjov
c3e5c6c326
treat var modifiers inside the concept body correctly: #1033
2017-08-19 08:57:43 +02:00
Zahary Karadjov
4483cefa0c
fix #5918
2017-08-19 08:57:43 +02:00
Daniil Yarancev
5c7ae14074
Fixes #5965 ( #6237 )
2017-08-14 17:43:39 +02:00
Araq
6b3af6a5d7
WIP: --gc:regions instead of --gc:stack
2017-08-13 02:51:00 +02:00
Andreas Rumpf
88b65ea957
fixes #6234
2017-08-11 20:14:44 +02:00
Andreas Rumpf
dfe067a74a
reorder pass: consider the 'using' statement; disabled debug output
2017-08-11 20:14:44 +02:00
Arne Döring
4c31bc1cd1
type kind is now part of the generated name for types ( #6203 )
2017-08-10 14:36:21 +02:00
Parashurama
4fdf7f2ea3
fix VM intsize for 32bits and smaller targetOS. ( #6211 )
...
This commit change the default behaviour of VM int/uint always being
64bits and make int/uint on VM behave identically to compiled code.
This insert 'opcNarrowU' or 'opcNarrow' opcode on Int/Uint operations
when needed to simulate smaller Int/Uint on VM.
2017-08-10 14:34:57 +02:00
Arne Döring
608cc18178
reverted genEcho
2017-08-08 13:58:50 +02:00
Arne Döring
54808ab12f
don't filter '\0' characters in string generation
2017-08-07 18:21:21 +02:00
Arne Döring
3bf1f019a7
improved genEcho
2017-08-07 17:54:05 +02:00
Fredrik Høisæther Rasch
c39e202976
Introduce first class support for Android ( #5772 )
2017-08-06 02:18:15 +02:00
Araq
153441db1d
codegen: do not produce empty loops; speeds up debug builds tremendously on Windows
2017-08-04 21:27:14 +02:00
Dominik Picheta
d60da4f8f0
Merge pull request #6165 from endragor/no-source-without-git
...
Do not generate Source/Edit without git in config
2017-08-03 22:56:22 +01:00
James Cowgill
fed1b0a077
Add mips64 and mips64el CPU platforms ( #5866 )
2017-08-03 18:37:02 +02:00
andri lim
57edf619fe
fixes #6016 union alias trigger bad codegen ( #6117 )
...
* fixes #6016 union alias trigger bad codegen
* cpp test ok
* merging some test into one file
2017-08-03 11:03:47 +02:00
Parashurama
f063943d5f
Vm fix zero extend proc ze/ze64 && toU32/toU16/toU8 ( #5988 )
...
* fixes ze/ze64 procs in VM.
* fixes toU8/toU16/toU32.
* add tests for ze/ze64 toU32/toU16/toU8 procs
2017-08-03 10:58:45 +02:00
Yuriy Glukhov
0755f902dd
Corrected tuple type to nkPar for unnamed tuples on getType ( #6172 )
2017-08-03 10:37:47 +02:00
Ruslan Mustakov
606aab9cdf
Do not generate Source/Edit without git in config
2017-07-31 20:54:57 +07:00
Andreas Rumpf
50f62ff44a
distinguish between 'reorder' and 'noforward'
2017-07-26 08:20:11 +02:00
Andreas Rumpf
ce341982a6
implemented reordering pass
2017-07-25 10:01:37 +02:00
Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
Arne Döring
ddea990a70
removed newString proc again, reverted some unnecesary changes
2017-07-24 23:21:51 +02:00
Arne Döring
0852be2dec
remove $ for ptr/ref, prefer using string over array of char
2017-07-24 23:21:51 +02:00
Arne Döring
1f7fc7f279
arrays can now be printed
2017-07-24 23:21:51 +02:00
Andreas Rumpf
4e3bdcc84b
fixes #6127
2017-07-22 17:07:59 +02:00
Andreas Rumpf
3862651d44
fixes #499
2017-07-22 16:52:58 +02:00
Andreas Rumpf
ad608838bf
closures have an object type field so that we can perform correct deepCopy() for the BoehmGC target
2017-07-22 11:10:52 +02:00
Araq
f127a7f7aa
fixes #6096
2017-07-17 16:43:10 +02:00
Araq
81ce73db94
fixes #5892
2017-07-17 16:43:10 +02:00
Araq
733272d55d
cleaned up extccomp.nim
2017-07-17 11:42:26 +02:00
Araq
ad2ef0f70a
fixes #6118
2017-07-17 11:42:26 +02:00
Araq
91eba77b96
fixes #4763
2017-07-17 09:28:03 +02:00
Araq
9cbb4c3f85
fixes #5989
2017-07-17 08:24:34 +02:00
Arne Döring
52f092d02b
Lineinfo change ( #6084 )
2017-07-17 08:12:15 +02:00
Andreas Rumpf
bc738d63a7
no interval arithmetic anymore to construct implicit range types; breaking change
2017-07-13 05:13:12 +02:00
Andreas Rumpf
2b862b74e0
Merge branch 'devel' into araq
2017-07-13 04:48:22 +02:00
Andreas Rumpf
2ad9a16e0a
fixes anon procs created by macros
2017-07-11 18:07:34 +02:00
Andreas Rumpf
76cf4f4c1b
parser enhancement: allow keywords after dots
2017-07-11 00:54:47 +02:00
Andreas Rumpf
5932ad9ae8
fixes a JS codegen regression
2017-07-10 16:40:23 +02:00
Andreas Rumpf
c1d061bb5a
fixes #4898
2017-07-09 13:29:44 +02:00
Andreas Rumpf
674db58a24
fixes #5608
2017-07-09 12:03:50 +02:00
Andreas Rumpf
b6307dded3
fixes #6037
2017-07-09 00:45:14 +02:00