gingerBill
e42b16b106
Merge pull request #3366 from laytan/fix-vet-scope-bug
...
fix vet scope bug skipping some scopes
2024-04-03 11:40:01 +01:00
Laytan Laats
b754c1e072
fix -vet warning for stack overflows not showing up
...
Due to the placement of this code, the warning would only ever be added
if the variable was also either unused or shadowed.
2024-04-03 01:05:54 +02:00
Laytan Laats
21fcf7c874
fix vet scope bug skipping some scopes
...
Fixes #3146
2024-04-02 23:59:38 +02:00
gingerBill
cf9bdc134c
Fix #3341
2024-03-27 16:48:51 +00:00
gingerBill
3bc7c51325
Merge pull request #3283 from laytan/darwin-new-wait-on-address-api
...
darwin: use new wait on address API if possible
2024-03-27 11:20:32 +00:00
gingerBill
fa84272d5e
Merge pull request #3335 from rick-masters/fix_incomplete_struct_type
...
Don't add type info for incomplete structs.
2024-03-26 16:08:12 +00:00
gingerBill
0989eac681
Add extra sanity check for nullptr
2024-03-26 14:57:06 +00:00
rick-masters
b8c0a02164
Don't add type info for incomplete structs.
2024-03-26 14:34:56 +00:00
gingerBill
1009182f7b
Fix another #soa race condition bug
2024-03-26 14:13:55 +00:00
gingerBill
e100d9264f
Merge pull request #3329 from laytan/fix-darwin_amd64-f16-emulation-on-older-microarches
...
darwin: fix amd64 f16 emulation
2024-03-25 16:35:57 +00:00
Laytan Laats
b2a35683a4
darwin: fix amd64 f16 emulation
...
Fixes #3222
2024-03-25 14:07:49 +01:00
gingerBill
223a336eb4
Fix #3249
2024-03-24 13:45:10 +00:00
gingerBill
87688936c6
Improve error messages for some wrong constant value attributes
2024-03-24 13:36:50 +00:00
gingerBill
517d7ae0b0
Add error block around error_line calls
2024-03-23 17:51:56 +00:00
gingerBill
624b870f28
Add some basic escape analysis errors for return &x
2024-03-23 14:58:10 +00:00
gerigk
800014e40c
Remove entry point when compiled with no-entry-point as shared library
2024-03-20 23:18:08 +01:00
gingerBill
433109ff52
Replace gb_exit(1) with exit_with_errors() where appropriate
2024-03-19 16:29:45 +00:00
gingerBill
9a2fc6cf4c
Serialize errors to make them sortable, deterministic, and generally more control
2024-03-19 15:34:29 +00:00
gingerBill
00344e1323
Add check to people trying to foreign import C files.
2024-03-18 16:56:01 +00:00
Laytan Laats
dd92d3054d
add ODIN_ prefix to the new constant
2024-03-18 17:22:58 +01:00
Laytan Laats
9c455b2213
darwin: use new wait on address API if possible
2024-03-15 21:43:16 +01:00
avanspector
0a6673220b
Merge branch 'haiku' of https://github.com/avanspector/Odin into haiku
2024-02-25 02:24:58 +01:00
avanspector
88add0b6b1
Improve Haiku support
2024-02-25 02:24:52 +01:00
gingerBill
a4b8c1ea17
Begin work adding bit_field
2024-02-22 15:55:54 +00:00
gingerBill
5c4485f657
Add #load_directory(path: string) > []runtime.Load_Directory_File
2024-02-09 15:18:29 +00:00
gingerBill
a08250ac5b
Improve error handling for missing library collection provided by the compiler
2024-02-07 17:15:59 +00:00
gingerBill
80a0b161b0
Force 128-bit calls on wasm
2024-02-05 13:51:16 +00:00
gingerBill
27feb5998c
Add require to 128-bit and f16 casts
2024-02-05 13:49:10 +00:00
gingerBill
e88db2818b
force requiring the 128-bit calls on WASM targets
2024-02-05 13:48:08 +00:00
gingerBill
19535d8721
Add require flags to 128-bit integer procedures
2024-02-05 11:11:28 +00:00
gingerBill
e7122a0950
Minimize extra dependencies if u128/i128 and f16 are not used
2024-02-02 11:42:22 +00:00
gingerBill
9fb090d1b8
Merge pull request #3141 from laytan/add-all-packages-flag-for-tests
...
Add `odin test -all-packages` to be able to test an entire project
2024-01-31 11:59:54 +00:00
gingerBill
3c24584290
Remove cyclic import hack for package runtime
2024-01-28 23:12:48 +00:00
gingerBill
395e0fb225
-default-to-panic-allocator
2024-01-28 22:09:20 +00:00
gingerBill
d04c82e547
Move matrix compiler builtins to intrinsics; alias within core_builtin_matrix.odin
2024-01-28 21:20:30 +00:00
gingerBill
09fa1c29cd
Move core:runtime to base:runtime; keep alias around
2024-01-28 21:05:53 +00:00
gingerBill
c1d853a24e
Remove dead code
2024-01-28 17:32:34 +00:00
Laytan Laats
31914e9cb9
Add odin test -all-packages to be able to test an entire project
2024-01-26 18:27:05 +01:00
Laytan Laats
2097b09abb
fix for wasm on llvm 17
2024-01-22 21:07:17 +01:00
Jeroen van Rijn
fc047a8043
Expand -subsystem option on Windows
...
W:\Odin>odin run sketch.odin -file -subsystem:foo
Invalid -subsystem string, got oo. Expected one of:
BOOT_APPLICATION, CONSOLE (default), EFI_APPLICATION, EFI_BOOT_SERVICE_DRIVER, EFI_ROM, EFI_RUNTIME_DRIVER, NATIVE, POSIX, WINDOWS (or WINDOW), WINDOWSCE
We now also set the constant ODIN_WINDOWS_SUBSYSTEM, which is "" for non-Windows targets.
2024-01-18 19:12:39 +01:00
Jeroen van Rijn
ae52e245ea
Add WINDOWS_SUBSYSTEM constant bool
...
true when -subsystem:windows for Windows targets, false otherwise.
2024-01-18 17:42:03 +01:00
gingerBill
aff8f06e3c
Add frontend stuff instrumentation tooling
...
//+no-instrumentation
@(no_instrumentation)
@(instrumentation_enter)
@(instrumentation_exit)
2024-01-07 19:56:00 +00:00
gingerBill
d7d23e65ea
Clean up error block usage
2024-01-05 13:47:00 +00:00
gingerBill
2820bbc269
Add @(entry_point_only) for procedures
2024-01-05 13:38:30 +00:00
Laytan Laats
383d485e2a
fix double execution of tests
2023-12-27 15:34:11 +01:00
gingerBill
beb4699b46
Check test procedures after all minimum dependency set calls are done
2023-12-18 22:09:10 +00:00
gingerBill
d47a403d29
Fix: Bill was a numpty
2023-12-15 11:02:40 +00:00
gingerBill
1606f756b3
Remove neighbouring duplicates from neighbouring sorted array of entities; fixes duplicate tests
2023-12-15 10:59:34 +00:00
gingerBill
bf9ae77fbd
Remove duplicates from init/fini procedure list
2023-12-12 17:29:52 +00:00
gingerBill
4adfc120ba
Merge branch 'master' of https://github.com/odin-lang/Odin
2023-12-12 17:11:42 +00:00