mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 09:59:17 +02:00
* all references to comp suppressed for m68k
This commit is contained in:
parent
8d823b38c3
commit
d4854b6324
@ -224,8 +224,11 @@ unit aasm;
|
|||||||
tai_comp = object(tai)
|
tai_comp = object(tai)
|
||||||
value : bestreal;
|
value : bestreal;
|
||||||
constructor init(_value : bestreal);
|
constructor init(_value : bestreal);
|
||||||
|
{$ifdef i386}
|
||||||
{ usefull for 64 bits apps, maybe later }
|
{ usefull for 64 bits apps, maybe later }
|
||||||
|
{ comp is not defined on m68k processors !! }
|
||||||
constructor init_comp(_value : comp);
|
constructor init_comp(_value : comp);
|
||||||
|
{$endif i386}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -566,6 +569,7 @@ uses
|
|||||||
value:=_value;
|
value:=_value;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$ifdef i386}
|
||||||
constructor tai_comp.init_comp(_value : comp);
|
constructor tai_comp.init_comp(_value : comp);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -573,6 +577,7 @@ uses
|
|||||||
typ:=ait_comp;
|
typ:=ait_comp;
|
||||||
value:=_value;
|
value:=_value;
|
||||||
end;
|
end;
|
||||||
|
{$endif i386}
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
TAI_STRING
|
TAI_STRING
|
||||||
@ -907,7 +912,10 @@ uses
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.22 1998-10-12 12:20:38 pierre
|
Revision 1.23 1998-10-14 15:56:37 pierre
|
||||||
|
* all references to comp suppressed for m68k
|
||||||
|
|
||||||
|
Revision 1.22 1998/10/12 12:20:38 pierre
|
||||||
+ added tai_const_symbol_offset
|
+ added tai_const_symbol_offset
|
||||||
for r : pointer = @var.field;
|
for r : pointer = @var.field;
|
||||||
* better message for different arg names on implementation
|
* better message for different arg names on implementation
|
||||||
|
@ -76,7 +76,7 @@ unit ag68kgas;
|
|||||||
double2str:='0d'+hs
|
double2str:='0d'+hs
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
(* TO SUPPORT SOONER OR LATER!!!
|
||||||
function comp2str(d : bestreal) : string;
|
function comp2str(d : bestreal) : string;
|
||||||
type
|
type
|
||||||
pdouble = ^double;
|
pdouble = ^double;
|
||||||
@ -91,7 +91,7 @@ unit ag68kgas;
|
|||||||
{$endif}
|
{$endif}
|
||||||
dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
|
dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
|
||||||
comp2str:=double2str(dd^);
|
comp2str:=double2str(dd^);
|
||||||
end;
|
end; *)
|
||||||
|
|
||||||
|
|
||||||
function getreferencestring(const ref : treference) : string;
|
function getreferencestring(const ref : treference) : string;
|
||||||
@ -418,9 +418,10 @@ unit ag68kgas;
|
|||||||
AsmWriteLn(#9'.extend'#9+double2str(pai_extended(hp)^.value));
|
AsmWriteLn(#9'.extend'#9+double2str(pai_extended(hp)^.value));
|
||||||
{ comp type is difficult to write so use double }
|
{ comp type is difficult to write so use double }
|
||||||
end;
|
end;
|
||||||
|
{ TO SUPPORT SOONER OR LATER!!!
|
||||||
ait_comp : Begin
|
ait_comp : Begin
|
||||||
AsmWriteLn(#9'.double'#9+comp2str(pai_extended(hp)^.value));
|
AsmWriteLn(#9'.double'#9+comp2str(pai_extended(hp)^.value));
|
||||||
end;
|
end; }
|
||||||
ait_direct : begin
|
ait_direct : begin
|
||||||
AsmWritePChar(pai_direct(hp)^.str);
|
AsmWritePChar(pai_direct(hp)^.str);
|
||||||
AsmLn;
|
AsmLn;
|
||||||
@ -678,7 +679,10 @@ ait_stab_function_name : funcname:=pai_stab_function_name(hp)^.str;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.17 1998-10-13 13:10:08 peter
|
Revision 1.18 1998-10-14 15:56:39 pierre
|
||||||
|
* all references to comp suppressed for m68k
|
||||||
|
|
||||||
|
Revision 1.17 1998/10/13 13:10:08 peter
|
||||||
* new style for m68k/i386 infos and enums
|
* new style for m68k/i386 infos and enums
|
||||||
|
|
||||||
Revision 1.16 1998/10/12 12:27:44 pierre
|
Revision 1.16 1998/10/12 12:27:44 pierre
|
||||||
|
@ -76,6 +76,7 @@ unit ag68kmit;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
(* TO SUPPORT SOONER OR LATER!!!
|
||||||
function comp2str(d : bestreal) : string;
|
function comp2str(d : bestreal) : string;
|
||||||
type
|
type
|
||||||
pdouble = ^double;
|
pdouble = ^double;
|
||||||
@ -90,7 +91,7 @@ unit ag68kmit;
|
|||||||
{$endif}
|
{$endif}
|
||||||
dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
|
dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
|
||||||
comp2str:=double2str(dd^);
|
comp2str:=double2str(dd^);
|
||||||
end;
|
end; *)
|
||||||
|
|
||||||
|
|
||||||
function getreferencestring(const ref : treference) : string;
|
function getreferencestring(const ref : treference) : string;
|
||||||
@ -430,9 +431,10 @@ unit ag68kmit;
|
|||||||
AsmWriteLn(#9'.extend'#9+double2str(pai_extended(hp)^.value));
|
AsmWriteLn(#9'.extend'#9+double2str(pai_extended(hp)^.value));
|
||||||
{ comp type is difficult to write so use double }
|
{ comp type is difficult to write so use double }
|
||||||
end;
|
end;
|
||||||
|
{ TO SUPPORT SOONER OR LATER!!!
|
||||||
ait_comp : Begin
|
ait_comp : Begin
|
||||||
AsmWriteLn(#9'.double'#9+comp2str(pai_extended(hp)^.value));
|
AsmWriteLn(#9'.double'#9+comp2str(pai_extended(hp)^.value));
|
||||||
end;
|
end; }
|
||||||
ait_direct : begin
|
ait_direct : begin
|
||||||
AsmWritePChar(pai_direct(hp)^.str);
|
AsmWritePChar(pai_direct(hp)^.str);
|
||||||
AsmLn;
|
AsmLn;
|
||||||
@ -656,7 +658,10 @@ ait_stab_function_name : funcname:=pai_stab_function_name(hp)^.str;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.13 1998-10-12 12:20:44 pierre
|
Revision 1.14 1998-10-14 15:56:40 pierre
|
||||||
|
* all references to comp suppressed for m68k
|
||||||
|
|
||||||
|
Revision 1.13 1998/10/12 12:20:44 pierre
|
||||||
+ added tai_const_symbol_offset
|
+ added tai_const_symbol_offset
|
||||||
for r : pointer = @var.field;
|
for r : pointer = @var.field;
|
||||||
* better message for different arg names on implementation
|
* better message for different arg names on implementation
|
||||||
|
@ -57,6 +57,7 @@ unit ag68kmot;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
(* TO SUPPORT SOONER OR LATER!!!
|
||||||
function comp2str(d : bestreal) : string;
|
function comp2str(d : bestreal) : string;
|
||||||
type
|
type
|
||||||
pdouble = ^double;
|
pdouble = ^double;
|
||||||
@ -71,7 +72,7 @@ unit ag68kmot;
|
|||||||
{$endif}
|
{$endif}
|
||||||
dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
|
dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
|
||||||
comp2str:=double2str(dd^);
|
comp2str:=double2str(dd^);
|
||||||
end;
|
end; *)
|
||||||
|
|
||||||
|
|
||||||
function getreferencestring(const ref : treference) : string;
|
function getreferencestring(const ref : treference) : string;
|
||||||
@ -539,7 +540,10 @@ ait_labeled_instruction :
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.11 1998-10-12 12:20:45 pierre
|
Revision 1.12 1998-10-14 15:56:41 pierre
|
||||||
|
* all references to comp suppressed for m68k
|
||||||
|
|
||||||
|
Revision 1.11 1998/10/12 12:20:45 pierre
|
||||||
+ added tai_const_symbol_offset
|
+ added tai_const_symbol_offset
|
||||||
for r : pointer = @var.field;
|
for r : pointer = @var.field;
|
||||||
* better message for different arg names on implementation
|
* better message for different arg names on implementation
|
||||||
|
@ -53,6 +53,7 @@ unit ag68kmpw;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
(* TO SUPPORT SOONER OR LATER!!!
|
||||||
function comp2str(d : bestreal) : string;
|
function comp2str(d : bestreal) : string;
|
||||||
type
|
type
|
||||||
pdouble = ^double;
|
pdouble = ^double;
|
||||||
@ -67,7 +68,7 @@ unit ag68kmpw;
|
|||||||
{$endif}
|
{$endif}
|
||||||
dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
|
dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
|
||||||
comp2str:=double2str(dd^);
|
comp2str:=double2str(dd^);
|
||||||
end;
|
end; *)
|
||||||
|
|
||||||
const
|
const
|
||||||
line_length = 70;
|
line_length = 70;
|
||||||
@ -578,7 +579,10 @@ ait_labeled_instruction :
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.3 1998-10-12 12:20:47 pierre
|
Revision 1.4 1998-10-14 15:56:42 pierre
|
||||||
|
* all references to comp suppressed for m68k
|
||||||
|
|
||||||
|
Revision 1.3 1998/10/12 12:20:47 pierre
|
||||||
+ added tai_const_symbol_offset
|
+ added tai_const_symbol_offset
|
||||||
for r : pointer = @var.field;
|
for r : pointer = @var.field;
|
||||||
* better message for different arg names on implementation
|
* better message for different arg names on implementation
|
||||||
|
@ -65,6 +65,7 @@ type
|
|||||||
Procedure AsmLn;
|
Procedure AsmLn;
|
||||||
procedure AsmCreate;
|
procedure AsmCreate;
|
||||||
procedure AsmClose;
|
procedure AsmClose;
|
||||||
|
procedure Synchronize;
|
||||||
procedure WriteTree(p:paasmoutput);virtual;
|
procedure WriteTree(p:paasmoutput);virtual;
|
||||||
procedure WriteAsmList;virtual;
|
procedure WriteAsmList;virtual;
|
||||||
end;
|
end;
|
||||||
@ -364,6 +365,54 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{Touch Assembler and object time to ppu time is there is a ppufilename}
|
||||||
|
procedure TAsmList.Synchronize;
|
||||||
|
var
|
||||||
|
f : file;
|
||||||
|
l : longint;
|
||||||
|
begin
|
||||||
|
{$ifdef linux}
|
||||||
|
if not DoPipe then
|
||||||
|
{$endif linux}
|
||||||
|
begin
|
||||||
|
{Touch Assembler time to ppu time is there is a ppufilename}
|
||||||
|
if Assigned(current_module^.ppufilename) then
|
||||||
|
begin
|
||||||
|
Assign(f,current_module^.ppufilename^);
|
||||||
|
{$I-}
|
||||||
|
reset(f,1);
|
||||||
|
{$I+}
|
||||||
|
if ioresult=0 then
|
||||||
|
begin
|
||||||
|
getftime(f,l);
|
||||||
|
close(f);
|
||||||
|
assign(f,asmfile);
|
||||||
|
{$I-}
|
||||||
|
reset(f,1);
|
||||||
|
{$I+}
|
||||||
|
if ioresult=0 then
|
||||||
|
begin
|
||||||
|
setftime(f,l);
|
||||||
|
close(f);
|
||||||
|
end;
|
||||||
|
if not(cs_asm_extern in aktglobalswitches) then
|
||||||
|
begin
|
||||||
|
assign(f,objfile);
|
||||||
|
{$I-}
|
||||||
|
reset(f,1);
|
||||||
|
{$I+}
|
||||||
|
if ioresult=0 then
|
||||||
|
begin
|
||||||
|
setftime(f,l);
|
||||||
|
close(f);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
close(outfile);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure TAsmList.WriteTree(p:paasmoutput);
|
procedure TAsmList.WriteTree(p:paasmoutput);
|
||||||
begin
|
begin
|
||||||
@ -459,6 +508,7 @@ begin
|
|||||||
a^.WriteAsmList;
|
a^.WriteAsmList;
|
||||||
a^.AsmClose;
|
a^.AsmClose;
|
||||||
a^.DoAssemble;
|
a^.DoAssemble;
|
||||||
|
a^.synchronize;
|
||||||
dispose(a,Done);
|
dispose(a,Done);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -476,7 +526,10 @@ end;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.27 1998-10-13 16:50:01 pierre
|
Revision 1.28 1998-10-14 15:56:43 pierre
|
||||||
|
* all references to comp suppressed for m68k
|
||||||
|
|
||||||
|
Revision 1.27 1998/10/13 16:50:01 pierre
|
||||||
* undid some changes of Peter that made the compiler wrong
|
* undid some changes of Peter that made the compiler wrong
|
||||||
for m68k (I had to reinsert some ifdefs)
|
for m68k (I had to reinsert some ifdefs)
|
||||||
* removed several memory leaks under m68k
|
* removed several memory leaks under m68k
|
||||||
|
Loading…
Reference in New Issue
Block a user