Commit Graph

16593 Commits

Author SHA1 Message Date
Jeroen van Rijn
586355f4ac core:text/i18n -> core:os/os2 2026-02-08 12:44:11 +01:00
Jeroen van Rijn
ab0f1aa0c4 BSDs 2026-02-08 12:44:10 +01:00
Jeroen van Rijn
14021f6444 core:testing Darwin 2026-02-08 12:44:09 +01:00
Jeroen van Rijn
47786deddc In the middle of porting core:testing 2026-02-08 12:44:08 +01:00
Jeroen van Rijn
456f9b17ed core:os -> core:os/os2 in core:terminal 2026-02-08 12:44:07 +01:00
Jeroen van Rijn
02477b2526 eprintf 2026-02-08 12:44:06 +01:00
Jeroen van Rijn
e094de5874 Add loc := #caller_location to read_entire_file 2026-02-08 12:44:05 +01:00
Jeroen van Rijn
4eab15130f Add updated PNG example 2026-02-08 12:43:55 +01:00
Jeroen van Rijn
a86ec95944 Address wasi errors 2026-02-08 12:42:29 +01:00
Jeroen van Rijn
9c1a9c80f8 core:os -> core:os/os for core:math/big 2026-02-08 12:42:28 +01:00
Jeroen van Rijn
170e314f83 core:os -> core:os/os for core:image 2026-02-08 12:42:27 +01:00
Jeroen van Rijn
f63c209478 Convert core:encoding/hxa 2026-02-08 12:42:26 +01:00
Jeroen van Rijn
1cbd60f40e Reenable core:encoding/ini tests 2026-02-08 12:42:25 +01:00
Jeroen van Rijn
304f22c8af core:os -> core:os/os for CSV, INI, and XML
Also had to vendor `core:encoding/ini` into `core:os/os2` for the user directories on *nix,
as it used that package to read `~/.config/user-dirs.dirs`, causing an import cycle.
2026-02-08 12:42:24 +01:00
Jeroen van Rijn
3303d3c98f Stub out core:os/os2 for js_wasm 2026-02-08 12:42:23 +01:00
Jeroen van Rijn
ec314c8324 fix conflict 2026-02-08 12:42:17 +01:00
Laytan Laats
7b18a08d56 add vendor:curl to docs 2026-02-07 15:45:25 +01:00
gingerBill
6130f34e47 Merge pull request #6242 from heavyrain266/fix-enum-type
vendor:directx/d3d12 fixed access violation errors
2026-02-07 09:43:11 +00:00
Ignacy Koper
dcbbb5792b vendor:directx/d3d12: changed backing integers of BARRIER* enums and bit-sets to u32 from i64
and added missing `Flags` field to `TEXTURE_BARRIER` struct

Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-02-07 09:58:42 +01:00
Jeroen van Rijn
0c360e51a1 Merge pull request #6228 from heavyrain266/expand-d3d12
added `IGraphicsCommandList7` to vendor:directx/d3d12
2026-02-06 14:14:58 +01:00
Ignacy Koper
a6ad74cea6 vendor:directx/d3d12: added IGraphicsCommandList7 with enhanced barriers
Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-02-06 13:59:02 +01:00
Jeroen van Rijn
b2d113aebf Merge pull request #6230 from Nahuel2998/fix/x11-xlib-xchangewindowattributes
vendor/x11/xlib: Fix signature of XChangeWindowAttributes
2026-02-04 21:48:22 +01:00
Nahuel2998
7ef562b51e vendor/x11/xlib: Fix signature of XChangeWindowAttributes
Actually fixes #5139
2026-02-04 17:29:10 -03:00
gingerBill
6f7a64a47d Change LTO rules for all platforms 2026-02-04 17:15:48 +00:00
gingerBill
b942f72cb0 Add docs for -lto:<string>; remove -lld and -radlink flags docs; with -lto default to -use-separate-modules and -linker:lld dev-2026-02 2026-02-04 12:45:26 +00:00
gingerBill
5cf0ba47ab Merge pull request #6226 from Nahuel2998/fix/x11-xlib-procs-returntype
vendor/x11/xlib: Fix returntype of some procs
2026-02-04 10:28:29 +00:00
gingerBill
61f3d45fa7 Merge pull request #6227 from JesseRMeyer/lto-support
Fix LTO on Windows
2026-02-04 08:59:23 +00:00
Jesse Meyer
b8276065f9 Merge branch 'master' into lto-support 2026-02-03 20:52:52 -05:00
Jesse Meyer
bd6148dd6b Fix Windows LTO: preserve required procedures with llvm.used
On Windows with LTO, required procedures with external linkage need to
be added to @llvm.used to survive linker-level dead code elimination.

LLVM may generate implicit calls to runtime builtins (e.g., __extendhfsf2
for f16 conversions) during instruction lowering, after the IR is
finalized. Without @llvm.used, the linker discards these procedures
before the implicit calls are generated.

This adds required procedures to @llvm.used at creation time. The fix
is Windows-specific; other platforms handle this correctly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 20:16:44 -05:00
Jesse Meyer
a0562dfd6e Fix lld-link LTO jobs flag syntax on Windows
lld-link doesn't recognize /lldltojobs:N as a standalone flag and
treats it as a file path. Use /opt:lldltojobs=N instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 20:16:20 -05:00
Jesse Meyer
9eba12948a Skip sanitizer IR passes when LTO is enabled
With ThinLTO, the linker runs sanitizer passes at link time via
-fsanitize= flags, where it has whole-program visibility. Running
them at bitcode emission too double-instruments every module,
producing hundreds of "Redundant instrumentation detected" warnings.
Per-function sanitize/no_sanitize attributes are preserved in the
bitcode and respected by the linker's pass.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 20:16:20 -05:00
Jesse Meyer
43ad4a1d9f Add ThinLTO support via -lto:thin and -lto:thin-files flags
- Add -lto:thin and -lto:thin-files CLI flags with validation
- Emit LLVM bitcode (.bc) instead of object files when LTO is enabled
- Pass -flto=thin and -flto-jobs to clang/lld linkers
- Guard linkage corrections to skip declarations without definitions
  (required for LTO where declarations appear across modules)
- Allow module-per-file with LTO even at higher optimization levels

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 20:16:20 -05:00
Nahuel2998
37e82c9387 vendor/x11/xlib: Fix returntype of some procs
Returntype of a few procs was incorrectly set to i32 rather than a proc
that returns i32.
2026-02-03 17:17:33 -03:00
Jeroen van Rijn
270df36468 Merge pull request #6213 from Yawning/feature/more-secec
crypto: More core:crypto
2026-02-03 15:45:57 +01:00
gingerBill
e6a62c4bb0 Minor optimization to map_probe_distance 2026-02-03 12:19:20 +00:00
Yawning Angel
eadd5f789c core/crypto/ecdh: Add secp384r1 2026-02-03 18:48:07 +09:00
Yawning Angel
64ce2bdf0e core/crypto/_weierstrass: Add secp384r1 2026-02-03 18:48:07 +09:00
Yawning Angel
bd0cfe4a81 core/crypto/_fiat: Minor p256 cleanups 2026-02-03 16:15:16 +09:00
Jeroen van Rijn
de086c316f Merge pull request #6223 from FabzAn/pass-on-permanent_allocator
text/regex: Pass given allocator on in create_iterator
2026-02-02 20:25:27 +01:00
gingerBill
f3daaa62fe Merge pull request #6220 from laytan/fix-lto-macos
fix LTO on MacOS
2026-02-02 18:46:18 +00:00
Fabian Erdmann
55ab089ffc text/regex: Pass given allocator on in create_iterator 2026-02-02 19:41:37 +01:00
Laytan Laats
afbbb829ea fix LTO on MacOS
If no `-minimum-os-version` is given, ignore the `override-module`
warnings. The user not using, `-minimum-os-version` opts you into linker
warnings about target versions.

If a `-minimum-os-version` is provided, normalize it to a full version
`11` to `11.0.0` for example. The linker seems to want that when doing
LTO.
2026-02-02 18:13:48 +01:00
Jeroen van Rijn
6a07f70c1c support -> supported 2026-02-02 17:57:50 +01:00
gingerBill
3666c1d3aa Merge branch 'master' of https://github.com/odin-lang/Odin 2026-02-02 14:28:23 +00:00
gingerBill
bb7496a2fc Add intrinsics.count_trailing_ones and intrinsics.count_leading_ones 2026-02-02 14:28:16 +00:00
Jeroen van Rijn
13f26f4645 Merge pull request #6218 from Kelimion/fix-6204
Fix #6204
2026-02-02 13:22:38 +01:00
Jeroen van Rijn
98413ad154 Remove duplicate buffer 2026-02-02 13:16:13 +01:00
Jeroen van Rijn
3a7c4994ac Fix #6204
Use temporary stack buffers and some global scratch space to remove the need for any allocator.
2026-02-02 13:11:23 +01:00
gingerBill
80c9482774 Merge pull request #6217 from odin-lang/bill/threading-fixes-2026-02
Fix to frontend threading bugs
2026-02-02 12:04:21 +00:00
gingerBill
a936f3fb7d Comment out t->Struct.are_offsets_being_processed.load() 2026-02-02 11:41:33 +00:00