This is the mail archive of the gcc-bugs@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: asm volatile () elicits warning sometimes


Old style asms are always treated as if there were declared volatile.  Correct
handling of them requires this.  Old style asms have unknown side effects, so
we must assume that they are all volatile.

Extended asms have a way to indicate side-effects, so they are volatile only
if the user specifies volatile.

If volatile is used with an old-style asm, the C++ front end should accept
it and ignore it.

Jim


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