https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87733

--- Comment #33 from Rich Felker <bugdal at aerifal dot cx> ---
> An asm clobber just means "may be an output", and no operand will be assigned
> a register mentioned in a clobber.  There is no magic.

This, plus the compiler cannot assume the value in any of the clobbered
registers is preserved across the asm statement.

> This is inlined just fine?

It produces *wrong code* so it doesn't matter if it inlines fine. $10 is
modified by the kernel in the event the syscall is restarted, so the wrong
value will be loaded on restart.

Reply via email to