diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-23 20:01:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-23 20:16:57 -0700 |
| commit | 418105589a2723ca372596e5893e0e1e030efe87 (patch) | |
| tree | ab6195e8b58bf58442a8d855d23accfca417b141 /lib/std/std.zig | |
| parent | cc4d38ed574690e0b212fc47431324325edc7921 (diff) | |
| download | zig-418105589a2723ca372596e5893e0e1e030efe87.tar.gz zig-418105589a2723ca372596e5893e0e1e030efe87.zip | |
stage2: prepare for building freestanding libc
Extracts lib/std/special/c_stage1.zig from lib/std/special/c.zig.
When the self-hosted compiler is further along, all the logic from c_stage1.zig will
be migrated back c.zig and then c_stage1.zig will be deleted. Until then we have a
simpler implementation of c.zig that only uses features already implemented in self-hosted.
So far it only contains memcpy and memset, with slightly different
(arguably more correct!) implementations that are compatible with
self-hosted.
Additionally, this commit improves the LLVM backend:
* use the more efficient and convenient fnInfo() when lowering function
type info.
* fix incremental compilation not deleting all basic blocks of a
function.
* hook up calling conventions
* hook up the following function attributes:
- noredzone, nounwind, uwtable, minsize, optsize, sanitize_thread
Diffstat (limited to 'lib/std/std.zig')
0 files changed, 0 insertions, 0 deletions
