Browse Source

* fixed ppc cycle

Jonas Maebe 22 years ago
parent
commit
eb441421cc
1 changed files with 7 additions and 1 deletions
  1. 7 1
      compiler/ncgutil.pas

+ 7 - 1
compiler/ncgutil.pas

@@ -1669,6 +1669,7 @@ implementation
          if (po_savestdregs in current_procdef.procoptions) then
          if (po_savestdregs in current_procdef.procoptions) then
            cg.g_restore_standard_registers(list,current_procdef.usedintregisters);
            cg.g_restore_standard_registers(list,current_procdef.usedintregisters);
 
 
+{$ifndef powerpc}
         { remove stackframe }
         { remove stackframe }
         if not inlined then
         if not inlined then
          begin
          begin
@@ -1679,7 +1680,9 @@ implementation
             end
             end
            else
            else
             cg.g_restore_frame_pointer(list);
             cg.g_restore_frame_pointer(list);
+             if not (po_assembler in current_procdef.procoptions) then
          end;
          end;
+{$endif}
 
 
         { at last, the return is generated }
         { at last, the return is generated }
         if not inlined then
         if not inlined then
@@ -1901,7 +1904,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.108  2003-05-27 14:28:14  jonas
+  Revision 1.109  2003-05-27 21:19:08  jonas
+    * fixed ppc cycle
+
+  Revision 1.108  2003/05/27 14:28:14  jonas
     * patch from Peter for nested procedures
     * patch from Peter for nested procedures
 
 
   Revision 1.107  2003/05/26 21:17:17  peter
   Revision 1.107  2003/05/26 21:17:17  peter