Created attachment 9356
Patch
I noticed that the 'byval' parameter attribute is ignored in the MSP430
backend. This causes functions that take a struct as argument to miscompile.
Specifically, structs that should be passed by value are passed as a pointer
instead.
I have attached a simple patch that addresses this problem.
byval.diff
(3959 bytes, text/plain)byval.diff
(4812 bytes, text/plain)