Commit Graph

17550 Commits

Author SHA1 Message Date
Jeroen van Rijn
213b5e779b Merge pull request #6732 from adihodos/fix-backtrace
Link against libstdc++exp for backtrace support
2026-06-05 16:42:04 +02:00
gingerBill
dd4044dd1c Merge branch 'master' of https://github.com/odin-lang/Odin 2026-06-05 14:13:18 +01:00
gingerBill
f14071bd14 Fix transmute corrupting a compile time constant 2026-06-05 14:13:08 +01:00
gingerBill
1c9fa5d0b7 Merge pull request #6731 from odin-lang/bill/expand-values-operator
Support `**` as `expand_values` operator: `**x` == `expand_values(x)`
2026-06-05 11:42:08 +01:00
gingerBill
8d1d126e16 Rearrange context and value_type values of lb_const_value 2026-06-05 10:19:55 +01:00
gingerBill
808d19123b Merge branch 'master' of https://github.com/odin-lang/Odin 2026-06-05 10:16:05 +01:00
gingerBill
99992e092f Fix constant array spreading for unions of constants 2026-06-05 10:15:51 +01:00
Jeroen van Rijn
d6f6c476fc Merge pull request #6765 from MightyChubz/fix/linux-inaccurate-meminfo
fix: Get meminfo from `/proc/meminfo` over `sysinfo()`
2026-06-05 09:39:30 +02:00
gingerBill
92dc385708 Merge pull request #6777 from A1029384756/bit_set_ops
[checker] disallow `*` and `/` for bit sets
2026-06-04 21:26:26 +01:00
A1029384756
f735e794a6 [checker] disallow * and / for bit sets 2026-06-04 16:12:35 -04:00
Alexander Cusaac (MightyChubz)
05f0539960 refactor: Move mem_unit before loop and apply it in switch statement 2026-06-04 13:21:27 -04:00
Alexander Cusaac (MightyChubz)
9942625c63 refactor: Use default_context() over removing "contextless" 2026-06-04 13:17:42 -04:00
gingerBill
d6cc5d41db Merge pull request #6771 from TheRadischen/patch-2
rotate crashes with 0 length
2026-06-04 15:48:40 +01:00
gingerBill
d94630c1c3 Merge pull request #6773 from mlgudi/fix-bit_field-assert-failure
Fix assertion failure when comparing array-backed `bit_field`s
2026-06-04 15:08:48 +01:00
mlgudi
7ba07860bb Rearrange lb_emit_comp is_type_array_like branch to avoid unnecessary transmutes for bit_fields taking the non-inline path 2026-06-04 03:22:06 +01:00
mlgudi
2cc0f8f6dc Fix compiler assertion failure caused by comparison of array-backed bit_fields 2026-06-04 02:03:00 +01:00
Alexander Cusaac (MightyChubz)
c9621748a4 typo
oops
2026-06-03 16:55:51 -04:00
Alexander Cusaac (MightyChubz)
26f824eb8e docs: Updated comment to explain approach more accurately 2026-06-03 16:52:58 -04:00
Alexander Cusaac (MightyChubz)
962f8dfd1b refactor: Add fallback to sysinfo() if /proc/meminfo can't be read
This is likely to never _actually_ execute, and the possibility of this
failing is extremely slim, but if this _does_ fail, then this fallback
should catch it, as long as I'm understanding things correctly. If the
fallback fails, we just go back to the original assert that existed
before.
2026-06-03 16:47:37 -04:00
Alexander Cusaac (MightyChubz)
3d3aa45e02 refactor: Update fallback to just return MemFree 2026-06-03 16:45:06 -04:00
Alexander Cusaac (MightyChubz)
32de482025 docs: Add small comment to explain purpose of approach 2026-06-03 16:44:31 -04:00
TheRadischen
639196f28d Update slice.odin
added a check for rotate_left

rotating with 0 length array crashes
2026-06-03 22:33:49 +02:00
Alexander Cusaac (MightyChubz)
55fd981941 refactor: Remove usage of do
I knew there was something I was forgetting with code in the core
packages. I wasn't applying the right arguments and style checks. Oops.
2026-06-03 12:09:46 -04:00
Jeroen van Rijn
d9b9acdf47 Merge pull request #6755 from Yawning/feature/pem
core/encoding/pem: Initial import
2026-06-03 17:22:52 +02:00
Alexander Cusaac (MightyChubz)
d41ff62c57 fix: Get meminfo from /proc/meminfo over sysinfo() 2026-06-03 05:28:05 -04:00
gingerBill
f040e29c1c Merge branch 'master' of https://github.com/odin-lang/Odin 2026-06-02 13:38:48 +01:00
gingerBill
16eac6187d Re-add @(link_section<string>) for procedures 2026-06-02 13:38:39 +01:00
gingerBill
6bb25d72b7 Merge pull request #6756 from A1029384756/rt_sigaction
[sys/linux] remove parapoly from `rt_sigaction`
2026-06-02 13:36:37 +01:00
gingerBill
7a5a73efae Generalize is_foreign_name_valid but add TODO to see how it should work. 2026-06-02 13:21:57 +01:00
gingerBill
a479eb7775 Support @(link_section=<string>) for procedures 2026-06-02 13:09:40 +01:00
gingerBill
b914dc1f32 Change compound literal grammar to match the formal grammar 2026-06-02 11:10:58 +01:00
gingerBill
619b3eb1b7 Merge pull request #6758 from juaumjuaumjuaum/patch-1
Swap panic_contextless and unimplemented_contexless documentation
2026-06-02 11:02:49 +01:00
Yawning Angel
e7698e4adf core/encoding/pem: Initial import 2026-06-02 17:48:46 +09:00
juaumjuaumjuaum
bf2d33f0e5 Swap panic_contextless and unimplemented_contexless documentation
They were swaped
2026-06-02 00:00:45 +02:00
A1029384756
d7116d6415 [sys/linux] remove parapoly from rt_sigaction 2026-06-01 12:59:23 -04:00
gingerBill
f03ec366c0 Merge pull request #6602 from GloriousPtr/master
Add IDevice10 interface to vendor/directx/d3d12
2026-05-29 11:59:08 +01:00
gingerBill
5375d0ab6e Merge pull request #6749 from giornetta/patch-1
fix: inverted SDL2 and SDL3 in vendor/README.md
2026-05-29 10:59:16 +01:00
Michele Giornetta
21fc31dfb8 fix: invert SDL2 and SDL3 in vendor README 2026-05-29 11:01:01 +02:00
gingerBill
eaa32a82e8 Fix global constant union initialization bug. 2026-05-29 09:38:56 +01:00
gingerBill
baa4169744 Fix windows tests 2026-05-28 08:35:21 +01:00
gingerBill
195467c53e Merge pull request #6740 from jakubtomsu/any-int-fix
Properly check `#any_int` param operands
2026-05-28 08:29:42 +01:00
gingerBill
e506b78727 Merge pull request #6741 from jakubtomsu/error-pos-style
Fix error pos style environment variable overwriting commandline argument
2026-05-28 08:28:56 +01:00
gingerBill
24f1c63611 Merge pull request #6742 from jakubtomsu/bit-field-using-scope
Fix `using` on bit fields
2026-05-28 08:28:33 +01:00
jakubtomsu
3a413c3ef1 let using bit field populate scope 2026-05-27 20:29:56 +02:00
jakubtomsu
dca7710471 fix error pos style env var overwriting arg 2026-05-27 20:02:34 +02:00
jakubtomsu
8e9c0d38fa fix disallowed bool -> any_int in win32 2026-05-27 19:11:08 +02:00
jakubtomsu
46bb13d0bd check operand type in any_int params 2026-05-27 19:10:34 +02:00
gingerBill
edbbe4be92 Unify check_type_specialization_to logic 2026-05-27 15:52:32 +01:00
gingerBill
73d10f1cb6 Rename cbrt.odin to math_cbrt.odin 2026-05-27 11:03:14 +01:00
gingerBill
615f6b9d77 Fix typo 2026-05-27 11:01:41 +01:00