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: PATCH (volatile support)



> > 	#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.)



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