mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 10:40:13 +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)
|
||||
constructor create(info: pasminfo; smart: boolean); override;
|
||||
procedure WriteExtraHeader; override;
|
||||
end;
|
||||
|
||||
|
||||
@ -142,6 +143,15 @@ unit agarmgas;
|
||||
begin
|
||||
inherited;
|
||||
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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user