asm volatile () elicits warning sometimes

Jim Wilson
Wed Apr 15 16:12:00 GMT 1998

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.


More information about the Gcc-bugs mailing list