This will effect the Z80 port
[mailto:sdcc-devel-admin@... Behalf Of Klaus
Sent: Thursday, March 01, 2001 1:32 PM
Subject: [sdcc-devel]Fixed PCALL and stack adjustment bug
tonight I fixed two bugs that I have found with following code snipped:
1: void (* foo)(int x, int y) reentrant;
3: void bar ()
5: if (foo)
The Compiler generated for the PCALL in line 6 a normal CALL
("lcall" for a mcs51).
2. Stack adjustment bug
In some cases the Compiler did not generate code to adjust the stack
after calls to functions that expect parameters on stack.
To fix this problem I had to heavily change the argStack (SDCCsymt) and
parmBytes (SDCCicode) stuff. Now parmBytes is located in the iCode
I think that is the best location for it because parmBytes is a
typical backend stuff.
sdcc-devel mailing list