0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley 0bc9635490 stage2: add debug info for locals in the LLVM backend
Adds 2 new AIR instructions:
 * dbg_var_ptr
 * dbg_var_val

Sema no longer emits dbg_stmt AIR instructions when strip=true.

LLVM backend: fixed lowerPtrToVoid when calling ptrAlignment on
the element type is problematic.

LLVM backend: fixed alloca instructions improperly getting debug
location annotated, causing chaotic debug info behavior.

zig_llvm.cpp: fixed incorrect bindings for a function that should use
unsigned integers for line and column.

A bunch of C test cases regressed because the new dbg_var AIR
instructions caused their operands to be alive, exposing latent bugs.
Mostly it's just a problem that the C backend lowers mutable
and const slices to the same C type, so we need to represent that in the
C backend instead of printing two duplicate typedefs.
History 2022-03-13 03:41:31 -04:00
..
behavior stage2: add debug info for locals in the LLVM backend 2022-03-13 03:41:31 -04:00
src std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
stage1/c_abi C ABI: these tests are not passing yet on Windows 2022-02-08 21:15:00 -07:00
stage2 stage2: add compiler test to ensure typed null doesn't coerce to any 2022-03-12 22:03:01 -05:00
standalone Revert "reduce build error noise" 2022-02-17 14:30:12 -07:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig Sema: fix resolution of inferred error sets 2022-03-11 19:38:07 -07:00
cases.zig fix nvptx test failure #10968 2022-03-12 14:25:59 -05:00
cli.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02:00
compare_output.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02:00
compile_errors.zig deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
run_translated_c.zig translate-c: use nested scope for comma operator in macros 2022-03-08 20:38:51 +02:00
runtime_safety.zig fix unused variable errors in runtime safety test cases 2021-06-23 10:44:46 -07:00
stack_traces.zig overhaul elf csu (c-runtime startup) logic 2021-05-23 15:38:57 -04:00
standalone.zig Revert "reduce build error noise" 2022-02-17 14:30:12 -07:00
tests.zig Replace argvCmd with std.mem.join 2022-02-06 22:21:46 -07:00
translate_c.zig translate-c: improve error messages when expecting specific tokens 2022-01-17 17:16:48 +02:00