瀏覽代碼

+ patch for SPARC from Mazen NEIFER

carl 23 年之前
父節點
當前提交
cbe6e19729
共有 6 個文件被更改,包括 53 次插入6 次删除
  1. 7 1
      compiler/aasm.pas
  2. 11 1
      compiler/compiler.pas
  3. 11 1
      compiler/globtype.pas
  4. 10 1
      compiler/pp.pas
  5. 7 1
      compiler/symdef.pas
  6. 7 1
      compiler/version.pas

+ 7 - 1
compiler/aasm.pas

@@ -73,6 +73,9 @@ interface
           ait_bundle,
           ait_stop,
 {$endif ia64}
+{$ifdef SPARC}
+          ait_labeled_instruction,
+{$endif SPARC}
           { never used, makes insertation of new ait_ easier to type }
           { lazy guy !!!! ;-) (FK) }
           ait_dummy);
@@ -1160,7 +1163,10 @@ uses
 end.
 {
   $Log$
-  Revision 1.19  2001-12-31 16:54:14  peter
+  Revision 1.20  2002-03-24 19:04:31  carl
+  + patch for SPARC from Mazen NEIFER
+
+  Revision 1.19  2001/12/31 16:54:14  peter
     * fixed inline crash with assembler routines
 
   Revision 1.18  2001/08/30 19:43:50  peter

+ 11 - 1
compiler/compiler.pas

@@ -64,6 +64,13 @@ unit compiler;
      {$fatal cannot define two CPU switches}
    {$endif}
    {$endif}
+    {$ifdef SPARC}
+    {$ifndef CPUOK}
+    {$DEFINE CPUOK}
+    {$else}
+      {$fatal cannot define two CPU switches}
+    {$endif}
+    {$endif}
 
    {$ifndef CPUOK}
    {$fatal One of the switches I386, iA64, Alpha, PowerPC or M68K must be defined}
@@ -330,7 +337,10 @@ end;
 end.
 {
   $Log$
-  Revision 1.22  2001-09-18 11:30:47  michael
+  Revision 1.23  2002-03-24 19:05:31  carl
+  + patch for SPARC from Mazen NEIFER
+
+  Revision 1.22  2001/09/18 11:30:47  michael
   * Fixes win32 linking problems with import libraries
   * LINKLIB Libraries are now looked for using C file extensions
   * get_exepath fix

+ 11 - 1
compiler/globtype.pas

@@ -66,6 +66,13 @@ interface
        { on the ia64 comp will be mapped to int64 }
        ts64comp = comp;
 {$endif}
+{$ifdef SPARC}
+  bestreal = real;
+  ts32real = single;
+  ts64real = double;
+  ts80real = extended;
+  ts64comp = extended;
+{$endif}
 
        pbestreal=^bestreal;
 
@@ -246,7 +253,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.20  2002-01-24 18:25:48  peter
+  Revision 1.21  2002-03-24 19:05:59  carl
+  + patch for SPARC from Mazen NEIFER
+
+  Revision 1.20  2002/01/24 18:25:48  peter
    * implicit result variable generation for assembler routines
    * removed m_tp modeswitch, use m_tp7 or not(m_fpc) instead
 

+ 10 - 1
compiler/pp.pas

@@ -86,6 +86,12 @@ program pp;
      {$endif CPUDEFINED}
      {$define CPUDEFINED}
    {$endif ALPHA}
+   {$ifdef SPARC}
+     {$ifdef CPUDEFINED}
+        {$fatal ONLY one of the switches for the CPU type must be defined}
+     {$endif CPUDEFINED}
+     {$define CPUDEFINED}
+   {$endif SPARC}
    {$ifndef CPUDEFINED}
      {$fatal A CPU type switch must be defined}
    {$endif CPUDEFINED}
@@ -162,7 +168,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.9  2001-11-14 01:12:45  florian
+  Revision 1.10  2002-03-24 19:06:29  carl
+  + patch for SPARC from Mazen NEIFER
+
+  Revision 1.9  2001/11/14 01:12:45  florian
     * variant paramter passing and functions results fixed
 
   Revision 1.8  2001/08/26 13:36:46  florian

+ 7 - 1
compiler/symdef.pas

@@ -690,6 +690,9 @@ interface
 {$ifdef ia64}
        pbestrealtype : ^ttype = @s64floattype;
 {$endif}
+{$ifdef SPARC}
+       pbestrealtype : ^ttype = @s64floattype;
+{$endif SPARC}
 
 
 {$ifdef GDB}
@@ -5475,7 +5478,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.65  2002-02-04 08:16:07  jonas
+  Revision 1.66  2002-03-24 19:10:14  carl
+  + patch for SPARC from Mazen NEIFER
+
+  Revision 1.65  2002/02/04 08:16:07  jonas
     * fixed severe slowdown when compiling a program with arrays that have
       a lot (15+) dimensions ("merged")
 

+ 7 - 1
compiler/version.pas

@@ -51,6 +51,9 @@ interface
 {$ifdef i386}
        target_cpu_string = 'i386';
 {$endif}
+{$ifdef sparc}
+       target_cpu_string = 'sparc';
+{$endif}
 {$ifdef m68k}
        target_cpu_string = 'm68k';
 {$endif}
@@ -101,7 +104,10 @@ end;
 end.
 {
   $Log$
-  Revision 1.8  2002-03-01 12:47:21  pierre
+  Revision 1.9  2002-03-24 19:12:11  carl
+  + patch for SPARC from Mazen NEIFER
+
+  Revision 1.8  2002/03/01 12:47:21  pierre
    * used shl 7 for release number
 
   Revision 1.7  2000/11/29 00:30:43  florian