Commit Graph

6411 Commits

Author SHA1 Message Date
misomosi
85c2aaf0a4 Use libtommath API for counting bits 2026-06-28 19:25:02 -04:00
gingerBill
7da5608121 Add _append_elem_ptr to optimize for append when the element is internally pointer-like 2026-06-28 13:31:49 +01:00
gingerBill
910ddb4626 Check for nullptr when none of the options match in a proc group 2026-06-26 15:09:18 +01:00
gingerBill
7aff98a150 Fix procedure_of(x) 2026-06-26 15:07:54 +01:00
korvahkh
0aa6d8f318 Fix #6885
Broadcasting `field = value` compound literals
would assert.
This is because we were checking for a
`field = value` compound before checking
if the types matched, and thus could broadcast.
2026-06-24 16:28:02 -05:00
gingerBill
6fdaedf182 Fix indentation 2026-06-24 14:05:35 +01:00
gingerBill
5c48d91f8e And missing command line flag information 2026-06-24 13:44:49 +01:00
gingerBill
40e54a97ed Merge branch 'master' into bill/bedrock 2026-06-24 11:07:02 +01:00
gingerBill
ade003e128 Allow for -> (#simd[N]T) style return types 2026-06-24 10:51:28 +01:00
gingerBill
078664a5c2 Merge branch 'master' of https://github.com/odin-lang/Odin 2026-06-24 10:38:31 +01:00
gingerBill
f602a6acd7 Fix #6725 #6798 #4943 2026-06-24 10:38:21 +01:00
gingerBill
b1e9d83ea2 Merge pull request #6880 from RoBaertschi/master
Fix #6874
2026-06-24 10:36:20 +01:00
gingerBill
55b63099a8 Fix constant x %% y evaluation 2026-06-24 10:35:36 +01:00
Bärtschi Robin
3883d079c8 Fix #6874 2026-06-24 08:04:17 +02:00
gingerBill
07fee34419 Allow for both odin command path -flags and odin command -flags path
To do this, if the first argument after the command and last argument is NOT a flag, then put that last parameter first.
2026-06-23 17:27:17 +01:00
gingerBill
5ba39f42ea Improve error message on calls with varying argument count 2026-06-23 11:49:00 +01:00
gingerBill
8397c83560 Merge pull request #5508 from Paul-Andre/print-errors-before-assert
Flush accumulated errors before printing assert
2026-06-23 11:41:48 +01:00
gingerBill
3bbeecea41 Merge branch 'master' of https://github.com/odin-lang/Odin 2026-06-22 15:41:52 +01:00
gingerBill
d16a37e649 Add warning to help very large return values (partially fixes #6568) 2026-06-22 15:41:43 +01:00
Jeroen van Rijn
6bae6eb3f1 Clarify "it" 2026-06-22 15:46:02 +02:00
Jeroen van Rijn
8148b04a6c Add missing word. 2026-06-22 15:44:11 +02:00
Jeroen van Rijn
778d3b97b6 Add comment to odin root about why there's no newline
Add comment to `odin root` about why there's no newline, and why we closed #6834 and #6871.

Future such pull requests will be closed without comment.
2026-06-22 15:40:21 +02:00
gingerBill
6cf57c1eaa Fix #6863 2026-06-22 13:17:43 +01:00
gingerBill
3834aeec49 Compiler: Improve error propagation when all of the overloads have the same return values 2026-06-22 12:56:25 +01:00
gingerBill
2aea1d13f1 Improve lb_copy_bits 2026-06-22 12:55:50 +01:00
gingerBill
8971e0f1ec Fix shifting buf in lb_copy_bits 2026-06-22 12:55:45 +01:00
gingerBill
588a8148f2 Remove the now defunct __write_bits and __read_bits 2026-06-22 12:55:33 +01:00
gingerBill
900ebd6b5b Heavily improve reading and writing to bit fields 2026-06-22 12:55:29 +01:00
gingerBill
244430bd4a Allow for struct #raw_union #packed 2026-06-22 12:55:15 +01:00
gingerBill
b3f6d9ce9b doc_writer: String intern constant values expressions 2026-06-22 12:54:50 +01:00
gingerBill
6af1fe3e22 doc writer: Use string interning and minimize the size of the compound literal generation when it is HUGE 2026-06-22 12:54:43 +01:00
gingerBill
a7186b8af0 Minimize error propagation of map[key] indexing 2026-06-22 12:54:02 +01:00
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