http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52941

--- Comment #8 from Kazumoto Kojima <kkojima at gcc dot gnu.org> 2012-04-17 
00:54:00 UTC ---
(In reply to comment #7)
> Created attachment 27173 [details]
> Proposed patch

Looks even better.

> Only one thing ... is it safe to do the
> "@-r15", "@+r15" stuff in the atomic sequence?  I remember there were some
> border cases where things would blow up, but can't recall.  I've also briefly
> checked with atomic vars being on the stack and it looks OK.

I don't know about such restrictions, though my knowledge of
SH4A is very limited.  Perhaps some weired interaction of ll/sc
and cache?  Anyway, if it's a border issue, the patch is OK.
I'd like to pre-approve it.

Reply via email to