mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-16 18:59:25 +01:00
Add '.module nomips16' at assembly entry for mips/mipsel unless -a5 option is used
git-svn-id: trunk@43600 -
This commit is contained in:
parent
ba73f7376f
commit
a9bb9f7310
@ -35,6 +35,7 @@ unit cpugas;
|
|||||||
constructor CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean); override;
|
constructor CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean); override;
|
||||||
{# Constructs the command line for calling the assembler }
|
{# Constructs the command line for calling the assembler }
|
||||||
function MakeCmdLine: TCmdStr; override;
|
function MakeCmdLine: TCmdStr; override;
|
||||||
|
procedure WriteExtraHeader; override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TMIPSInstrWriter = class(TCPUInstrWriter)
|
TMIPSInstrWriter = class(TCPUInstrWriter)
|
||||||
@ -88,6 +89,15 @@ unit cpugas;
|
|||||||
// Replace(result,'$ARCH','-march=pic32mx -mtune=pic32mx');
|
// Replace(result,'$ARCH','-march=pic32mx -mtune=pic32mx');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TMIPSGNUAssembler.WriteExtraHeader;
|
||||||
|
var
|
||||||
|
i : longint;
|
||||||
|
begin
|
||||||
|
if not (cs_asm_pre_binutils_2_25 in current_settings.globalswitches) then
|
||||||
|
writer.AsmWriteln(#9'.module nomips16');
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{****************************************************************************}
|
{****************************************************************************}
|
||||||
{ Helper routines for Instruction Writer }
|
{ Helper routines for Instruction Writer }
|
||||||
{****************************************************************************}
|
{****************************************************************************}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user