From owner-freebsd-current Mon Dec 20 8:33:18 1999 Delivered-To: freebsd-current@freebsd.org Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (Postfix) with ESMTP id 0908F15256 for ; Mon, 20 Dec 1999 08:33:16 -0800 (PST) (envelope-from jwd@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.28]) by lamb.sas.com (8.9.3/8.9.1) with SMTP id LAA02503 for ; Mon, 20 Dec 1999 11:33:15 -0500 (EST) Received: from bb01f39.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA14330; Mon, 20 Dec 1999 11:32:44 -0500 Received: (from jwd@localhost) by bb01f39.unx.sas.com (8.9.1/8.9.1) id LAA01647; Mon, 20 Dec 1999 11:32:44 -0500 (EST) (envelope-from jwd) From: "John W. DeBoskey" Message-Id: <199912201632.LAA01647@bb01f39.unx.sas.com> Subject: cc taking a signal 11 To: freebsd-current@freebsd.org Date: Mon, 20 Dec 1999 11:32:43 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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?). Thanks, John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message