[PATCH, -v3] compiler/gcc4: Add quirk for 'asm goto' miscompilationbug

From: Ingo Molnar
Date: Thu Oct 10 2013 - 11:12:27 EST



* Jakub Jelinek <jakub@xxxxxxxxxx> wrote:

> On Thu, Oct 10, 2013 at 07:04:18AM -0700, Richard Henderson wrote:
> > On 10/10/2013 01:31 AM, Jakub Jelinek wrote:
> > > Also, for the bitops patch, you probably want an asm_volatile_goto variant.
> >
> > Why? Asm without output (which asm goto must be) are automatically volatile.
>
> You're right.

Indeed. Something like the updated version below?

[ I kept the asm_volatile_goto() naming to make sure the implicit volatile
is visible. ]

Thanks,

Ingo

--------------------->