mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 11:24:14 +02:00
* remove type case when loading constant in tattreader.BuildConstantOperand, resolves #33202, should not hurt other targets
git-svn-id: trunk@38307 -
This commit is contained in:
parent
18c2f72314
commit
d16a22e42b
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -16011,6 +16011,7 @@ tests/webtbs/tw33086.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw3309.pp svneol=native#text/plain
|
||||
tests/webtbs/tw33098.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw3320.pp svneol=native#text/plain
|
||||
tests/webtbs/tw33202.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw3324.pp svneol=native#text/plain
|
||||
tests/webtbs/tw3327.pp svneol=native#text/plain
|
||||
tests/webtbs/tw3328.pp svneol=native#text/plain
|
||||
|
@ -1723,7 +1723,7 @@ unit raatt;
|
||||
else
|
||||
begin
|
||||
oper.opr.typ:=OPR_CONSTANT;
|
||||
oper.opr.val:=aint(l);
|
||||
oper.opr.val:=l;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
10
tests/webtbs/tw33202.pp
Normal file
10
tests/webtbs/tw33202.pp
Normal file
@ -0,0 +1,10 @@
|
||||
{ %CPU=avr }
|
||||
{ %OPT=-Sm }
|
||||
program macrotest;
|
||||
const
|
||||
sramMax = FPC_SRAMBASE + FPC_SRAMSIZE - 1;
|
||||
begin
|
||||
asm
|
||||
sts sramMax , r31 // macrotest.pp(13,16) Error: Constant value out of bounds
|
||||
end;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user