Commit Graph

2653 Commits

Author SHA1 Message Date
gingerBill
3195fac92b Fix slice indices endianness 2021-09-12 16:47:17 +01:00
gingerBill
a5b4b73544 Add error message for minimum required LLVM 2021-09-11 16:53:39 +01:00
gingerBill
e3359a2639 Prepare for LLVM 12.0.1 compatibility 2021-09-11 16:53:18 +01:00
gingerBill
e65e0b5db2 Add -strict-style-init-only 2021-09-09 11:06:19 +01:00
gingerBill
123db3a23d Fix typo 2021-09-08 14:55:07 +01:00
gingerBill
d29a0c6680 Add a minimum alignment on *nix for the compiler in heap_allocator_proc 2021-09-08 14:53:42 +01:00
gingerBill
76419383a8 Add some minor sanity checks to the compiler's heap_allocator_proc on Darwin 2021-09-08 14:45:53 +01:00
gingerBill
e0ee59084e Add calling convention "system" which is an alias for "stdcall" on Windows and "cdecl" on other platforms 2021-09-08 13:22:03 +01:00
gingerBill
d4f5ef046d Remove goto in favour of multiple exits 2021-09-08 11:58:01 +01:00
gingerBill
83bd7c73c4 Fix #1120 code generation 2021-09-08 11:49:07 +01:00
gingerBill
72508dbce3 Fix code gen bug for slicing multi pointers 2021-09-08 11:14:26 +01:00
gingerBill
0434281f73 Strip semicolons; Make odin strip-semicolon replace .. with ..= if used as a binary operator 2021-09-06 20:15:59 +01:00
gingerBill
97a1147537 Correct fix to heap_allocator_proc in compiler 2021-09-06 19:34:44 +01:00
gingerBill
b63d49aafa Merge pull request #1112 from odin-lang/optional-semicolons
Optional Semicolons
2021-09-06 19:29:08 +01:00
gingerBill
f5615b204c Minor fix to heap_allocator_proc in common_memory.cpp 2021-09-06 16:50:13 +01:00
gingerBill
2800d4b8d0 Merge branch 'master' into optional-semicolons 2021-09-06 16:46:57 +01:00
gingerBill
31f779f1a4 intrinsics.alloca now returns [^]u8 2021-09-06 15:45:05 +01:00
gingerBill
a3a891a7f4 Add intrinsics.is_package_imported(<string>) 2021-09-06 15:41:09 +01:00
gingerBill
773a766b83 Strip semicolon if followed by a } or ) on the same line 2021-08-31 23:47:20 +01:00
gingerBill
169e717021 Remove debug message 2021-08-31 22:49:18 +01:00
gingerBill
cd09068e33 Correct parsing rules for #assert directives for semicolons 2021-08-31 22:45:08 +01:00
gingerBill
2db6fea665 Remove dead code and add debug messages 2021-08-31 22:31:43 +01:00
gingerBill
b176af2742 Add semicolon stripping command: odin strip-semicolon, has the same parameters as odin check 2021-08-31 22:20:36 +01:00
gingerBill
1fff96e088 Make -insert-semicolon the default now 2021-08-31 21:13:53 +01:00
Jeroen van Rijn
27fd702692 Merge pull request #1111 from Kelimion/libtommath
Slim down LibTomMath compile.
2021-08-29 16:01:42 +02:00
Jeroen van Rijn
5c7cb393dc Slim down LibTomMath compile. 2021-08-29 15:54:56 +02:00
gingerBill
54b37573c9 Add intrinsics.syscall (for Linux and Darwin only) 2021-08-29 13:17:06 +01:00
gingerBill
b88e945268 ERROR_BLOCK() any usages of "Did you mean?" like behaviour whilst iterating across a scope entry map 2021-08-27 12:14:51 +01:00
gingerBill
582559f7ac Correct did you mean logic and make thread-safe-er 2021-08-27 11:18:38 +01:00
gingerBill
53556d9bd2 Disable local mutex for the time being. 2021-08-26 23:16:57 +01:00
gingerBill
da79124e5d Use local mutex for each AstFile.arena 2021-08-26 23:10:15 +01:00
gingerBill
2f34f1283a Make thread_join be more correct 2021-08-26 22:42:56 +01:00
gingerBill
f973d271cf Add mutex around condition_broadcast 2021-08-26 22:28:09 +01:00
gingerBill
4625b25287 Wrap linux specific code for internal_thread_proc 2021-08-26 22:26:51 +01:00
gingerBill
8d8b3fd071 Add missing header 2021-08-26 22:24:26 +01:00
gingerBill
a852c17614 Don't permit any signal delivery to threads on Linux 2021-08-26 22:20:10 +01:00
gingerBill
b33bf3f704 Correct race condition and incorrect usage of condition_signal outside of a mutex lock 2021-08-26 22:17:51 +01:00
gingerBill
726788a483 Treat Type_Tuple closer to a Type_Struct in lb_type 2021-08-26 22:01:02 +01:00
gingerBill
6d49df1d87 Don't use the thread pool if worker count is 0 2021-08-26 21:40:54 +01:00
gingerBill
ac191bd31f Simplify logic for -thread-count:1 2021-08-26 21:30:23 +01:00
gingerBill
ad3a3547d6 Unify thread pool logic across the rest of the compiler, using a global thread pool 2021-08-26 21:22:30 +01:00
gingerBill
aba14c43ac Fix typo 2021-08-26 17:57:29 +01:00
gingerBill
25c3fd48f0 Improved ThreadPool implementation 2021-08-26 17:56:28 +01:00
gingerBill
e45aa68c14 Remove unneeded +1 for outstanding_task_count 2021-08-26 16:10:32 +01:00
gingerBill
d3d805ffb3 Fix typo 2021-08-26 15:58:34 +01:00
gingerBill
05b9724c85 Correct platform_virtual_memory_init on Unix 2021-08-26 15:55:09 +01:00
gingerBill
5053f0179c Implement virtual memory code for *nix and make generic 2021-08-26 15:53:08 +01:00
gingerBill
3e4d615983 Minor fixes 2021-08-26 15:41:32 +01:00
gingerBill
aa8777ee47 Change the implementation of Arena to use virtual memory, and remove the old gbArena code 2021-08-26 15:38:34 +01:00
gingerBill
da7a0df7a1 Simplify logic for parse_binary_expr 2021-08-25 11:43:02 +01:00