This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH (volatile support)
- To: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Subject: Re: PATCH (volatile support)
- From: John Carr <jfc at mit dot edu>
- Date: Tue, 05 May 1998 16:11:42 -0400
- cc: egcs at cygnus dot com
> > #if !defined __STDC__ && !defined volatile
> That won't work, except when volatile is defined to something else that
> the compiler accepts to be synonymous to volatile.
I was assuming "#define volatile volatile". But now I realize that
won't work with some pre-ANSI compilers, probably including the MIPS
compilers that need volatile.
(In ANSI C "#define foo foo" gives well defined results; some old
preprocessors could go into an infinite loop.)