aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove `?`dev-2024-04agingerBill2024-04-111-1/+1
|
* Add @(static) checkgingerBill2024-04-111-2/+2
|
* Change stack overflow check to >256 KiBgingerBill2024-04-111-2/+2
|
* Add `nil` checksgingerBill2024-04-111-2/+2
|
* Fix `@(static)` error message buggingerBill2024-04-111-1/+1
|
* Add `-vet-unused-variables` and ``-vet-unused-imports` (`-vet-unused` is both)gingerBill2024-04-113-16/+41
|
* Fix #3412gingerBill2024-04-111-1/+1
|
* Fix `ptr_to_bit_field.field`gingerBill2024-04-102-2/+5
|
* Merge branch 'master' of https://github.com/odin-lang/OdingingerBill2024-04-102-2/+2
|\
| * Fix typo in using parameter error messageChris2024-04-091-1/+1
| |
| * fix nasm checkLaytan Laats2024-04-081-1/+1
| |
* | Make `intrinsics.overflow_*` NOT `#optional_ok`gingerBill2024-04-101-2/+2
|/
* Change allocator to permanentgingerBill2024-04-081-2/+2
|
* Obfuscate `#line`gingerBill2024-04-083-10/+15
|
* Obfuscate `#file` and `#procedure` when `-obfuscate-source-code-locations` ↵gingerBill2024-04-083-15/+25
| | | | is enabled
* Add `"type"` field to `-json-errors`gingerBill2024-04-081-0/+8
|
* Merge pull request #3394 from laytan/wasm-fixesgingerBill2024-04-081-0/+4
|\ | | | | Wasm fixes
| * enable the required target feature `atomics` when using them in wasmLaytan Laats2024-04-081-0/+4
| |
* | Fix printing error when field name could not be foundgingerBill2024-04-081-1/+2
| |
* | Improve error messages for people using keywords instead of identifiersgingerBill2024-04-081-1/+9
|/
* Merge pull request #3389 from laytan/fix-wasm-atomicsgingerBill2024-04-061-10/+5
|\ | | | | fix wasm atomics
| * fix wasm atomicsLaytan Laats2024-04-061-10/+5
| | | | | | | | Fixes #2745
* | Fix checker crash when `or_return`/`or_break`/`or_continue` used for ↵oskarnp2024-04-061-3/+3
|/ | | | non-existing proc
* fix amd64 sysv abi to pass asan everywhereLaytan Laats2024-04-041-32/+15
| | | | | | | | | | | | | | | I verified the PR by running the entire test suite of Odin itself with `-sanitize:address` and also the ols test suite (which caused unique problems before). A test has also been added with some problematic code, Windows seems to have problems with asan in CI or in general so it is not ran there. The LB_ABI_COMPUTE_RETURN_TYPES block has been removed entirely because it was unused, I got pretty confused why it didn't effect anything at first. Fixes #3211
* Merge pull request #3372 from laytan/fix-lbarg-ignore-logicgingerBill2024-04-042-2/+6
|\ | | | | fix lbArg_Ignore logic
| * fix lbArg_Ignore logicLaytan Laats2024-04-042-2/+6
| | | | | | | | Fixes #2698
* | Merge pull request #3374 from laytan/fix-128-ints-alignment-arm64gingerBill2024-04-042-2/+2
|\ \ | | | | | | fix 128 bit int alignment on arm64
| * | fix 128 bit int alignment on arm64Laytan Laats2024-04-042-2/+2
| |/ | | | | | | Fixes #2403
* | Add better error messages with suggestions for using `context` as an identifiergingerBill2024-04-041-0/+14
| |
* | Improve error messages for `A variable declaration must be an identifier`gingerBill2024-04-041-5/+22
| |
* | Remove consecutive linking librariesgingerBill2024-04-041-1/+13
| |
* | Default to "smart" linker behaviour; Add `-min-link-libs` to use minimize ↵gingerBill2024-04-043-34/+43
| | | | | | | | link libs if wanted
* | Merge pull request #3370 from laytan/fix-objc-proc-group-edge-casegingerBill2024-04-042-3/+5
|\ \ | |/ |/| fix objc proc group edge case
| * fix objc proc group edge caseLaytan Laats2024-04-032-3/+5
| | | | | | | | Fixes #2648
* | Merge pull request #3366 from laytan/fix-vet-scope-buggingerBill2024-04-031-1/+1
|\ \ | | | | | | fix vet scope bug skipping some scopes
| * | fix vet scope bug skipping some scopesLaytan Laats2024-04-021-1/+1
| | | | | | | | | | | | Fixes #3146
* | | fix -vet warning for stack overflows not showing upLaytan Laats2024-04-031-11/+9
| |/ |/| | | | | | | Due to the placement of this code, the warning would only ever be added if the variable was also either unused or shadowed.
* | Clarity warning and error printinggingerBill2024-04-022-6/+14
| |
* | Fix printing of warningsgingerBill2024-04-021-1/+2
| |
* | Merge pull request #3363 from laytan/fix-c-varargs-named-argsgingerBill2024-04-021-0/+27
|\ \ | | | | | | fix named arguments and untyped nil with #c_vararg
| * | fix untyped nil into c varargsLaytan Laats2024-04-021-0/+6
| | | | | | | | | | | | Fixes #2842
| * | fix named arguments with #c_varargLaytan Laats2024-04-021-0/+21
| |/ | | | | | | | | | | | | | | | | Previously `args=1`, `args={}`, `args={1, 2, 3}` would all crash the compiler. Now it passes them correctly, and if given a compound literal, the values are expanded into the call so you can use a named arg while passing multiple values. Fixes #3168
* | Merge pull request #3360 from laytan/debug-info-fixesJeroen van Rijn2024-04-011-2/+2
|\ \ | | | | | | fix wrong type in map debug info
| * | change unneeded permanent allocation to temporaryLaytan Laats2024-04-011-1/+1
| | |
| * | fix wrong type in map debug infoLaytan Laats2024-04-011-1/+1
| | |
* | | Merge pull request #3358 from laytan/debug-info-fixesgingerBill2024-04-014-489/+446
|\| | | |/ |/| debug info fixes/refactor
| * remove soa handling in debug info, fields are already added in checkerLaytan Laats2024-04-011-50/+1
| |
| * debug info fixes/refactorLaytan Laats2024-04-014-489/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes (on my end) #3340, #3117, #2945, #2922, and #2762 A general refactor of debug info generation in order to fix issues and increase stability. What I believe is the root cause of a bunch of issues is that we use the temporary metadata/forward declarations too much (/ hold onto them for too long). It seems to cause problems with the reference counting inside LLVM. This PR reduces the use of these forward declarations to a minimum, it creates it, fills in the fields, and resolves it, instead of waiting until the end of generating code. Some smaller issues I came across have also been solved.
* | Fix nested `ERROR_BLOCK` buggingerBill2024-04-011-5/+13
| |
* | Fix type checking for invalid enum backing typegingerBill2024-04-012-6/+4
| |