Browse Source

Set defualt riscv32 linux abi to abi_riscv_ipl32

Pierre Muller 2 years ago
parent
commit
0d256f517f
1 changed files with 9 additions and 1 deletions
  1. 9 1
      compiler/riscv/agrvgas.pas

+ 9 - 1
compiler/riscv/agrvgas.pas

@@ -245,7 +245,15 @@ unit agrvgas;
         result := inherited MakeCmdLine;
         Replace(result,'$ARCH',arch_str[current_settings.fputype=fpu_fd,current_settings.cputype]);
 {$ifdef RISCV32}
-        Replace(result,'$ABI','ilp32');
+      case target_info.abi of
+        abi_riscv_ilp32:
+           Replace(result,'$ABI','ilp32');
+        abi_riscv_ilp32f:
+           Replace(result,'$ABI','ilp32f');
+        abi_riscv_hf,
+        abi_riscv_ilp32d:
+           Replace(result,'$ABI','ilp32d');
+      end;
 {$endif RISCV32}
 {$ifdef RISCV64}
         if target_info.abi=abi_riscv_hf then