From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 10614 invoked from network); 10 Nov 1998 05:27:22 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 10 Nov 1998 05:27:22 -0000 Received: from earth.terran.org (bryan@earth.terran.org [208.152.24.33]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA08953 for ; Tue, 10 Nov 1998 00:12:24 -0500 Received: from localhost (bryan@localhost) by earth.terran.org (8.8.7/8.8.9) with ESMTP id VAA12143 for ; Mon, 9 Nov 1998 21:21:01 -0800 Date: Mon, 9 Nov 1998 21:21:01 -0800 (PST) From: "B. James Phillippe" To: AXP-List Subject: Re: More Apps porting to Alpha In-Reply-To: <3647BE4B.2DC89988@msa.dec.com> Message-ID: Organization: terran.org/darkforest.org X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 10 Nov 1998, Wai-Sun Chia wrote: > Apparently EGCS craps out when a variable is defined as the arch name: > i.e. alpha, i386, arm, m68k, mips, ppc, sparc, sparc64 > > I've confirmed it with i386 and alpha. To test yourself, try to compile > the following simple program: > > ******************** try.c ********************* > #include > > int main() > { > int alpha = 1; > printf("alpha = %d\n", alpha); > return 0; > } > ************************************************ > You will get a "parse error before `1'". If you change alpha to nalpha > or beta or anything other than alpha, then it'll work!!! Huh? I don't get this problem with egcs-1.0.3 or 1.1.1. What compiler were you using? Script started on Mon Nov 9 21:16:27 1998 (bryan/bryan.2@earth) ~ % uname -srm Linux 2.1.124 alpha (bryan/bryan.2@earth) ~ % cat /tmp/try.c #include int main() { int alpha = 1; printf("alpha = %d\n", alpha); return 0; } (bryan/bryan.2@earth) ~ % gcc --version egcs-2.90.29 980515 (egcs-1.0.3 release) (bryan/bryan.2@earth) ~ % gcc -Wall -O2 /tmp/try.c (bryan/bryan.2@earth) ~ % ./a.out alpha = 1 (bryan/bryan.2@earth) ~ % cc --version egcs-2.91.56 (bryan/bryan.2@earth) ~ % !gcc:s/gcc/cc/ cc -Wall -O2 /tmp/try.c (bryan/bryan.2@earth) ~ % ./a.out alpha = 1 (bryan/bryan.2@earth) ~ % exit Script done on Mon Nov 9 21:17:43 1998 -bp -- B. James Phillippe . bryan@terran.org UNIX Software Engineer . http://www.terran.org/~bryan Member since 1.1.59 . finger:bryan@earth.terran.org MOTM: Waiting for the DSL to go in :/