Commit Graph

5286 Commits

Author SHA1 Message Date
gingerBill
e168cea670 Add offset for nested things 2025-02-18 15:17:04 +00:00
gingerBill
481745784f Remove debug print 2025-02-18 15:04:02 +00:00
gingerBill
04c1ff61f4 Update the comments 2025-02-18 15:03:49 +00:00
gingerBill
23efd1bd02 Add TypeWriter stream to allow for in-place hashing and string generation 2025-02-18 14:32:41 +00:00
gingerBill
19b59461b0 Use TypeSet for DeclInfo deps 2025-02-18 13:31:34 +00:00
gingerBill
721bcf2249 Minor code clean up 2025-02-18 13:24:08 +00:00
gingerBill
d69eb57cfa Fix typos 2025-02-18 13:18:51 +00:00
gingerBill
4a29d9bb84 Simplify type info table construction 2025-02-17 16:29:42 +00:00
gingerBill
b8f057951c Begin work on TypeSet 2025-02-17 13:46:17 +00:00
gingerBill
9b26bb2e6a Begin work on hash types 2025-02-17 13:10:38 +00:00
gingerBill
043f9aea61 Clean up rules for name mangling 2025-02-17 12:40:43 +00:00
gingerBill
b5cf776830 Use new name canonicalization approach 2025-02-17 11:48:54 +00:00
gingerBill
99d91ccd31 Work on making name mangling deterministic 2025-02-17 11:32:49 +00:00
gingerBill
4eba3698aa Begin work on nested declarations 2025-02-17 09:47:49 +00:00
gingerBill
2a5933513c Fill in more canonical types 2025-02-15 12:32:05 +00:00
gingerBill
98201962e0 Begin work on producing a canonicalized type string for hashing types. 2025-02-14 17:29:38 +00:00
gingerBill
fbee045023 Merge pull request #4797 from laytan/improve-abs-of-float
improve abs() on floats for more correct and faster results
2025-02-08 07:49:22 +00:00
gingerBill
58c4f13c82 Merge branch 'master' into bill/sdl3 2025-02-07 07:53:47 +00:00
gingerBill
667ddc1907 Merge pull request #4786 from korvahkh/fix-variants2ptrs
Preserve `#no_nil` in `intrinsics.type_convert_variants_to_pointers`
2025-02-07 07:30:14 +00:00
gingerBill
4e300b3fc8 Merge pull request #4796 from laytan/obfuscate-more
-obfuscate-source-code-locations on bounds checks and type assertions
2025-02-07 07:30:00 +00:00
Laytan Laats
5defddffd0 reorganize tests and handle endian 2025-02-06 21:44:34 +01:00
Laytan Laats
de83ad2a25 apply abs fix to constant system too 2025-02-06 21:19:54 +01:00
Laytan Laats
1053ec3051 make corrected linkage with -use-separate-modules apply hidden visibility
Fixes #4798

The DLL was using the type info of the host/exe, causing crashes.
This PR tries fixing by applying hidden visibility to these corrected
symbols which makes sure that the DLL can't see the type table of the host/exe.
2025-02-06 20:45:58 +01:00
Laytan Laats
b1068c7f2e improve abs() on floats for more correct and faster results 2025-02-05 21:17:48 +01:00
Laytan Laats
b86d2c30b6 fix odin report macos version reporting unknown when release isn't a 3 point 2025-02-05 20:16:24 +01:00
Laytan Laats
b77430bea8 -obfuscate-source-code-locations on bounds checks and type assertions 2025-02-05 19:42:20 +01:00
gingerBill
f80bea5b11 Remove transmute suggestion with -vet-cast when transmuting native <-> endian-specific types 2025-02-05 10:27:17 +00:00
gingerBill
ab469e657d Remove debug code 2025-02-05 10:20:18 +00:00
gingerBill
086d7956b1 Merge branch 'master' into bill/sdl3 2025-02-04 10:31:12 +00:00
korvahkh
1281303ff7 Preserve #no_nil in intrinsics.type_convert_variants_to_pointers
Previously the newly returned type would not be marked as `#no_nil`.
This caused `reflect.get_union_as_ptr_variants`
to break on `#no_nil` unions.
2025-02-03 16:08:19 -06:00
gingerBill
a219da14ce Fix gb.h's gb_fprintf_va to allocate if the string is larger than the default buffer 2025-01-31 09:43:30 +00:00
gingerBill
05a2d1bfbf Fix #4750 2025-01-31 09:34:38 +00:00
gingerBill
2af60b8767 Fix #4763 2025-01-31 09:30:15 +00:00
gingerBill
0cd20e61ab Add @(export) foreign import 2025-01-31 08:34:15 +00:00
gingerBill
4093026a9a Clean up @(export) foreign import code 2025-01-30 11:36:12 +00:00
gingerBill
b48f14ba82 @(export) foreign import to be package scope level 2025-01-30 11:30:38 +00:00
gingerBill
2656ecd4e1 Fix #4773 - Change order of evaluation for slicing indices 2025-01-29 15:53:34 +00:00
Laytan
5ebc31edcb Merge pull request #4580 from tf2spi/4485-fix-exact-value-float
Fix parsing of integer w/ 'e' notation
2025-01-29 07:28:40 +01:00
gingerBill
15ece42e74 Print frameworks first on Darwin targets 2025-01-28 10:34:41 +00:00
gingerBill
868ab27720 Add @(ignore_duplicates) for foreign import declarations 2025-01-28 10:31:46 +00:00
Laytan Laats
9dc17f4c47 optimize fix 2025-01-24 19:33:57 +01:00
Laytan Laats
b2aaf90f88 fix separate modules with objc code 2025-01-24 19:23:49 +01:00
gingerBill
867af80bff Add -use-single-module 2025-01-22 13:26:35 +00:00
gingerBill
d4e15074ea Enable -use-separate-modules as default for all platforms 2025-01-22 13:13:00 +00:00
gingerBill
d6633639dc Remove duplicates of .framework/.dynlib/.so in linker 2025-01-22 13:01:06 +00:00
jason
e85667c95c fix grammar in error message 2025-01-21 20:48:11 -05:00
jason
b25ca0bb11 fixes compiler crash on syntax error (issue 4738) 2025-01-21 20:37:17 -05:00
David Rubin
5951c25f71 fix inverted error messages 2025-01-18 02:04:35 -08:00
gingerBill
b9bf5b1496 Merge pull request #4703 from flysand7/4685-range-stack-overflow
Do not warn about stack overflow in range loops 'by reference'
2025-01-17 13:23:15 +00:00
flysand7
3f20b63243 Error if -no-thread-local is used in presence of -no-crt on Unix 2025-01-17 02:51:22 +03:00