Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Drew Ronneberg <drew@grieg.Princeton.EDU>
Subject: gcc optimizations cause compile error (SIG 6) in attached program
Date: Wed, 14 May 1997 10:11:24 -0400 (EDT)	[thread overview]
Message-ID: <Pine.SGI.3.95.970514095916.10629A-100000@grieg.Princeton.EDU> (raw)

The following minimal program will compile fine with no optimizations, but
will fail with optimiations O, O2 and O3 with the message. 

gcc: Internal compiler error: program cc1 got fatal signal 6

I have a Redhat 4.1 installization.
gcc 2.7.2.1-2
kernel 2.0.30

compiled with gcc -Wall -O -c test.c

Is this a known bug with gcc ?

Drew
drew@grieg.princeton.edu

-----program------

#define IMGSIZ 256

void write_image_bin(double **image);

void write_image_bin(double **image) {

  int imageint2[IMGSIZ][IMGSIZ];
  int j, k;
  
   for (j=0;j<IMGSIZ;j++){
        for(k=0;k<IMGSIZ;k++){
            imageint2[k][j]=(int)image[j][k];
        }
    }
}

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-05-14 14:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-14 14:11 Drew Ronneberg [this message]
1997-05-14 14:49 ` gcc optimizations cause compile error (SIG 6) in attached program Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox