From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a16aa11e8df4d689 X-Google-Attributes: gidfee84,public From: John Parks Subject: Re: reserved word "readonly" in DEC C Date: 1999/02/23 Message-ID: <36D2D864.BF10D088@zko.dec.com>#1/1 X-Deja-AN: 447533460 Content-Transfer-Encoding: 7bit References: <7anks0$mju$1@node2.nodak.edu> <36D1DFA5.F1CB343B@zk3.dec.com> <7asr17$rfm$1@node2.nodak.edu> To: Tim Mooney Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment Corporation Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 [adding to Jeff's reply] So it's been "fixed" in V4.0E and later releases. You can upgrade the OS, use Jeff's workaround, or rename "readonly" in your source code to avoid the problem. There's a fourth solution you might also want to consider. The Tru64 UNIX development environment team is now field-testing an update kit for certain development tools (called the "DTK" or Developers Toolkit). The first field test update kit (DTK EFT1) contains the DEC C compiler and installs and runs on V4.0D and V4.0E systems. It currently provides the following new C compiler features: o parallel programming support (both the OpenMP parallel programming API and old-style SGI manual decomposition directives) o major source_listing improvements o optional dynamic array bounds checking o variable length arrays, restricted pointers, initializers with designators, and other new C9X features o significant new diagnostic controls (pragmas and command-line options) o new compiler diagnostics (detection of undefined side-effects, unnecessary #include files, potential 64-bit gotchas, etc.) o enhanced Microsoft compatibility mode (including thread local storage) o significant optimization improvements (including improved utilization of new alpha hardware, enhanced intrinsic function support, better loop transforms, etc.) DTK EFT2 should ship soon and may also include new versions of decladebug, the atom-based program analysis tools, and the Visual Threads package. It should install and run on V4.0D, V4.0E, and V4.0F. The DTK field test kits are down-loadable from the web and simple to install. They do not remove access to your current tools. And they're free to all those with a current Tru64 UNIX development license. If you're interested, send mail to Pat Mulvey at mulvey@zko.dec.com to sign-up for the field test. \John Parks Tim Mooney wrote: > In article <36D1DFA5.F1CB343B@zk3.dec.com>, > Jeff Sullivan wrote: > > Yes, DEC C provides support for the storage-class modifier readonly, > > which is a VAX C keyword. I found a description in section 2.11 or > > the DEC C Language Reference Manual. > > Hmmm... There's a manual I don't have. I'll have to check the doc site on > the web. Thanks for the pointer. > > > The fact that it was recognised as a keyword in -std mode for > > the DEC C compiler in V4.0D is a feature or a bug, based on your > > perspective. The feature/bug is not in the compiler for V4.0F > > and later in the -std mode. Admittedly, more users considered > > this a bug than a feature... > > > > You could workaround it by adding -Dreadonly=_readonly to your > > command line. This essentially is the same as doing this in the > > code, prior to the use of readonly: > > > > #define readonly _readonly > > > > Let me know if you need more info. > > I don't, and thanks for the reply Jeff. As usual, the information you've > provided is both candid and useful! ;-) > > Tim > -- > Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu > Information Technology Services (701) 231-1076 (Voice) > Room 242-J1, IACC Building (701) 231-8541 (Fax) > North Dakota State University, Fargo, ND 58105-5164