From owner-freebsd-hackers Mon Mar 3 06:21:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA02583 for hackers-outgoing; Mon, 3 Mar 1997 06:21:10 -0800 (PST) Received: from relay1.fnet.fr (relay1.fnet.fr [192.134.192.129]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id GAA02528 for ; Mon, 3 Mar 1997 06:20:58 -0800 (PST) Received: by relay1.fnet.fr (5.65c8d/96.05.03) via EUnet-France id AA03422; Mon, 3 Mar 1997 15:19:34 +0100 (MET) Received: from halles.ilog.fr (halles [192.31.27.96]) by ilog.ilog.fr (8.8.5/8.7.3) with ESMTP id PAA11614; Mon, 3 Mar 1997 15:18:31 +0100 (MET) From: Bruno Haible Received: (from haible@localhost) by halles.ilog.fr (8.8.5/8.8.5) id PAA27039; Mon, 3 Mar 1997 15:18:27 +0100 (MET) Date: Mon, 3 Mar 1997 15:18:27 +0100 (MET) Message-Id: <199703031418.PAA27039@halles.ilog.fr> To: Thomas Sparrevohn Subject: Re: internal compiler error Cc: bug-g++@prep.ai.mit.edu, Nate Williams , Josh MacDonald , freebsd-hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi there, Thank you for your GNU g++ bug report from 17 May 1996. The current g++ release, g++ 2.7.2, compiles your code snippet without errors, with optimization settings ranging from -O0 to -O3. Thank you again! Bruno Haible ----------------------------------------------------------------------- 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: 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 >