mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-06 19:38:33 +02:00
Handle asmextraopt in powerpc, mips and sparc assemblers
git-svn-id: trunk@26542 -
This commit is contained in:
parent
3f33fdd445
commit
5e6669890a
@ -42,7 +42,7 @@ unit cpugas;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
const
|
const
|
||||||
use_std_regnames : boolean =
|
use_std_regnames : boolean =
|
||||||
{$ifndef USE_MIPS_GAS_REGS}
|
{$ifndef USE_MIPS_GAS_REGS}
|
||||||
true;
|
true;
|
||||||
{$else}
|
{$else}
|
||||||
@ -379,7 +379,7 @@ unit cpugas;
|
|||||||
id: as_gas;
|
id: as_gas;
|
||||||
idtxt: 'AS';
|
idtxt: 'AS';
|
||||||
asmbin: 'as';
|
asmbin: 'as';
|
||||||
asmcmd: '$ABI $ARCH $NOWARN -EL $PIC -o $OBJ $ASM';
|
asmcmd: '$ABI $ARCH $NOWARN -EL $PIC -o $OBJ $EXTRAOPT $ASM';
|
||||||
supported_targets: [system_mipsel_linux];
|
supported_targets: [system_mipsel_linux];
|
||||||
flags: [ af_needar, af_smartlink_sections];
|
flags: [ af_needar, af_smartlink_sections];
|
||||||
labelprefix: '.L';
|
labelprefix: '.L';
|
||||||
@ -391,7 +391,7 @@ unit cpugas;
|
|||||||
id: as_gas;
|
id: as_gas;
|
||||||
idtxt: 'AS';
|
idtxt: 'AS';
|
||||||
asmbin: 'as';
|
asmbin: 'as';
|
||||||
asmcmd: '$ABI $ARCH $NOWARN -EB $PIC -o $OBJ $ASM';
|
asmcmd: '$ABI $ARCH $NOWARN -EB $PIC -o $OBJ $EXTRAOPT $ASM';
|
||||||
supported_targets: [system_mipseb_linux];
|
supported_targets: [system_mipseb_linux];
|
||||||
flags: [ af_needar, af_smartlink_sections];
|
flags: [ af_needar, af_smartlink_sections];
|
||||||
labelprefix: '.L';
|
labelprefix: '.L';
|
||||||
|
@ -379,6 +379,7 @@ unit agppcvasm;
|
|||||||
Replace(result,'$ASM',maybequoted(Unix2AmigaPath(AsmFileName)));
|
Replace(result,'$ASM',maybequoted(Unix2AmigaPath(AsmFileName)));
|
||||||
Replace(result,'$OBJ',maybequoted(Unix2AmigaPath(ObjFileName)));
|
Replace(result,'$OBJ',maybequoted(Unix2AmigaPath(ObjFileName)));
|
||||||
end;
|
end;
|
||||||
|
Replace(result,'$EXTRAOPT',asmextraopt);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -394,7 +395,7 @@ unit agppcvasm;
|
|||||||
|
|
||||||
idtxt : 'VASM';
|
idtxt : 'VASM';
|
||||||
asmbin : 'fpcvasm';
|
asmbin : 'fpcvasm';
|
||||||
asmcmd: '-quiet -Felf -o $OBJ $ASM';
|
asmcmd: '-quiet -Felf -o $OBJ $EXTRAOPT $ASM';
|
||||||
supported_targets : [system_powerpc_morphos];
|
supported_targets : [system_powerpc_morphos];
|
||||||
flags : [af_needar,af_smartlink_sections];
|
flags : [af_needar,af_smartlink_sections];
|
||||||
labelprefix : '.L';
|
labelprefix : '.L';
|
||||||
|
@ -224,9 +224,9 @@ implementation
|
|||||||
idtxt : 'AS';
|
idtxt : 'AS';
|
||||||
asmbin : 'as';
|
asmbin : 'as';
|
||||||
{$ifdef FPC_SPARC_V8_ONLY}
|
{$ifdef FPC_SPARC_V8_ONLY}
|
||||||
asmcmd : '$PIC -o $OBJ $ASM';
|
asmcmd : '$PIC -o $OBJ $EXTRAOPT $ASM';
|
||||||
{$else}
|
{$else}
|
||||||
asmcmd : '$ARCH $PIC -o $OBJ $ASM';
|
asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM';
|
||||||
{$endif}
|
{$endif}
|
||||||
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];
|
||||||
@ -240,7 +240,7 @@ implementation
|
|||||||
id : as_ggas;
|
id : as_ggas;
|
||||||
idtxt : 'GAS';
|
idtxt : 'GAS';
|
||||||
asmbin : 'gas';
|
asmbin : 'gas';
|
||||||
asmcmd : '$ARCH $PIC -o $OBJ $ASM';
|
asmcmd : '$ARCH $PIC -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user