Subject: Re: Inline Assembly queries

From: Ian Lance Taylor <[email-masked]>
Date: Mon, 29 Jun 2009 14:27:48 -0700

David Howells <[email-masked]> writes:

> kernel mailz <[email-masked]> wrote:
>
>> asm("sync");
>
> Isn't gcc free to discard this as it has no dependencies, no indicated side
> effects, and isn't required to be kept?  I think this should probably be:
>
> 	asm volatile("sync");

An asm with no outputs is considered to be volatile.

Ian