mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 12:49:20 +02:00
* limit the stack size set by the -Cs option to 65520 bytes on i8086 and other
CPUs with a 16-bit address space git-svn-id: trunk@27960 -
This commit is contained in:
parent
22a7dfa231
commit
d7f9265eba
@ -1005,7 +1005,13 @@ begin
|
|||||||
's' :
|
's' :
|
||||||
begin
|
begin
|
||||||
val(copy(more,j+1,length(more)-j),stacksize,code);
|
val(copy(more,j+1,length(more)-j),stacksize,code);
|
||||||
if (code<>0) or (stacksize>=67107840) or (stacksize<1024) then
|
if (code<>0)
|
||||||
|
{$ifdef cpu16bitaddr}
|
||||||
|
or (stacksize>=65521)
|
||||||
|
{$else cpu16bitaddr}
|
||||||
|
or (stacksize>=67107840)
|
||||||
|
{$endif cpu16bitaddr}
|
||||||
|
or (stacksize<1024) then
|
||||||
IllegalPara(opt);
|
IllegalPara(opt);
|
||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user