mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 16:09:31 +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
|
||||
else if pos('$INSTRUCTIONSETS',s)>0 then
|
||||
begin
|
||||
hs1:='';
|
||||
for cpu:=low(tcputype) to high(tcputype) do
|
||||
begin
|
||||
hs:=s;
|
||||
hs1:=cputypestr[cpu];
|
||||
if hs1<>'' then
|
||||
if length(hs1+cputypestr[cpu])>70 then
|
||||
begin
|
||||
hs:=s;
|
||||
Replace(hs,'$INSTRUCTIONSETS',hs1);
|
||||
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
|
||||
else if pos('$FPUINSTRUCTIONSETS',s)>0 then
|
||||
begin
|
||||
hs1:='';
|
||||
for fpu:=low(tfputype) to high(tfputype) do
|
||||
begin
|
||||
hs:=s;
|
||||
hs1:=fputypestr[fpu];
|
||||
if hs1<>'' then
|
||||
if length(hs1+fputypestr[fpu])>70 then
|
||||
begin
|
||||
hs:=s;
|
||||
Replace(hs,'$FPUINSTRUCTIONSETS',hs1);
|
||||
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
|
||||
else if pos('$ABITARGETS',s)>0 then
|
||||
|
Loading…
Reference in New Issue
Block a user