Re: [RFC] LKMM: Add volatile_if()

From: Segher Boessenkool
Date: Sun Jun 06 2021 - 13:19:18 EST


On Sun, Jun 06, 2021 at 09:47:49AM -0400, Alan Stern wrote:
> > GCC does not pretend it can understand the asm. But it can see when
> > two asm statements are identical.
>
> How similar do two asm strings have to be before they are considered
> identical? For instance, do changes to the amount of leading or
> trailing whitespace matter?

They have to be identical to be considered identical.

> Or what about including an empty assembly statement in one but not the
> other?

GCC does not parse the assembler template.


Segher