Nicholas McDaniel nmcdaniel · he/him
nmcdaniel commented on issue ziglang/zig#31617 2026年03月23日 03:59:35 +01:00
Segfault in build-exe

Through some trial and error, I was able to recreate the bug and create a fairly minimal reproduction:

nmcdaniel pushed to fnptr-from-int at nmcdaniel/zig 2026年03月19日 21:51:35 +01:00
28c94cf85a
codegen(c): Fix incorrect union access when calling cast function pointers
nmcdaniel commented on issue ziglang/zig#31528 2026年03月19日 19:03:45 +01:00
Comptime known pointer is 0 in indirect call

On debug builds this doesn't seem to present itself as a miscompilation, but rather a compiler crash. The issue is caused by the assumption that any callee nav value is a function (x86) and...

nmcdaniel pushed to fnptr-from-int at nmcdaniel/zig 2026年03月18日 07:03:54 +01:00
513e6fe713
Refactor and add support for non-function nav pointers
nmcdaniel commented on pull request ziglang/zig#31472 2026年03月18日 06:08:59 +01:00
codegen: support for calling @ptrCast and @ptrFromInt function pointers

I noticed #31528 was a crash in the same code segment, so I made some slight corrections to fix that use case as well.

nmcdaniel pushed to fnptr-from-int at nmcdaniel/zig 2026年03月18日 05:58:47 +01:00
1c4c87d9cf
Refactor and add support for non-function nav pointers
03d07314f6
compiler: support for calling fnptrs produced by @ptrFromInt
f8997aca8f Merge pull request 'llvm: some random fixes' (#31552) from llvm-fixes into master
85837de476 llvm: solve a bunch of alignment bugs
0a2f663281 llvm: solve a misc TODO
Compare 98 commits »
nmcdaniel pushed to codegen-call at nmcdaniel/zig 2026年03月18日 05:18:55 +01:00
2a53aa7d56
codegen: Support for calling cast pointers
f8997aca8f Merge pull request 'llvm: some random fixes' (#31552) from llvm-fixes into master
85837de476 llvm: solve a bunch of alignment bugs
0a2f663281 llvm: solve a misc TODO
6ae30662dc llvm: incremental updates for "is named enum value" functions
Compare 10 commits »
nmcdaniel created branch codegen-call in nmcdaniel/zig 2026年03月18日 05:18:55 +01:00
nmcdaniel created pull request ziglang/zig#31541 2026年03月16日 16:39:16 +01:00
linker: Don't copy protected visibility from shared object symbols
nmcdaniel pushed to link-shared-protected at nmcdaniel/zig 2026年03月16日 15:51:09 +01:00
10e96b4458
linker: Don't copy protected visibility from shared object symbols
abd099e97f Merge pull request 'compiler: fix missing "local variable is never mutated" error' (#31534) from variable-not-mutated into master
2383709431 coerce assembly clobbers in sema
43d5bea7af test: use expectEqualStrings to check cmakedefine behavior
584b8f281e zig fmt: remove dead functions
Compare 10 commits »
nmcdaniel created branch link-shared-protected in nmcdaniel/zig 2026年03月16日 15:51:09 +01:00
nmcdaniel commented on issue ziglang/zig#30081 2026年03月16日 04:42:50 +01:00
Segfault when running Zig code that calls C++ code that calls Qt6 functions on self-hosted backend

The problem here is that zig's linker is copying the st_other visibility bits of the symbol from the Qt library shared object. Qt's shared objects use STV_PROTECTED, which disallows external...

nmcdaniel created pull request ziglang/zig#31472 2026年03月12日 05:40:34 +01:00
compiler: support for calling fn pointers from @ptrFromInt
nmcdaniel pushed to fnptr-from-int at nmcdaniel/zig 2026年03月12日 02:36:17 +01:00
d32238adae
compiler: support for calling fnptrs produced by @ptrFromInt
nmcdaniel pushed to fnptr-from-int at nmcdaniel/zig 2026年03月12日 02:33:32 +01:00
5f0b564e81
compiler: support for calling fnptrs produced by @ptrFromInt
nmcdaniel created branch fnptr-from-int in nmcdaniel/zig 2026年03月12日 02:14:07 +01:00
nmcdaniel pushed to fnptr-from-int at nmcdaniel/zig 2026年03月12日 02:14:07 +01:00
6a8ed859c0
compiler: codegen support for calling comptime @ptrFromInt *fn
nmcdaniel created repository nmcdaniel/zig 2026年03月12日 01:52:33 +01:00