From owner-freebsd-hackers Thu May 16 23:56:09 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA20785 for hackers-outgoing; Thu, 16 May 1996 23:56:09 -0700 (PDT) Received: from uucp.DK.net (uucp@uucp.DK.net [193.88.44.47]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA20761 for ; Thu, 16 May 1996 23:56:06 -0700 (PDT) Received: from pingnet (uucp@localhost) by uucp.DK.net (8.6.12/8.6.12) with UUCP id IAA12717; Fri, 17 May 1996 08:55:57 +0200 Received: from kyklopen by ic1.ic.dk with UUCP id AA15236 (5.65c8/IDA-1.4.4j); Fri, 17 May 1996 08:53:01 +0200 Received: (from staff@localhost) by kyklopen.ping.dk (8.7.5/8.7.3) id IAA03929; Fri, 17 May 1996 08:43:00 +0200 (MET DST) Date: Fri, 17 May 1996 08:42:59 +0200 (MET DST) From: Thomas Sparrevohn To: Nate Williams Cc: Josh MacDonald , bug-g++@prep.ai.mit.edu, freebsd-hackers@FreeBSD.org Subject: Re: internal compiler error In-Reply-To: <199605161430.IAA22882@rocky.sri.MT.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Charset: ISO_8859-1 X-Char-Esc: 29 Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 16 May 1996, Nate Williams wrote: > > Hmm, it works fine under -stable with 2.6.3. > But unfortunately our gcc gives an internal error when it compiles the following program with "-O" and "-O2" but not "-O3" and with out optimizations: /* * Compilation of the following program with gcc -O (v2.6.3 on FreeBSD 2.1.0) * and (v2.6.3 current) yields: * * gcc: Internal compiler error: program cc1 got fatal signal 10 * */ struct s1 { double x, y, z; }; struct s2 { double r, g, b; }; struct s3 { struct s1 p; struct s2 c; }; void create_light(struct s3 *li, double x, double y, double z, double r, double g, double b) { li->p.x = x; li->p.y = y; li->p.z = z; li->c.r = r; li->c.g = g; li->c.b = b; } > #cheap shot on# > This is one of the reasons why we stick w/older versions of GCC. :) > #cheap shot off# > > > Nate >