https://bugs.kde.org/show_bug.cgi?id=374940

--- Comment #2 from Matthias Urlichs <sm...@smurf.noris.de> ---
It's used as a memory barrier. The Linux kernel uses addl %0,0(%%esp) for the
same purpose. I have no idea why libev uses -1 but its author argues that his
use of -1 is not wrong and therefore valgrind shouldn't complain about it.

Yes I know it's unsafe. Nothing is being stored there, the access is simply
used for the barrier side effect.

The libev author claims that you should simply mark the contents of whatever
register %0 ends up being as to be undefined data, instead of emitting an
unconditional warning.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to