diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-02-23 05:16:23 -0500 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-02-23 10:54:26 -0500 |
| commit | a0d7fd162b7568c0291ebcfc561a2852c7077e15 (patch) | |
| tree | 476a76289e5e5a3b25631d2d15e21a704189ead5 /src/target.zig | |
| parent | 57f6adf85da58c0c91a036deaa614c30df010b78 (diff) | |
| download | zig-a0d7fd162b7568c0291ebcfc561a2852c7077e15.tar.gz zig-a0d7fd162b7568c0291ebcfc561a2852c7077e15.zip | |
CBE: support call attributes
* Support always_tail and never_tail/never_inline with a comptime callee using clang
* Support never_inline using gcc
* Support never_inline using msvc
Unfortunately, can't enable behavior tests because of the conditional support.
Diffstat (limited to 'src/target.zig')
| -rw-r--r-- | src/target.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target.zig b/src/target.zig index 001adad7c2..6d6933e9e7 100644 --- a/src/target.zig +++ b/src/target.zig @@ -723,6 +723,7 @@ pub fn supportsFunctionAlignment(target: std.Target) bool { pub fn supportsTailCall(target: std.Target, backend: std.builtin.CompilerBackend) bool { switch (backend) { .stage1, .stage2_llvm => return @import("codegen/llvm.zig").supportsTailCall(target), + .stage2_c => return true, else => return false, } } |
