Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!lupine!rfg From: rfg@NCD.COM (Ron Guilmette) Newsgroups: comp.lang.c++ Subject: Re: volatile in cfront 2.0 Message-ID: <1478@lupine.NCD.COM> Date: 7 Sep 90 21:54:47 GMT References: <1990Sep6.214428.18551@Neon.Stanford.EDU> Organization: Network Computing Devices, Inc., Mt. View, CA Lines: 30 In article <1990Sep6.214428.18551@Neon.Stanford.EDU> philip@pescadero.stanford.edu writes: >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 Option #3: Add the following to your $(CFLAGS) in your Makefile(s): -Dvolatile="" >... For that matter, why _is_ volatile not implemented? The usual reasons. Time and money. :-) P.S. Note that the `signed' keyword is unappreciated by cfront 2.0 also. -- // Ron Guilmette - C++ Entomologist // Internet: rfg@ncd.com uucp: ...uunet!lupine!rfg // Motto: If it sticks, force it. If it breaks, it needed replacing anyway.