As of [r13366], the not-really working struct return support for ds390 has been disabled, and the not-really working struct return support for mcs51 has been fixed.

Porting the fix from mcs51 to ds390 looks like it could be the way forward for this issue.

 

Related

Commit: [r13366]