Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* cxx/cc/c89 on Alpha/OSF1
@ 1993-08-29 19:27 Dirk Grunwald
  0 siblings, 0 replies; only message in thread
From: Dirk Grunwald @ 1993-08-29 19:27 UTC (permalink / raw)



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 <values.h>

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".


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-08-29 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-29 19:27 cxx/cc/c89 on Alpha/OSF1 Dirk Grunwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox