This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: New problems with gcc-2.8.0 based code - NOW FIXED!




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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]