Commit Graph

1647 Commits

Author SHA1 Message Date
Araq
d3e9d0fa3a niminst: 'doc/*.txt' required for bootstrapping 2014-10-18 20:26:51 +02:00
Araq
56f1f3d4bc more improvements for the NSIS installer 2014-10-17 18:18:46 +02:00
Araq
bd54c44239 improvements for niminst 2014-10-17 03:15:28 +02:00
Araq
55d8e71ab1 niminst supports NSIS 2014-10-17 00:53:33 +02:00
Araq
34e96e37a1 added missing nimfix files 2014-10-11 20:51:41 +02:00
Araq
661c51682a backported .deprecated statement 2014-10-11 20:31:24 +02:00
Araq
6c9730b353 fixes #1551 2014-10-11 12:25:15 +02:00
Araq
1da251523f added 'nim*Setjmp' conditional symbols 2014-10-05 02:22:48 +02:00
Andreas Rumpf
c17c8e9afa Merge pull request #1545 from rbehrends/setjmp-perf
Improve setjmp()/longjmp() performance.
2014-10-02 01:35:59 +02:00
Clay Sweetser
55c78af9c0 Fixes #1529 2014-10-01 18:14:06 -04:00
Varriount
93d55c077f Updated Version Number 2014-09-28 15:47:09 -04:00
Varriount
b234d311d4 Disable git hashing in the version command 2014-09-28 15:35:35 -04:00
Reimer Behrends
cb6441e73d Use _setjmp()/_longjmp() only on BSD-like systems for now. 2014-09-27 18:05:30 +02:00
Reimer Behrends
f99c40f61b Improve setjmp()/longjmp() performance.
Exception handling for the C backend used setjmp()/longjmp()
unconditionally. However, on POSIX systems, these functions save and
restore the signal mask, adding considerable overhead to exception
handling, even where no exceptions are involved. The compiler and
library now try to use either _setjmp()/_longjmp() or
sigsetjmp()/siglongjmp() where possible, marked by the defines
"nimRawSetjmp" and "nimSigSetjmp", respectively. The define
"nimStdSetjmp" can be used to revert to setjmp()/longjmp() instead.
2014-09-25 23:29:02 +02:00
Reimer Behrends
80356f1cc7 Avoid unnecessary #include triggered by importc vars.
When a C variable or macro is imported via an {.importc.} var or
let statement, but no definition is needed and the variable does
not have an initializer part, then there is also no need to generate
an #include for the associated header until and unless the variable
is actually used. The header is already generated upon use, but
unnecessarily also when the variable is defined.

This is an issue with the posix module in particular, where a lot
of unnecessary header files are being included because relevant
constants are defined via importc vars, and those header files
may not even be available on a given system.

This patch omits the generation of the #include directive for those
definitions where they aren't needed.
2014-09-19 03:34:00 +02:00
Araq
1791ab6385 fixes #665 2014-09-11 19:54:49 +02:00
Araq
c73142d852 fixes #1067 2014-09-11 10:02:45 +02:00
Araq
ff55c487b6 mostly fixes #1339 2014-09-11 09:57:33 +02:00
Araq
46bbae4745 fixes #1366 2014-09-11 09:53:00 +02:00
Araq
dafa8ccaf3 fixes #903, fixess #1513 2014-09-11 01:45:14 +02:00
Araq
b7f8dbbec2 fixes #1511 2014-09-11 00:45:29 +02:00
Araq
e766c7c3cd minor bugfix for void .compileTime procs 2014-09-11 00:36:31 +02:00
Araq
2c99991d16 fixes #1444 2014-09-11 00:34:59 +02:00
Reimer Behrends
f9c46b04a6 Properly handle staticExec() generating large output.
A staticExec() invocation that generated more than the internal
buffer size worth of output blocked because the compiler waited
for the process to terminate before reading the output.
2014-09-10 01:22:20 +02:00
Araq
014b79617e Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-08-21 10:00:09 +02:00
Araq
5432b2b83a fixes recently introduced regression 2014-08-21 09:59:57 +02:00
Simon Hafner
3f0c3ab6cf added bug number to comment 2014-08-20 21:16:06 +02:00
Araq
15b2d6d351 fixes #1418 2014-08-20 02:14:30 +02:00
Araq
bc2e83fe17 documented the JS codegen 2014-08-20 01:11:47 +02:00
Araq
ebe313e627 fixes #1334 2014-08-19 22:35:16 +02:00
Araq
e935a35bcf fixes #1380 2014-08-19 20:42:48 +02:00
Araq
1deb9820f5 fixes #1420 2014-08-19 20:28:51 +02:00
Araq
b5248d9037 fixes #1143 2014-08-19 10:01:46 +02:00
Araq
e662013ee0 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-08-17 21:24:01 +02:00
Araq
710cbe3f1f fixes #1492 2014-08-17 21:23:46 +02:00
Dominik Picheta
d10cef11dc Fixes #710. 2014-08-16 00:46:14 +01:00
Andreas Rumpf
e0fcfe58a2 Merge pull request #1485 from def-/js-substr
Fix CopyStr (substr in system.nim) for javascript target
2014-08-15 21:43:37 +02:00
Andreas Rumpf
6d67dccd04 Merge pull request #1484 from def-/js-swap
Fix swap in jsgen
2014-08-15 21:42:31 +02:00
def
e460d6e40e Fix CopyStr (substr in system.nim) for javascript target 2014-08-15 19:49:15 +02:00
def
6a7062fb60 Fix swap in jsgen 2014-08-15 19:34:28 +02:00
def
7a5a6ec5bc Fix array address on nkHiddenAddr 2014-08-15 19:06:13 +02:00
Araq
ae681be629 fixes #1343 2014-08-15 09:57:03 +02:00
Araq
f70b35b3b7 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-08-14 22:22:11 +02:00
Araq
06ad50b671 fixes #669 2014-08-14 21:56:06 +02:00
Andreas Rumpf
d8f6a2adcb Merge pull request #1481 from rbehrends/fix-stackscan2
Fix stack bottom initialization for non-main modules.
2014-08-14 09:16:26 +02:00
Reimer Behrends
d59b9a2168 Fix stack bottom initialization for non-main modules.
Because PreMain() was now called before the new stack bottom
initialization, it still relied on the old version of initStackBottom(),
which may not handle the top few words of the stack correctly. This
patch also sets the stack bottom in PreMain() using the new approach.
2014-08-14 03:09:39 +02:00
Araq
65587f726e fixes #1433 2014-08-14 03:02:36 +02:00
Araq
c812a616b2 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-08-14 02:44:53 +02:00
Araq
2728bbccc4 fixes newly introduced bugs 2014-08-14 02:42:26 +02:00
Reimer Behrends
a772105e7d Fixed stack bottom initialization for DLLs. 2014-08-14 02:10:28 +02:00