Ver Fonte

* exit() with exceptions fix

peter há 24 anos atrás
pai
commit
c0aae66c50
1 ficheiros alterados com 6 adições e 2 exclusões
  1. 6 2
      compiler/nflw.pas

+ 6 - 2
compiler/nflw.pas

@@ -632,7 +632,8 @@ implementation
             begin
               inserttypeconv(left,aktprocsym.definition.rettype);
               if ret_in_param(aktprocsym.definition.rettype.def) or
-                 (procinfo^.no_fast_exit) then
+                 (procinfo^.no_fast_exit) or
+                 ((procinfo^.flags and pi_uses_exceptions)<>0) then
                begin
                  pt:=cfuncretnode.create(aktprocsym.definition.funcretsym);
                  left:=cassignmentnode.create(pt,left);
@@ -1166,7 +1167,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.22  2001-08-26 13:36:40  florian
+  Revision 1.23  2001-08-30 20:56:38  peter
+    * exit() with exceptions fix
+
+  Revision 1.22  2001/08/26 13:36:40  florian
     * some cg reorganisation
     * some PPC updates