mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 18:49:16 +02:00
* always use unified assembler syntax on Darwin (required by Xcode 7+)
git-svn-id: trunk@31805 -
This commit is contained in:
parent
c5f64a51da
commit
840c043c75
@ -49,6 +49,7 @@ unit agarmgas;
|
|||||||
|
|
||||||
TArmAppleGNUAssembler=class(TAppleGNUassembler)
|
TArmAppleGNUAssembler=class(TAppleGNUassembler)
|
||||||
constructor create(info: pasminfo; smart: boolean); override;
|
constructor create(info: pasminfo; smart: boolean); override;
|
||||||
|
procedure WriteExtraHeader; override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -142,6 +143,15 @@ unit agarmgas;
|
|||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
InstrWriter := TArmInstrWriter.create(self);
|
InstrWriter := TArmInstrWriter.create(self);
|
||||||
|
TArmInstrWriter(InstrWriter).unified_syntax:=true;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure TArmAppleGNUAssembler.WriteExtraHeader;
|
||||||
|
begin
|
||||||
|
inherited WriteExtraHeader;
|
||||||
|
if TArmInstrWriter(InstrWriter).unified_syntax then
|
||||||
|
writer.AsmWriteLn(#9'.syntax unified');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user