Steve Underwood wrote:
>
> Hi,
>
> I was half asleep when I reported my last code generation problem, but
> this time I think I am awake :-)
>
> int32_t static __inline__ imul16(register int16_t x, register int16_t y)
> {
Hi Steve,
You know by now that I am very much in learning mode with C, but I think
the problem is with __inline__ asking for a return value. Particularly
inside an interrupt that has to do reti.
Looking at the generated code, it seems to me that the compiler followed
the (il)logic: Since he inlined the code, no call is necessary, so no
return, and thus no return value.
Then it got to the reti and said ah, here's a return.
Just guessing.
Garst