When executing the regression tests for current SDCC #10512 on an OpenBSB 6.3 system on a PowerPC machine, the test gcc-test-torture-execute-arith-rand fails for the target test-mcs51-large-stack-auto (but neither for test-mcs51-small nor test-mcs51-medium).
Philipp
The test also passes for test-mcs51-stack-auto, test-mcs51-large and test-mcs51-huge. I have attached the .asm for test-mcs51-large-stack-auto, which is quite different (e.g. in which variables are allocated where) to the .asm generated on a GNU/Linux on amd64 host.
Philipp
Last edit: Philipp Klaus Krause 2018-08-22
Compared the generated asm briefly against one from amd64 Linux. It's funny how all variables are placed in different places on the stack. But it doesn't seem to introduce any overwritten register or something like that.
The test passes for me using sdcc from current svn.