Path: utzoo!attcan!uunet!decwrl!bacchus.pa.dec.com!decatl!laura.alf.dec.com!hoyt From: hoyt@laura.alf.dec.com (Kurt Hoyt) Newsgroups: comp.sys.dec Subject: Re: Compiler Bug Message-ID: <1990Jul30.165432.9590@decatl.dec.com> Date: 30 Jul 90 16:54:32 GMT References: <327@sun13.scri.fsu.edu> <3152@rwthinf.UUCP> <5889@crltrx.crl.dec.com> Sender: news@decatl.dec.com (USENET News System) Reply-To: hoyt@laura.alf.dec.com (Kurt Hoyt) Distribution: na Organization: Digital Equipment Corporation Lines: 35 In article <327@sun13.scri.fsu.edu>, hudgens@sun13.scri.fsu.edu (Jim Hudgens) writes: > Under Ultrix 4.0, we get this behavior: [program deleted] > $ cc bug.c > $ a.out > 2000 * 4 / 244.000000 = 32 > $ cc -O3 bug.c > $ a.out > Segmentation fault > > It seems to be crashing in the printf. Nothing obvious in the > assembly listing. Yet under Ultrix 3.1d, we get: [it works] I'm running ULTRIX 4.0, and I get: % cc bug.c % a.out 2000 * 4 / 244.000000 = 32 % cc -O3 bug.c % a.out 2000 * 4 / 244.000000 = 32 Which 4.0 (mine says rev 174)? Which cc version? Which CPU type? % ls -l /usr/bin/cc lrwxrwxrwx 1 root 13 May 24 17:41 /usr/bin/cc@ -> cc2.0 ..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:.. Kurt in Atlanta "More than 4 billion chickens in America hoyt@decatl.alf.dec.com each year do not have a single happy moment hoyt@laura.alf.dec.com in their lives." -- PETA News