浏览代码

ncgcall.pas moved to ncpucall.pas (I'd like ncpu* insteade of nsparc* since it
provides processor independent units naming)

mazen 23 年之前
父节点
当前提交
12c3e9a760
共有 3 个文件被更改,包括 10 次插入104 次删除
  1. 1 1
      compiler/sparc/cpunode.pas
  2. 0 96
      compiler/sparc/ncpucall.pas
  3. 9 7
      compiler/sparc/ncpucnv.pas

+ 1 - 1
compiler/sparc/cpunode.pas

@@ -37,7 +37,7 @@ the behaviour of such a unit having just a USES clause!}
 IMPLEMENTATION
 USES
   ncgbas,ncgflw,ncgcnv,ncgld,ncgmem,ncgcon,{ncgset,}
-  naddcpu,{n386cal,n386con,n386cnv,n386flw,n386mat,n386mem,}
+  naddcpu,ncpucall,{n386con,n386cnv,n386flw,n386mat,n386mem,}
   {n386set,n386inl,n386opt,}ncpucnv,
   { this not really a node }
   {nSPARCobj,}rgcpu;

+ 0 - 96
compiler/sparc/ncgcall.pas → compiler/sparc/ncpucall.pas

@@ -1486,99 +1486,3 @@ begin
    ccallnode:=tSPARCcallnode;
    cprocinlinenode:=tSPARCprocinlinenode;
 end.
-{
-  $Log$
-  Revision 1.1  2002-08-22 08:30:50  mazen
-  first insertion 2002\08\22
-
-  Revision 1.54  2002/05/20 13:30:40  carl
-  * bugfix of hdisponen (base must be set, not index)
-  * more portability fixes
-
-  Revision 1.53  2002/05/18 13:34:23  peter
-    * readded missing revisions
-
-  Revision 1.52  2002/05/16 19:46:51  carl
-  + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
-  + try to fix temp allocation (still in ifdef)
-  + generic constructor calls
-  + start of tassembler / tmodulebase class cleanup
-
-  Revision 1.50  2002/05/13 19:54:38  peter
-    * removed n386ld and n386util units
-    * maybe_save/maybe_restore added instead of the old maybe_push
-
-  Revision 1.49  2002/05/12 16:53:17  peter
-    * moved entry and exitcode to ncgutil and cgobj
-    * foreach gets extra argument for passing local data to the
-      iterator function
-    * -CR checks also class typecasts at runtime by changing them
-      into as
-    * fixed compiler to cycle with the -CR option
-    * fixed stabs with elf writer, finally the global variables can
-      be watched
-    * removed a lot of routines from cga unit and replaced them by
-      calls to cgobj
-    * u32bit-s32bit updates for and,or,xor nodes. When one element is
-      u32bit then the other is typecasted also to u32bit without giving
-      a rangecheck warning/error.
-    * fixed pascal calling method with reversing also the high tree in
-      the parast, detected by tcalcst3 test
-
-  Revision 1.48  2002/04/25 20:16:40  peter
-    * moved more routines from cga/n386util
-
-  Revision 1.47  2002/04/21 19:02:07  peter
-    * removed newn and disposen nodes, the code is now directly
-      inlined from pexpr
-    * -an option that will write the secondpass nodes to the .s file, this
-      requires EXTDEBUG define to actually write the info
-    * fixed various internal errors and crashes due recent code changes
-
-  Revision 1.46  2002/04/21 15:34:25  carl
-  * changeregsize -> rg.makeregsize
-
-  Revision 1.45  2002/04/15 19:44:21  peter
-    * fixed stackcheck that would be called recursively when a stack
-      error was found
-    * generic changeregsize(reg,size) for SPARC register resizing
-    * removed some more routines from cga unit
-    * fixed returnvalue handling
-    * fixed default stacksize of linux and go32v2, 8kb was a bit small :-)
-
-  Revision 1.44  2002/04/04 19:06:10  peter
-    * removed unused units
-    * use tlocation.size in cg.a_*loc*() routines
-
-  Revision 1.43  2002/04/02 17:11:35  peter
-    * tlocation,treference update
-    * LOC_CONSTANT added for better constant handling
-    * secondadd splitted in multiple routines
-    * location_force_reg added for loading a location to a register
-      of a specified size
-    * secondassignment parses now first the right and then the left node
-      (this is compatible with Kylix). This saves a lot of push/pop especially
-      with string operations
-    * adapted some routines to use the new cg methods
-
-  Revision 1.42  2002/03/31 20:26:38  jonas
-    + a_loadfpu_* and a_loadmm_* methods in tcg
-    * register allocation is now handled by a class and is mostly processor
-      independent (+rgobj.pas and SPARC/rgcpu.pas)
-    * temp allocation is now handled by a class (+tgobj.pas, -SPARC\tgcpu.pas)
-    * some small improvements and fixes to the optimizer
-    * some register allocation fixes
-    * some fpuvaroffset fixes in the unary minus node
-    * push/popusedregisters is now called rg.save/restoreusedregisters and
-      (for SPARC) uses temps instead of push/pop's when using -Op3 (that code is
-      also better optimizable)
-    * fixed and optimized register saving/restoring for new/dispose nodes
-    * LOC_FPU locations now also require their "register" field to be set to
-      R_ST, not R_ST0 (the latter is used for LOC_CFPUREGISTER locations only)
-    - list field removed of the tnode class because it's not used currently
-      and can cause hard-to-find bugs
-
-  Revision 1.41  2002/03/04 19:10:13  peter
-    * removed compiler warnings
-
-}

+ 9 - 7
compiler/sparc/ncpucnv.pas

@@ -1,8 +1,7 @@
-{
-    $Id$
+{    $Id$
     Copyright (c) 1998-2002 by Florian Klaempfl
 
-    Generate PowerPC assembler for type converting nodes
+    Generate SPARC assembler for type converting nodes
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -18,8 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
- ****************************************************************************
-}
+ ****************************************************************************}
 unit ncpucnv;
 
 {$i fpcdefs.inc}
@@ -30,7 +28,7 @@ interface
       node,ncnv,ncgcnv,defbase;
 
     type
-       TSparctypeconvnode = class(tcgtypeconvnode)
+       TSparcTypeConvNode = class(TCgTypeConvNode)
          protected
           procedure second_int_to_int;override;
          { procedure second_string_to_string;override; }
@@ -423,7 +421,11 @@ begin
 end.
 {
   $Log$
-  Revision 1.1  2002-08-29 10:16:20  mazen
+  Revision 1.2  2002-08-30 06:15:27  mazen
+  ncgcall.pas moved to ncpucall.pas (I'd like ncpu* insteade of nsparc* since it
+  provides processor independent units naming)
+
+  Revision 1.1  2002/08/29 10:16:20  mazen
   File added support to the new generic parameter handling
 
   Revision 1.24  2002/08/23 16:14:50  peter