summaryrefslogtreecommitdiff
path: root/compiler/parabase.pas
diff options
context:
space:
mode:
authorkaroly <karoly@3ad0048d-3df7-0310-abae-a5850022a9f2>2010-10-13 19:58:44 +0000
committerkaroly <karoly@3ad0048d-3df7-0310-abae-a5850022a9f2>2010-10-13 19:58:44 +0000
commit8104bb3c50e6abf5d701e3ac53dbe79ebe920276 (patch)
tree803e833a54b1f73ce906a17cc557ee0667b22421 /compiler/parabase.pas
parent855989e2b618fdd9255d4c4528c5bab3edcaedf3 (diff)
downloadfpc-8104bb3c50e6abf5d701e3ac53dbe79ebe920276.tar.gz
+ Workaround for IE2010053115 internal errors while writing PPU with explicitparaloc functions.
* MorphOS cycles again now at least, someone with clue might want to take a look if this is the proper way to fix this. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16154 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/parabase.pas')
-rw-r--r--compiler/parabase.pas14
1 files changed, 13 insertions, 1 deletions
diff --git a/compiler/parabase.pas b/compiler/parabase.pas
index c2b95f5881..b81273f108 100644
--- a/compiler/parabase.pas
+++ b/compiler/parabase.pas
@@ -286,6 +286,12 @@ implementation
{$endif}
ppufile.putlongint(longint(hparaloc^.register));
end;
+ { This seems to be required for systems using explicitparaloc (eg. MorphOS)
+ or otherwise it hits the internalerror below. I don't know if this is
+ the proper way to fix this, someone else with clue might want to take a
+ look. The compiler cycles on the affected systems with this enabled. (KB) }
+ LOC_VOID:
+ begin end
else
internalerror(2010053115);
end;
@@ -329,7 +335,13 @@ implementation
hparaloc^.shiftval:=ppufile.getbyte;
{$endif}
hparaloc^.register:=tregister(ppufile.getlongint);
- end
+ end;
+ { This seems to be required for systems using explicitparaloc (eg. MorphOS)
+ or otherwise it hits the internalerror below. I don't know if this is
+ the proper way to fix this, someone else with clue might want to take a
+ look. The compiler cycles on the affected systems with this enabled. (KB) }
+ LOC_VOID:
+ begin end
else
internalerror(2010051301);
end;