mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 12:19:18 +02:00
* write supported cpu and fpu types more compact
git-svn-id: trunk@23260 -
This commit is contained in:
parent
a5cc48da0e
commit
00af813eee
@ -211,28 +211,54 @@ begin
|
|||||||
end
|
end
|
||||||
else if pos('$INSTRUCTIONSETS',s)>0 then
|
else if pos('$INSTRUCTIONSETS',s)>0 then
|
||||||
begin
|
begin
|
||||||
|
hs1:='';
|
||||||
for cpu:=low(tcputype) to high(tcputype) do
|
for cpu:=low(tcputype) to high(tcputype) do
|
||||||
begin
|
begin
|
||||||
hs:=s;
|
if length(hs1+cputypestr[cpu])>70 then
|
||||||
hs1:=cputypestr[cpu];
|
|
||||||
if hs1<>'' then
|
|
||||||
begin
|
begin
|
||||||
|
hs:=s;
|
||||||
Replace(hs,'$INSTRUCTIONSETS',hs1);
|
Replace(hs,'$INSTRUCTIONSETS',hs1);
|
||||||
Comment(V_Normal,hs);
|
Comment(V_Normal,hs);
|
||||||
end;
|
hs1:=''
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if hs1<>'' then
|
||||||
|
hs1:=hs1+',';
|
||||||
|
if cputypestr[cpu]<>'' then
|
||||||
|
hs1:=hs1+cputypestr[cpu];
|
||||||
|
end;
|
||||||
|
if hs1<>'' then
|
||||||
|
begin
|
||||||
|
hs:=s;
|
||||||
|
Replace(hs,'$INSTRUCTIONSETS',hs1);
|
||||||
|
Comment(V_Normal,hs);
|
||||||
|
hs1:=''
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
else if pos('$FPUINSTRUCTIONSETS',s)>0 then
|
else if pos('$FPUINSTRUCTIONSETS',s)>0 then
|
||||||
begin
|
begin
|
||||||
|
hs1:='';
|
||||||
for fpu:=low(tfputype) to high(tfputype) do
|
for fpu:=low(tfputype) to high(tfputype) do
|
||||||
begin
|
begin
|
||||||
hs:=s;
|
if length(hs1+fputypestr[fpu])>70 then
|
||||||
hs1:=fputypestr[fpu];
|
|
||||||
if hs1<>'' then
|
|
||||||
begin
|
begin
|
||||||
|
hs:=s;
|
||||||
Replace(hs,'$FPUINSTRUCTIONSETS',hs1);
|
Replace(hs,'$FPUINSTRUCTIONSETS',hs1);
|
||||||
Comment(V_Normal,hs);
|
Comment(V_Normal,hs);
|
||||||
end;
|
hs1:=''
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if hs1<>'' then
|
||||||
|
hs1:=hs1+',';
|
||||||
|
if fputypestr[fpu]<>'' then
|
||||||
|
hs1:=hs1+fputypestr[fpu];
|
||||||
|
end;
|
||||||
|
if hs1<>'' then
|
||||||
|
begin
|
||||||
|
hs:=s;
|
||||||
|
Replace(hs,'$FPUINSTRUCTIONSETS',hs1);
|
||||||
|
Comment(V_Normal,hs);
|
||||||
|
hs1:=''
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
else if pos('$ABITARGETS',s)>0 then
|
else if pos('$ABITARGETS',s)>0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user