mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 15:31:19 +02:00
* synchronized with trunk
git-svn-id: branches/wasm@47778 -
This commit is contained in:
commit
47ff701db7
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -18644,6 +18644,7 @@ tests/webtbs/tw3814.pp svneol=native#text/plain
|
||||
tests/webtbs/tw38145a.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw38145b.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw38151.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw38201.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw38202.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw3827.pp svneol=native#text/plain
|
||||
tests/webtbs/tw3829.pp svneol=native#text/plain
|
||||
|
@ -229,7 +229,7 @@ unit agcpugas;
|
||||
begin
|
||||
check_offset(seh.data.offset,512);
|
||||
check_reg(seh.data.reg,R_MMREGISTER,min_mm_reg);
|
||||
writeword($DA00 or ((getsupreg(seh.data.reg)-min_int_reg) shl 6) or ((seh.data.offset shr 3)-1));
|
||||
writeword($DA00 or ((getsupreg(seh.data.reg)-min_mm_reg) shl 6) or ((seh.data.offset shr 3)-1));
|
||||
end;
|
||||
else
|
||||
internalerror(2020041503);
|
||||
|
@ -1136,9 +1136,8 @@ implementation
|
||||
{ parasize must be really zero, this means also that no result may be returned
|
||||
in a parameter }
|
||||
and not((current_procinfo.procdef.proccalloption in clearstack_pocalls) and
|
||||
not(current_procinfo.procdef.generate_safecall_wrapper) and
|
||||
paramanager.ret_in_param(current_procinfo.procdef.returndef,current_procinfo.procdef))
|
||||
{and (para_stack_size=0)} then
|
||||
not(current_procinfo.procdef.generate_safecall_wrapper) and
|
||||
paramanager.ret_in_param(current_procinfo.procdef.returndef,current_procinfo.procdef)) then
|
||||
begin
|
||||
{ Only need to set the framepointer }
|
||||
framepointer:=NR_STACK_POINTER_REG;
|
||||
|
@ -1327,10 +1327,6 @@ begin
|
||||
errorcode:=word(Errno);
|
||||
erroraddr:=addr;
|
||||
errorbase:=frame;
|
||||
{$ifdef FPC_HAS_FEATURE_EXCEPTIONS}
|
||||
if ExceptAddrStack <> nil then
|
||||
raise TObject(nil) at addr,frame;
|
||||
{$endif FPC_HAS_FEATURE_EXCEPTIONS}
|
||||
Halt(errorcode);
|
||||
end;
|
||||
|
||||
|
23
tests/webtbs/tw38201.pp
Normal file
23
tests/webtbs/tw38201.pp
Normal file
@ -0,0 +1,23 @@
|
||||
{ %result=201 }
|
||||
program Test;
|
||||
{$apptype console}
|
||||
{$ifdef fpc}
|
||||
{$mode objfpc}
|
||||
{$endif fpc}
|
||||
{$R+}
|
||||
|
||||
var
|
||||
Arr: array[1..2] of integer;
|
||||
i: Integer;
|
||||
begin
|
||||
i:=5;
|
||||
try
|
||||
try
|
||||
Arr[i] := 1;
|
||||
except
|
||||
writeln('Except block');
|
||||
end;
|
||||
finally
|
||||
writeln('Finally block');
|
||||
end;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user