From owner-freebsd-questions Tue Jul 15 07:57:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA02254 for questions-outgoing; Tue, 15 Jul 1997 07:57:53 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA02247 for ; Tue, 15 Jul 1997 07:57:50 -0700 (PDT) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id QAA24512; Tue, 15 Jul 1997 16:58:15 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id QAA17499; Tue, 15 Jul 1997 16:59:48 +0200 (MEST) Message-ID: <19970715165948.08825@gil.physik.rwth-aachen.de> Date: Tue, 15 Jul 1997 16:59:48 +0200 From: Christoph Kukulies To: "M. L. Dodson" Cc: freebsd-questions@freefall.FreeBSD.org, kuku@gilberto.physik.rwth-aachen.de Subject: Re: should I report a cc1 internal compiler error? References: <199707151403.JAA08521@beowulf.utmb.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.75e In-Reply-To: <199707151403.JAA08521@beowulf.utmb.edu>; from "M. L. Dodson" on Tue, Jul 15, 1997 at 09:03:44AM -0500 Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, Jul 15, 1997 at 09:03:44AM -0500, M. L. Dodson wrote: > > Maybe, but first make sure you haven't gotten a pointer pointing > wildly out of range in your assembly code. You might try including It's during compilation cc -c file.c, not a run time sig11 of the program. > the code fragment causing the sig11 in a post. It's (sure a bad example of programming practice) the following code snippet which emerged after modifying an example (a question) posted in another maillist. multiply(char c) { short int r; asm volatile (" movb $2,%%eax imulb %0 movw %%eax,%1" : "=1" (r) : "0" (c) : "eax" ); return r; } The crucial point is the char c in the parameter list causing the FreeBSD cc1 to sig11. > > Please note that this question might be better targeted to a C/Assembler > mailing list/newsgroup. > > Bud Dodson > > > > > > > While experimenting with some inline asm statements > > I caused an internal compiler error: > > > > cc: Internal compiler error: program cc1 got fatal signal 11 > > > > Should I report this to the gnu-cc list? > > > > -- > > Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de > > > > -- > M. L. Dodson bdodson@scms.utmb.edu > 409-772-2178 FAX: 409-772-1790 -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de