Browse Source

m68k/cpupara.pas, tm68kparamanager.getintparaloc:
* initialize paraloc^.size to OS_INT instead of leaving it at 0

This fixes tests/test/cg/ttryexc1.pp. The problem was that the raise node generated code which resulted in a word(!) move of the raised object's address to the stack location for fpc_raiseexception. This then resulted in an error when freeing the exception object.

git-svn-id: trunk@23465 -

svenbarth 12 years ago
parent
commit
b455ae9534
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/m68k/cpupara.pas

+ 1 - 0
compiler/m68k/cpupara.pas

@@ -87,6 +87,7 @@ unit cpupara;
               loc:=LOC_REFERENCE;
               reference.index:=NR_STACK_POINTER_REG;
               reference.offset:=target_info.first_parm_offset+nr*4;
+              size:=OS_INT;
            end;
       end;