This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: asm volatile () elicits warning sometimes
- To: mmitchell at usa dot net
- Subject: Re: asm volatile () elicits warning sometimes
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Wed, 15 Apr 1998 16:11:29 -0700
- cc: gkm at eng dot ascend dot com, egcs-bugs at cygnus dot com
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