Article View: gnu.gcc.help
Article #42166Problem w/volatile keywd & '$' in identifiers
From: Derek Douville
Date: Tue, 09 Jan 1996 00:00
Date: Tue, 09 Jan 1996 00:00
49 lines
2083 bytes
2083 bytes
/*
We are compiling code on a DG/ux AViiON system under 5.4 Release 3.10
using gcc version 2.6.3.19 (DG). The problem we are running into is
that several identifer names (variables) contain the dollar-sign ($)
character. The compiler will allow dollar-signs with the "-traditional"
flag set. However, because the applications are being built for a
multi-processor architecture, we require the use of the "volatile"
keyword (in combination with static).
The ANSI standard supports volatile (from what I know), while non-
ASNI compliant doesn't seem to. Is there a flag or option that will
allow compilation using volatile as well as dollar signs in identifiers?
Here's some sample code that will fail with gcc and cc (which on dgux
eventually calls the gcc compiler with a different set of options):
*/
/* Begin source */
#include <stdio.h>
static volatile int foo$ = 100; /* Note these don't have to be in */
/* combination, the $ and volotile */
/* are being mixed here to save code */
/* for this example. */
void main()
{
printf("\nI want to live to be %d\n", foo$);
}
/* end source */
/*
This email should compile.
DG/UX Support has not come up with a solution to this point. Will a newer
compiler support what we need to do?
Thanks in advance.
--
Derek Douville (Technical Analyst) COGNOS INCORPORATED
Email: douvilld@cognos.com 3755 Riverside Drive
Phone: (613) 738-1338 x3033 Ottawa, Ont. K1G 3Z4
Fax: (613) 738-3518 #include <stddisclaimer.h>
UNIX TECHNICAL SUPPORT (Internal) DG/UX SYSTEM ADMINISTRATOR
*/
Technical Details
Message-ID:
<4cubfa$h9o@mail2.cognos.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b1764ccabc347fb7,start X-Google-Attributes: gid11318c,public From: douvilld@Cognos.COM (Derek Douville) Subject: Problem w/volatile keywd & '$' in identifiers Date: 1996/01/09 Message-ID: <4cubfa$h9o@mail2.cognos.com> X-Deja-AN: 134699097 organization: Cognos Incorporated, Ottawa CANADA newsgroups: gnu.gcc.help