egcc problems ?

Marian Ivanov ivanov@fmph.uniba.sk
Fri Oct 30 10:21:00 GMT 1998


Hi.

I have problems with egcc compiler (the same with g++)

I compile some program.
Program  compiled on Debian 2 machine  crash with
float point exception.
The same program program compiled on debian 1.3 machine is working
properly


So I decided to use -frtti -fhandle-exceptions   options
but I receive folloving errors

 egcc -g -Wall -O -fPIC  -I/include -DR__GLIBC -frtti
-fhandle-exceptions -I/usr/local/pub/root/200-12deb2/include -I. -c
AliRICH.cxx -o AliRICH.o

AliRICH.cxx:96: Internal compiler error.
AliRICH.cxx:96: Please submit a full bug report to
`egcs-bugs@cygnus.com'.



void AliRICH::AddHit(Int_t det, Int_t track, Int_t *vol, Float_t *hits)
{
    switch ((int) hits[0]) {
    case 0:
    {
 TClonesArray &lhits = *fHits;
 new(lhits[fNhits++]) AliHit(fIshunt,det,track);
 AliHit *lhit = (AliHit*) fHits->AddrAt(fNhits-1);
 lhit->fX = hits[19];
 lhit->fY = hits[20];
 lhit->fZ = hits[21];
    } break;
    case 1:
 AddMipHit(det,track,vol,hits);
 break;
    case 2:
 AddCkovHit(det,track,vol,hits);
 break;
    case 3:
 AddPadHit(det,track,vol,hits);
 break;
    case 4:
 UpdateMipHit(hits);
 break;
    default:
 printf("Error: AliRICH::AddHit flag %d not defined./n",(int) hits[0]);
 return;
    }
}  <------this is line 96


            Best regards
                                                                Marian
Ivanov




More information about the Gcc-bugs mailing list