From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,8e22509662405c8b,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,8e22509662405c8b,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-08-29 12:44:46 PST Xref: gmd.de comp.sys.dec:9787 comp.unix.ultrix:10699 Newsgroups: comp.sys.dec,comp.unix.ultrix Path: gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!agate!boulder!news!grunwald From: grunwald@foobar.cs.colorado.edu (Dirk Grunwald) Subject: cxx/cc/c89 on Alpha/OSF1 Message-ID: Sender: news@colorado.edu (The Daily Planet) Nntp-Posting-Host: foobar.cs.colorado.edu Reply-To: grunwald@foobar.cs.colorado.edu Organization: University of Colorado at Boulder Date: Sun, 29 Aug 1993 19:27:09 GMT The following short programs illustrates a problem with 'cxx' (DEC C++) and 'c89' (ANSI C) on the Alpha running OSF V1.3. This doesn't occur with 'cc'. My questions: + what's the diff between cc & c89? + is there an update to fix these problems? [foobar-180] cat foo.C #include main() { int i = MAXINT; } [foobar-181] cxx -c foo.C foo.C:5: warning: In the initializer for i, integer overflow occurs in evaluating the expression "1<<(8*sizeof(int))-1". foo.C:6: warning: The procedure "main" returns a non-void value but does not contain a return statement. [foobar-182] ln -s foo.C foo.c [foobar-183] cc -c foo.c [foobar-184] c89 -c foo.c foo.c:5: warning: In the initializer for i, integer overflow occurs in evaluating the expression "1<<(8*sizeof(int))-1".