diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2017-08-20 17:20:38 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2017-08-20 17:20:38 +0000 |
commit | 580f9ddacec28820b874cc7f9005905354174a3e (patch) | |
tree | 188d4124e858ccb6fac93a8958ec239bd2cd5d7d /compiler/aoptbase.pas | |
parent | 9f50ec2b33e65b1eb72ce22dd175e3f15ef933d6 (diff) | |
download | fpc-580f9ddacec28820b874cc7f9005905354174a3e.tar.gz |
+ define cpudelayslot: set during compiler compilation for CPUs having branch instructions with delay slot (MIPS, SPARC)
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@36958 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/aoptbase.pas')
-rw-r--r-- | compiler/aoptbase.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/aoptbase.pas b/compiler/aoptbase.pas index 06ad0413c0..3b92defdd9 100644 --- a/compiler/aoptbase.pas +++ b/compiler/aoptbase.pas @@ -188,11 +188,11 @@ unit aoptbase; Current := tai(Current.Next); While Assigned(Current) And ((Current.typ In SkipInstr) or -{$if defined(SPARCGEN) or defined(MIPS)} +{$ifdef cpudelayslot} ((Current.typ=ait_instruction) and (taicpu(Current).opcode=A_NOP) ) or -{$endif SPARCGEN or MIPS} +{$endif cpudelayslot} ((Current.typ = ait_label) And labelCanBeSkipped(Tai_Label(Current)))) Do Current := tai(Current.Next); |