Browse Source

Add -32/-64 for sparc GNU assembler calls

Pierre Muller 1 year ago
parent
commit
afea558fbe
1 changed files with 3 additions and 3 deletions
  1. 3 3
      compiler/sparcgen/cpugas.pas

+ 3 - 3
compiler/sparcgen/cpugas.pas

@@ -246,7 +246,7 @@ implementation
            id     : as_ggas;
            id     : as_ggas;
            idtxt  : 'GAS';
            idtxt  : 'GAS';
            asmbin : 'gas';
            asmbin : 'gas';
-           asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM';
+           asmcmd : '$ARCH $PIC -32 -o $OBJ $EXTRAOPT $ASM';
            supported_targets : [system_sparc_solaris,system_sparc_linux,system_sparc_embedded];
            supported_targets : [system_sparc_solaris,system_sparc_linux,system_sparc_embedded];
            flags : [af_needar,af_smartlink_sections];
            flags : [af_needar,af_smartlink_sections];
            labelprefix : '.L';
            labelprefix : '.L';
@@ -263,7 +263,7 @@ implementation
 {$ifdef FPC_SPARC_V8_ONLY}
 {$ifdef FPC_SPARC_V8_ONLY}
            asmcmd : '$PIC -o $OBJ $EXTRAOPT $ASM';
            asmcmd : '$PIC -o $OBJ $EXTRAOPT $ASM';
 {$else}
 {$else}
-           asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM';
+           asmcmd : '$ARCH $PIC -64 -o $OBJ $EXTRAOPT $ASM';
 {$endif}
 {$endif}
            supported_targets : [system_sparc64_linux];
            supported_targets : [system_sparc64_linux];
            flags : [af_needar,af_smartlink_sections];
            flags : [af_needar,af_smartlink_sections];
@@ -278,7 +278,7 @@ implementation
            id     : as_ggas;
            id     : as_ggas;
            idtxt  : 'GAS';
            idtxt  : 'GAS';
            asmbin : 'gas';
            asmbin : 'gas';
-           asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM';
+           asmcmd : '$ARCH $PIC -64 -o $OBJ $EXTRAOPT $ASM';
            supported_targets : [system_sparc64_linux];
            supported_targets : [system_sparc64_linux];
            flags : [af_needar,af_smartlink_sections];
            flags : [af_needar,af_smartlink_sections];
            labelprefix : '.L';
            labelprefix : '.L';