Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!ucsd!ucbvax!agate!shelby!neon!pescadero.Stanford.EDU!philip From: philip@pescadero.Stanford.EDU (Philip Machanick) Newsgroups: comp.lang.c++ Subject: volatile in cfront 2.0 Message-ID: <1990Sep6.214428.18551@Neon.Stanford.EDU> Date: 6 Sep 90 21:44:28 GMT Sender: news@Neon.Stanford.EDU (USENET News System) Reply-To: philip@pescadero.stanford.edu Organization: Computer Science Department, Stanford University Lines: 21 I am attempting to port C++ 2.0 (using AT&T source code) to a machine which uses the "volatile" type specifier in its C header files. Cfront 2.0 strips out volatile in the mangled C output, and gives the message warning: " volatile" not implemented (ignored) I can think of 2 possibilities here: 1. filter the headers before and after cfront, e.g., convert all "volatile" to /*volatile*/, then back 2. find the place in the source where volatile is stripped and change it 1 is less than ideal because it would break if the word "volatile" appeared in a comment (though I suppose I could work out a safer transformation..). 2 might break in some declarations that don't translate directly into simple C. For that matter, why _is_ volatile not implemented? Any comments or suggestions would be welcome. Philip Machanick philip@pescadero.stanford.edu