mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 21:30:30 +02:00
* Fixed float constants in softfloat mode when compiler was compiled in hardfloat mode on arm-linux host.
git-svn-id: trunk@7977 -
This commit is contained in:
parent
499cbcbbe1
commit
b86574cf36
@ -784,8 +784,6 @@ implementation
|
||||
swap64bitarray(t64bitarray(d));
|
||||
AsmWrite(#9'.byte'#9);
|
||||
{$ifdef arm}
|
||||
{ on a real arm cpu, it's already hi/lo swapped }
|
||||
{$ifndef cpuarm}
|
||||
if tai_real_64bit(hp).formatoptions=fo_hiloswapped then
|
||||
begin
|
||||
for i:=4 to 7 do
|
||||
@ -801,7 +799,6 @@ implementation
|
||||
end;
|
||||
end
|
||||
else
|
||||
{$endif cpuarm}
|
||||
{$endif arm}
|
||||
begin
|
||||
for i:=0 to 7 do
|
||||
|
@ -68,6 +68,9 @@ interface
|
||||
realait:=floattype2ait[tfloatdef(resultdef).floattype];
|
||||
hiloswapped:=(current_settings.fputype in [fpu_fpa,fpu_fpa10,fpu_fpa11]) and
|
||||
not(cs_fp_emulation in current_settings.moduleswitches);
|
||||
{$ifdef FPC_DOUBLE_HILO_SWAPPED}
|
||||
hiloswapped:=not hiloswapped;
|
||||
{$endif FPC_DOUBLE_HILO_SWAPPED}
|
||||
{ const already used ? }
|
||||
if not assigned(lab_real) then
|
||||
begin
|
||||
|
@ -725,8 +725,6 @@ interface
|
||||
swap64bitarray(t64bitarray(d));
|
||||
AsmWrite(#9#9'DB'#9);
|
||||
{$ifdef arm}
|
||||
{ on a real arm cpu, it's already hi/lo swapped }
|
||||
{$ifndef cpuarm}
|
||||
if tai_real_64bit(hp).formatoptions=fo_hiloswapped then
|
||||
begin
|
||||
for i:=4 to 7 do
|
||||
@ -742,7 +740,6 @@ interface
|
||||
end;
|
||||
end
|
||||
else
|
||||
{$endif cpuarm}
|
||||
{$endif arm}
|
||||
begin
|
||||
for i:=0 to 7 do
|
||||
|
@ -124,6 +124,9 @@ implementation
|
||||
{$ifdef ARM}
|
||||
hiloswapped:=(current_settings.fputype in [fpu_fpa,fpu_fpa10,fpu_fpa11]) and
|
||||
not(cs_fp_emulation in current_settings.moduleswitches);
|
||||
{$ifdef FPC_DOUBLE_HILO_SWAPPED}
|
||||
hiloswapped:=not hiloswapped;
|
||||
{$endif FPC_DOUBLE_HILO_SWAPPED}
|
||||
{$endif ARM}
|
||||
{ const already used ? }
|
||||
if not assigned(lab_real) then
|
||||
|
Loading…
Reference in New Issue
Block a user