Even when returning a structure by passing an invisible reference, gcc still likes to set the return register to the address of the struct. This is undesirable on ptx where things like the return register have to be declared, and the function really returns void at ptx level. I've added a target hook to avoid this. I figure other targets might find it beneficial to omit this unnecessary set as well. Bernd