0;
> }
>
> Anyone see anything wrong with the testcase? Do we thing this sort of
> thing ought to work, perhaps with scopes lengthened?
In general, I see no reason why the compiler should be forced to
preserve a register between blocks like that. Relying on a value
magically a
thing more complicated than simple indexing.
Load/store instructions with writeback seem not to be in its
vocabulary at all.
> But you really need that memory clobber there whether you like it or
> not, see above.
I don't know of any device where the side-effects are not explicitly
indicated by other means in the code triggering them, so it probably
is safe without the clobber as Russel says.
--
Måns Rullgård
m...@mansr.com