Răsfoiți Sursa

Merged revisions 2929 via svnmerge from
svn+ssh://[email protected]/FPC/svn/fpc/trunk

........
r2929 | jonas | 2006-03-15 22:48:32 +0100 (Wed, 15 Mar 2006) | 5 lines

* fixed webtbs/tw2514 for darwin/i386 (and a similar bug for win32):
you get an internalerror if you try to keep a 0-byte record in
a register (because the paramgr then tries to allocate a register
of size OS_NO)

........

git-svn-id: branches/fixes_2_0@3012 -

Jonas Maebe 19 ani în urmă
părinte
comite
d8254b3acf
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      compiler/i386/cpupara.pas

+ 1 - 0
compiler/i386/cpupara.pas

@@ -103,6 +103,7 @@ unit cpupara;
                     { Win32 GCC returns small records in the FUNCTION_RETURN_REG.
                       For stdcall we follow delphi instead of GCC }
                     if (calloption in [pocall_cdecl,pocall_cppdecl]) and
+                       (def.size>0) and
                        (def.size<=8) then
                      begin
                        result:=false;