| ... | @@ -3386,12 +3386,6 @@ pub fn addCCArgs( | ... | @@ -3386,12 +3386,6 @@ pub fn addCCArgs( |
| 3386 | try argv.append("-mthumb"); | 3386 | try argv.append("-mthumb"); |
| 3387 | } | 3387 | } |
| 3388 | | 3388 | |
| 3389 | if (comp.haveFramePointer()) { | | |
| 3390 | try argv.append("-fno-omit-frame-pointer"); | | |
| 3391 | } else { | | |
| 3392 | try argv.append("-fomit-frame-pointer"); | | |
| 3393 | } | | |
| 3394 | | | |
| 3395 | if (comp.sanitize_c and !comp.bin_file.options.tsan) { | 3389 | if (comp.sanitize_c and !comp.bin_file.options.tsan) { |
| 3396 | try argv.append("-fsanitize=undefined"); | 3390 | try argv.append("-fsanitize=undefined"); |
| 3397 | try argv.append("-fsanitize-trap=undefined"); | 3391 | try argv.append("-fsanitize-trap=undefined"); |
| ... | @@ -3711,16 +3705,6 @@ test "classifyFileExt" { | ... | @@ -3711,16 +3705,6 @@ test "classifyFileExt" { |
| 3711 | try std.testing.expectEqual(FileExt.zig, classifyFileExt("foo.zig")); | 3705 | try std.testing.expectEqual(FileExt.zig, classifyFileExt("foo.zig")); |
| 3712 | } | 3706 | } |
| 3713 | | 3707 | |
| 3714 | fn haveFramePointer(comp: *const Compilation) bool { | | |
| 3715 | // If you complicate this logic make sure you update the parent cache hash. | | |
| 3716 | // Right now it's not in the cache hash because the value depends on optimize_mode | | |
| 3717 | // and strip which are both already part of the hash. | | |
| 3718 | return switch (comp.bin_file.options.optimize_mode) { | | |
| 3719 | .Debug, .ReleaseSafe => !comp.bin_file.options.strip, | | |
| 3720 | .ReleaseSmall, .ReleaseFast => false, | | |
| 3721 | }; | | |
| 3722 | } | | |
| 3723 | | | |
| 3724 | const LibCDirs = struct { | 3708 | const LibCDirs = struct { |
| 3725 | libc_include_dir_list: []const []const u8, | 3709 | libc_include_dir_list: []const []const u8, |
| 3726 | libc_installation: ?*const LibCInstallation, | 3710 | libc_installation: ?*const LibCInstallation, |