[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc
Subject:    Re: New problems with gcc-2.8.0 based code - NOW FIXED!
From:       Linus Torvalds <torvalds () transmeta ! com>
Date:       1997-12-30 20:27:01
[Download RAW message or body]



Paul Koning writes:
> 
> On the other hand, an asm that has no explicit output clearly must
> have side effects, otherwise it wouldn't have been put there.  So for
> such an asm, "volatile" is the right treatment.

I agree 100%.

Any asm without any outputs by very definition has to have some side
effect to be useful, and as such the compiler should consider it volatile
by default. That makes gcc not only conform with the documentation, it is
also the only interpretation that makes any sense at all. 

The lack of a "novolatile" keyword is a non-issue, as anybody who would
ever want to use it seems rather misguided.

		Linus

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic