diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2025-01-18 01:56:36 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-01-18 16:14:51 -0500 |
| commit | a446101677e556c54a1633c430cb1611b2cdd5fe (patch) | |
| tree | d581a5446c5637a7dee7630fe7893a916777e5fc /src | |
| parent | 3dadb8c4c9fcf2887a4691f4c1c1a17ee4669bfc (diff) | |
| download | zig-a446101677e556c54a1633c430cb1611b2cdd5fe.tar.gz zig-a446101677e556c54a1633c430cb1611b2cdd5fe.zip | |
x86_64: enable struct field reordering
The blocker for enabling this feature was my need to debug the emitted
assembly without debug info and having to manually inspect memory to
determine struct contents. However, we now have debug info!
(lldb) v -L foo bar
0x00007fffffffda20: (repro.repro.Foo) foo = {
0x00007fffffffda24: .x = 12
0x00007fffffffda20: .y = 34
}
0x00007fffffffda28: (repro.repro.Bar) bar = {
0x00007fffffffda28: .x = 56
0x00007fffffffda2c: .y = 78
}
Updates #21530
Diffstat (limited to 'src')
| -rw-r--r-- | src/target.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.zig b/src/target.zig index d67fc797ce..b300d81123 100644 --- a/src/target.zig +++ b/src/target.zig @@ -720,7 +720,7 @@ pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, compt else => false, }, .field_reordering => switch (backend) { - .stage2_c, .stage2_llvm => true, + .stage2_c, .stage2_llvm, .stage2_x86_64 => true, else => false, }, .safety_checked_instructions => switch (backend) { |
