mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
compiler: stop using long-calls on hexagon
No longer necessary since LLD supports thunks and we use -ffunction-sections.
This commit is contained in:
3 files changed
-6
No files matched your search
@@ -6691,10 +6691,6 @@ pub fn addCCArgs(
|
||||
|
||||
// Non-preprocessed assembly files don't support these flags.
|
||||
if (ext != .assembly) {
|
||||
if (target.cpu.arch == .hexagon) {
|
||||
try argv.append("-mlong-calls");
|
||||
}
|
||||
|
||||
if (target_util.clangSupportsNoImplicitFloatArg(target) and target.abi.float() == .soft) {
|
||||
try argv.append("-mno-implicit-float");
|
||||
}
|
||||
|
||||
@@ -391,7 +391,6 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Module {
|
||||
try buf.appendSlice(disabled_features.items);
|
||||
|
||||
if (target.cpu.arch == .hexagon) {
|
||||
try buf.appendSlice("+long-calls,");
|
||||
try buf.appendSlice("-small-data,"); // Unsupported by LLD.
|
||||
}
|
||||
|
||||
|
||||
@@ -420,7 +420,6 @@ const module_test_targets = blk: {
|
||||
.link_libc = true,
|
||||
},
|
||||
|
||||
// Similar to Thumb, we need long calls on Hexagon due to relocation range issues.
|
||||
.{
|
||||
.target = .{
|
||||
.cpu_arch = .hexagon,
|
||||
|
||||
Reference in new issue
Block a user