diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-19 12:07:56 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-19 12:07:56 -0500 |
| commit | db74832e40f98960e5dc3e46c8196c59033ee0f9 (patch) | |
| tree | 95d7e039968d665d0e0001c45c9c9c1f3e2a622d /src/analyze.cpp | |
| parent | c9fb5240d6305bcef7db5e12b7676ba3d741c11e (diff) | |
| download | zig-db74832e40f98960e5dc3e46c8196c59033ee0f9.tar.gz zig-db74832e40f98960e5dc3e46c8196c59033ee0f9.zip | |
valgrind client requests for undefined values
with this change, when you assign undefined, zig emits a few
assembly instructions to tell valgrind that the memory is undefined
it's on by default for debug builds, and disabled otherwise. only
support for linux, darwin, solaris, mingw on x86_64 is currently
implemented.
--disable-valgrind turns it off even in debug mode.
--enable-valgrind turns it on even in release modes.
It's always disabled for compiler_rt.a and builtin.a.
Adds `@import("builtin").valgrind_support` which lets code know
at comptime whether valgrind client requests are enabled.
See #1989
Diffstat (limited to 'src/analyze.cpp')
0 files changed, 0 insertions, 0 deletions
