From owner-freebsd-current Mon Dec 20 8:39:48 1999 Delivered-To: freebsd-current@freebsd.org Received: from mrynet.com (mrynet.com [24.234.53.177]) by hub.freebsd.org (Postfix) with ESMTP id 1F27B15307 for ; Mon, 20 Dec 1999 08:39:45 -0800 (PST) (envelope-from freebsd@mrynet.com) Received: (from freebsd@localhost) by mrynet.com (8.9.3/8.9.3) id IAA60557; Mon, 20 Dec 1999 08:39:40 -0800 (PST) (envelope-from freebsd) Posted-Date: Mon, 20 Dec 1999 08:39:40 -0800 (PST) Message-Id: <199912201639.IAA60557@mrynet.com> From: freebsd@mrynet.com (FreeBSD mailing list) Date: Mon, 20 Dec 1999 08:39:40 +0000 X-Mailer: Mail User's Shell (7.2.6 beta(3) 11/17/96) To: "John W. DeBoskey" Subject: Empty core files left with coredumpsize=0 (Was Re: cc taking a signal 11) Cc: freebsd-current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > > While I'm at it, a co-worker gave this one to me earlier today. > > cc: Internal compiler error: program cc1 got fatal signal 11 > > 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Mon Dec 20 01:45:25 EST 1999 > > > > FreeBSD(root)/tmp %cc -v > Using builtin specs. > gcc version 2.95.2 19991024 (release) > > FreeBSD(root)/tmp %cc -O foo.c -o foo.o -c > cc: Internal compiler error: program cc1 got fatal signal 11 > > > > static void getsig11(parfree,dbl,lambda) > long parfree; > double *dbl; > double *lambda; > { > long i, j; > j = -1; > for(i = 0; i < parfree; i++) { > j += i+1; > dbl[j] *= (1.0 + *lambda); > } > return; > } > > > Yes, the algorithm looks funny, but is correct. The program will > compile correctly if the 'j += i+1;' is changed to 'j = i+1;' or if > the variable 'lambda' is changed from a pointer to an actual value. > > Anyone want to take a stab at this? I'm not a big compiler > person myself... (Dave, you there?). I'll verify the compiler bug exists. However, I'll also point out that csh is still dumping empty core files when coredumpsize is 0. This isn't happening with tcsh though. -Skots -- Scott G. Akmentins-Taylor InterNet: staylor@mrynet.com MRY Systems staylor@mrynet.lv (Skots Gregorijs Akmentins-Teilors -- just call me "Skots") ----- Labak miris neka sarkans ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message