Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 1997 15:18:27 +0100 (MET)
From:      Bruno Haible <haible@ilog.fr>
To:        Thomas Sparrevohn <staff@kyklopen.ping.dk>
Cc:        bug-g++@prep.ai.mit.edu, Nate Williams <nate@sri.mt.net>, Josh MacDonald <jmacd@cs.berkeley.edu>, freebsd-hackers@freebsd.org
Subject:   Re: internal compiler error
Message-ID:  <199703031418.PAA27039@halles.ilog.fr>

next in thread | raw e-mail | index | archive | help

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 <staff@kyklopen.ping.dk>
To: Nate Williams <nate@sri.mt.net>
Cc: Josh MacDonald <jmacd@cs.berkeley.edu>, 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: <Pine.BSF.3.91.960517083854.3405A-100000@kyklopen>

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
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703031418.PAA27039>