mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 08:49:25 +02:00
* align all constants correctly (default of 4 size for real type constants)
This commit is contained in:
parent
8ef2c267c4
commit
c0db65da11
@ -65,7 +65,7 @@ implementation
|
|||||||
uses
|
uses
|
||||||
globtype,widestr,systems,
|
globtype,widestr,systems,
|
||||||
verbose,globals,
|
verbose,globals,
|
||||||
symconst,symdef,aasmbase,aasmtai,defbase,
|
symconst,symdef,aasmbase,aasmtai,aasmcpu,defbase,
|
||||||
cpuinfo,cpubase,
|
cpuinfo,cpubase,
|
||||||
cginfo,cgbase,tgobj,rgobj
|
cginfo,cgbase,tgobj,rgobj
|
||||||
{$ifdef delphi}
|
{$ifdef delphi}
|
||||||
@ -129,6 +129,7 @@ implementation
|
|||||||
lab_real:=lastlabel;
|
lab_real:=lastlabel;
|
||||||
if (cs_create_smart in aktmoduleswitches) then
|
if (cs_create_smart in aktmoduleswitches) then
|
||||||
Consts.concat(Tai_cut.Create);
|
Consts.concat(Tai_cut.Create);
|
||||||
|
consts.concat(tai_align.create(const_align(4)));
|
||||||
Consts.concat(Tai_label.Create(lastlabel));
|
Consts.concat(Tai_label.Create(lastlabel));
|
||||||
case realait of
|
case realait of
|
||||||
ait_real_32bit :
|
ait_real_32bit :
|
||||||
@ -305,6 +306,7 @@ implementation
|
|||||||
lab_str:=lastlabel;
|
lab_str:=lastlabel;
|
||||||
if (cs_create_smart in aktmoduleswitches) then
|
if (cs_create_smart in aktmoduleswitches) then
|
||||||
Consts.concat(Tai_cut.Create);
|
Consts.concat(Tai_cut.Create);
|
||||||
|
consts.concat(tai_align.create(const_align(4)));
|
||||||
Consts.concat(Tai_label.Create(lastlabel));
|
Consts.concat(Tai_label.Create(lastlabel));
|
||||||
{ generate an ansi string ? }
|
{ generate an ansi string ? }
|
||||||
case st_type of
|
case st_type of
|
||||||
@ -466,6 +468,7 @@ implementation
|
|||||||
lab_set:=lastlabel;
|
lab_set:=lastlabel;
|
||||||
if (cs_create_smart in aktmoduleswitches) then
|
if (cs_create_smart in aktmoduleswitches) then
|
||||||
Consts.concat(Tai_cut.Create);
|
Consts.concat(Tai_cut.Create);
|
||||||
|
consts.concat(tai_align.create(const_align(4)));
|
||||||
Consts.concat(Tai_label.Create(lastlabel));
|
Consts.concat(Tai_label.Create(lastlabel));
|
||||||
if tsetdef(resulttype.def).settype=smallset then
|
if tsetdef(resulttype.def).settype=smallset then
|
||||||
begin
|
begin
|
||||||
@ -506,6 +509,7 @@ implementation
|
|||||||
location_reset(location,LOC_CREFERENCE,OS_NO);
|
location_reset(location,LOC_CREFERENCE,OS_NO);
|
||||||
{ label for GUID }
|
{ label for GUID }
|
||||||
objectlibrary.getdatalabel(tmplabel);
|
objectlibrary.getdatalabel(tmplabel);
|
||||||
|
consts.concat(tai_align.create(const_align(16)));
|
||||||
consts.concat(Tai_label.Create(tmplabel));
|
consts.concat(Tai_label.Create(tmplabel));
|
||||||
consts.concat(Tai_const.Create_32bit(value.D1));
|
consts.concat(Tai_const.Create_32bit(value.D1));
|
||||||
consts.concat(Tai_const.Create_16bit(value.D2));
|
consts.concat(Tai_const.Create_16bit(value.D2));
|
||||||
@ -527,7 +531,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.21 2002-10-06 21:01:50 peter
|
Revision 1.22 2002-11-09 15:36:50 carl
|
||||||
|
* align all constants correctly (default of 4 size for real type constants)
|
||||||
|
|
||||||
|
Revision 1.21 2002/10/06 21:01:50 peter
|
||||||
* use tconstexpruint instead of qword
|
* use tconstexpruint instead of qword
|
||||||
|
|
||||||
Revision 1.20 2002/10/05 12:43:25 carl
|
Revision 1.20 2002/10/05 12:43:25 carl
|
||||||
|
Loading…
Reference in New Issue
Block a user