Commit Graph

4672 Commits

Author SHA1 Message Date
Feoramund
f030603f0d Fix #3660
This also prevents a segfault if you do `odin build .odin -file`
2024-06-02 16:47:46 -04:00
gingerBill
ae63fd9230 Fix #3649 2024-05-30 23:08:42 +01:00
gingerBill
e737122ce8 Add experimental target orca_wasm32 2024-05-30 21:58:27 +01:00
gingerBill
8db87170a9 Clean up handle_link_name handling of link_suffix 2024-05-30 21:53:23 +01:00
gingerBill
66acbb7fed Add @(link_suffix=<string>) 2024-05-30 21:48:23 +01:00
Dudejoe870
9b78061c8f Initial hash directive implementation 2024-05-28 22:42:10 -05:00
gingerBill
d91054b615 Change parser to use ^Expr rather than string for the foreign import paths 2024-05-28 00:27:13 +01:00
gingerBill
a1b8749e74 Delay checking foreign import paths until after global scope is checked 2024-05-28 00:23:23 +01:00
gingerBill
38fffff06a Begin moving foreign import import paths to be evaluated in the semantic phase rather than parsing. 2024-05-27 23:51:43 +01:00
gingerBill
64bdb3a097 Fix #3630 (first part) 2024-05-26 12:17:03 +01:00
gingerBill
7dc1f114b9 Add shadow suggestion 2024-05-22 22:22:41 +01:00
gingerBill
f3f08c264f Be very particular with the cases for the error notes 2024-05-22 21:55:48 +01:00
gingerBill
2f35ee9671 Improve errors a lot for assigning procedures of the wrong signature 2024-05-22 21:52:15 +01:00
gingerBill
856537f0ce Fix #3603 2024-05-20 15:54:53 +01:00
gingerBill
bc706f8b0c Fix indexing type when using a #row_major matrix 2024-05-20 15:04:15 +01:00
gingerBill
a68c635c00 Remove constant indexing for matrix value propagation 2024-05-20 15:00:43 +01:00
gingerBill
c49a291347 Merge pull request #3607 from Szwagi/fix-atomic-memory-order
Fix Odin to LLVM memory order mapping for .Relaxed and .Consume
2024-05-20 14:29:06 +01:00
Kamil T
f6ef395057 Fix Odin to LLVM memory order mapping for .Relaxed and .Consume 2024-05-20 13:57:08 +01:00
gingerBill
46b3e7b6fa Fix for &v in &fixed_array 2024-05-20 13:36:32 +01:00
gingerBill
a80011c830 Merge branch 'master' of https://github.com/odin-lang/Odin 2024-05-20 13:32:22 +01:00
gingerBill
542c3d7561 Improve "Expected a type" syntax error 2024-05-20 13:32:16 +01:00
gingerBill
891fefe117 Merge pull request #3592 from laytan/wasm-gpa
add a default heap/general purpose allocator for wasm to `base:runtime`
2024-05-20 10:38:09 +01:00
gingerBill
5473758467 Add intrinsics type_is_matrix_row_major & type_is_matrix_column_major 2024-05-20 10:15:21 +01:00
gingerBill
8dec4f6ed3 Merge pull request #3570 from jasonKercher/linux-arm32
Get the compiler to build and work on arm32 Linux
2024-05-20 00:05:57 +01:00
gingerBill
1207d64c64 Fix intrinsics.ptr_sub 2024-05-19 23:55:45 +01:00
Laytan Laats
f42b1c4973 add a default heap/general purpose allocator for wasm to base:runtime 2024-05-16 23:08:40 +02:00
gingerBill
ab8e3db7e9 Remove bad code 2024-05-16 17:18:37 +01:00
gingerBill
575b268e88 Fix more #soa changes 2024-05-16 17:15:38 +01:00
gingerBill
c9b1c99a40 Fix soa_zip and soa_unzip 2024-05-16 16:27:09 +01:00
gingerBill
32245e93a1 Fix #3514 along with soa.a[i] bounds checking 2024-05-16 16:18:21 +01:00
gingerBill
330d6117e3 Fix #3589 2024-05-16 15:43:08 +01:00
gingerBill
b2dc5cc812 Fix error reporting for enforce new switch/for syntax 2024-05-16 15:32:15 +01:00
gingerBill
a344bc4c0e Remove the old switch/for semantics entirely and enforce switch &x in y 2024-05-16 14:39:16 +01:00
gingerBill
e71cd871c4 Reimplement -build-mode:static/-build-mode:lib 2024-05-16 14:27:05 +01:00
gingerBill
f9fd8f0c25 Merge pull request #3439 from andreas-jonsson/netbsd
NetBSD support
2024-05-15 10:33:52 +01:00
gingerBill
e05315831f Fix #3586 2024-05-14 00:18:38 +01:00
gingerBill
7734b12f9a Fix #3587 2024-05-14 00:16:32 +01:00
gingerBill
20f8f9012d Attempt at fixing #3588 2024-05-14 00:11:57 +01:00
gingerBill
0cf9dcd314 Make .. ranges a complete error rather than a warning now.
This should have been an error years ago.
2024-05-13 18:15:29 +01:00
gingerBill
8fa20fb875 Extra check for field being nullptr 2024-05-13 14:44:53 +01:00
gingerBill
215ef3d985 Make core:runtime etc a warning, and an error with -vet 2024-05-13 13:26:47 +01:00
gingerBill
8808e5584a If only warnings exist on print_all_errors, next time it is called, clear the error list.
This is mostly only syntax errors too
2024-05-13 13:26:22 +01:00
gingerBill
4bdc8548bd Fix #3554 2024-05-13 12:55:49 +01:00
gingerBill
8d687a959d Fix #3516 2024-05-13 12:52:28 +01:00
gingerBill
8b4a8e4d80 Fix #3569 2024-05-13 12:49:12 +01:00
gingerBill
e4ec7cc3f3 Merge pull request #3580 from Feoramund/suggest-test-all-packages
Suggest `-all-packages` flag when testing empty directory
2024-05-13 12:42:48 +01:00
gingerBill
34c8739b69 Fix #3578 2024-05-13 12:42:06 +01:00
gingerBill
d1217340f5 Fix #3573 2024-05-13 12:26:01 +01:00
gingerBill
4eab735b13 Minor clean up of is_terminating code
This does not fix all known issues with it
2024-05-13 12:24:50 +01:00
gingerBill
f8d235b6f5 Fix #3581 due to typo 2024-05-13 12:02:02 +01:00