[Sparc] Generate correct code for leaf functions with stack objects