Commit Graph

6372 Commits

Author SHA1 Message Date
gingerBill
baef272bbd Support constant compound literals 2026-06-22 12:53:27 +01:00
gingerBill
ff8274c4f1 Merge pull request #6870 from Znarf64/raise_signal_on_child_crash
Raise child process error signal if `odin run` child gets terminated.
2026-06-22 12:52:08 +01:00
gingerBill
67cd466974 Fix the mistake caused by #6845 2026-06-22 12:45:44 +01:00
Franz
5dd0041eb2 Raise child process error signal if odin run child gets terminated.
Previously one would get a nice `$ pid segmentation fault (core dumped) odin run .` message,
but this behaviour was (probably unintentionally) removed in #6848.
2026-06-22 12:32:39 +02:00
gingerBill
1c5c490bdd Merge pull request #6848 from A1029384756/subprocess
[subprocess] move away from `system` for `odin run`
2026-06-21 10:09:37 +01:00
gingerBill
604c6f85f1 Merge pull request #6859 from Raykiru/master
Fix: tuples are not handled properly in struct literals
2026-06-19 16:08:16 +01:00
ARay
912a45769b fix issue 6853:
when iterating the values of an array literal,if one of the values
is a function with multiple returns, it doesn't offset the struct
field index by the number of values.
2026-06-19 16:52:51 +03:00
ARay
3db074900f comment out dead code: val is not used anywhere else in that scope 2026-06-19 15:05:23 +03:00
gingerBill
85db8c68a9 Remove -stack-protector:default as none is now the default 2026-06-19 09:14:11 +01:00
gingerBill
11e7cff116 Change -stack-protector: default to none 2026-06-19 09:12:57 +01:00
gingerBill
69daa4d184 Merge pull request #6830 from A1029384756/stack-canaries
Stack canaries
2026-06-19 09:11:40 +01:00
gingerBill
417aa0ea9e Remove 0h float panic which will have been caught previously by the tokenizer 2026-06-19 09:08:52 +01:00
A1029384756
32db7d8d56 [subprocess] remove p as PATH is not needed to find executable 2026-06-17 00:12:36 -04:00
A1029384756
1b4e277f58 [subprocess] removed unused variable 2026-06-15 22:59:58 -04:00
Franz
5fdfbf7c06 Fix initialization of global anys 2026-06-16 00:24:47 +02:00
A1029384756
3bf48e29d2 [subprocess] move away from system for odin run 2026-06-15 15:43:03 -04:00
gingerBill
167c0e82b0 Merge pull request #6845 from astenmark/fix-6814-subtype-nesting-panic
Fix #6814: reject transitive #subtype-only implicit conversion in checker
2026-06-15 13:26:06 +01:00
gingerBill
3c2f6a51f9 Merge pull request #6844 from astenmark/fix-6811-private-file-drops-tests
Fix #6811: collect @(test) procs from #+private file by iterating c->…
2026-06-15 11:23:22 +01:00
gingerBill
ea34163fcb Merge pull request #6846 from Znarf64/typeid_cast_suggestion
Add suggestion to use 'typeid_of(type)' when trying to do `typeid(type)`
2026-06-15 11:22:10 +01:00
Franz
32f1a09909 Add suggestion to use 'typeid_of(type)' when trying to do typeid(type) 2026-06-15 11:38:43 +02:00
Andreas Stenmark
bc5adb070f Fix #6814: reject transitive #subtype-only implicit conversion in checker 2026-06-15 00:51:36 +02:00
Andreas Stenmark
d08c953411 Fix #6811: collect @(test) procs from #+private file by iterating c->info.entities instead of pkg->scope->elements. 2026-06-14 23:10:36 +02:00
A1029384756
863b2aea80 [stack-canaries] default to sspstrong 2026-06-14 13:36:55 -04:00
Krzysztof Furman
15deb7a118 Commented the workaround with links to issues, and put it behind a build flag. 2026-06-13 09:53:43 +01:00
A1029384756
8bd95d4082 [stack-canaries] fixed stack canaries on arm linux 2026-06-13 01:52:19 -04:00
A1029384756
3598e351a4 [stack-canaries] restricted to only non-arm 2026-06-12 23:56:55 -04:00
A1029384756
f850fef613 [stack-canaries] disallow stack canaries on non-intel linux 2026-06-12 23:54:26 -04:00
A1029384756
8ccee66157 [stack-canaries] fixed platform behavior 2026-06-12 23:27:32 -04:00
A1029384756
2373fabe47 [stack-canaries] added protection modes 2026-06-12 22:57:39 -04:00
Krzysztof Furman
b05d459a13 Make the type hash 63-bit to not crash OMG JIT in WebKit under WASM. 2026-06-12 21:33:56 +01:00
Jeroen van Rijn
47cf0d3f42 Merge pull request #6790 from A1029384756/linux_pie
[linux] change default settings to enable pie and full relro
2026-06-12 11:21:51 +02:00
A1029384756
286674a862 [no-plt] restricted to llvm 19+ 2026-06-08 10:59:32 -04:00
A1029384756
da742fc526 [no-plt] enable no-plt behavior on linux arm64 and amd64 targets 2026-06-08 10:58:05 -04:00
A1029384756
43b057dfeb [linux] change default settings to enable pie and full relro 2026-06-06 21:23:26 -04:00
lualvsil
1b07372547 AArch64 assembly support for foreign import 2026-06-05 23:23:50 -03: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
A1029384756
f735e794a6 [checker] disallow * and / for bit sets 2026-06-04 16:12:35 -04: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
gingerBill
16eac6187d Re-add @(link_section<string>) for procedures 2026-06-02 13:38:39 +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
eaa32a82e8 Fix global constant union initialization bug. 2026-05-29 09:38:56 +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