Am 15.04.20 um 20:59 schrieb Vahid Bashiri:
> I checked the source code and it appears that the problem is in the
> stm8/gen.c in function genCall. I changed the following line:
> emit2 ("call", "%s", aopGet2 (left->aop, 0));
> to
> emit2 ("call", "%s", left->aop->aopu.immd);
> and it looks like to solve the problem. I hope someone correct me or the
> source code.
> 

I've opened bug report #2993. Your change already fixes immediate
operands in calls via function pointers. I've made some further changes
so it now also works for literal operands in such calls.

I'm just running the regression tests now to ensure that the fixes don't
break anything else. By tomorrow, the issue should be fixed in snapshots.

Philipp


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to