Browse Source

Fix compilation error for loongarch64 system unit with -dFPC_USE_LIBC option

Pierre Muller 2 years ago
parent
commit
61bee98af9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/loongarch64/loongarch64.inc

+ 2 - 0
rtl/loongarch64/loongarch64.inc

@@ -440,6 +440,7 @@ procedure WriteBarrier; assembler; nostackframe;
     dbar 0
     dbar 0
   end;
   end;
 
 
+{$ifndef FPC_SYSTEM_HAS_MOVE}
 {$define FPC_SYSTEM_HAS_MOVE}
 {$define FPC_SYSTEM_HAS_MOVE}
 procedure Move(const source;var dest;count:SizeInt);[public, alias: 'FPC_MOVE']; assembler; nostackframe;
 procedure Move(const source;var dest;count:SizeInt);[public, alias: 'FPC_MOVE']; assembler; nostackframe;
   asm
   asm
@@ -504,6 +505,7 @@ procedure Move(const source;var dest;count:SizeInt);[public, alias: 'FPC_MOVE'];
   .Lret:
   .Lret:
     jr $ra
     jr $ra
   end;
   end;
+{$endif ndef FPC_SYSTEM_HAS_MOVE}
 
 
 {$define FPC_SYSTEM_HAS_SYSRESETFPU}
 {$define FPC_SYSTEM_HAS_SYSRESETFPU}
 procedure SysResetFPU;{$ifdef SYSTEMINLINE}inline;{$endif}
 procedure SysResetFPU;{$ifdef SYSTEMINLINE}inline;{$endif}