compiler: stop using long-calls on hexagon

No longer necessary since LLD supports thunks and we use -ffunction-sections.
This commit is contained in:
Alex Rønne Petersen committed 2026-10-26 11:02:42 +01:00
1 parent 9df8804bf4
commit 60064a5ba8
3 files changed
-6

No files matched your search

-4
View File
@@ -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");
}
-1
View File
@@ -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.
}
-1
View File
@@ -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,