internal compiler error: in emit_swap_insn, at reg-stack.c:827

G

Gautam Bajaj

Hi ,
I'm doing gcc440 porting & facing the below compilation issue. Can
anyone help please & advice on how to fix it quickly?
#############################################################
Compiling C++ file pkgCore/pkgPoint.cc (optimize)
pkgCore/pkgPoint.cc: In function 'void pntL2G(pkgPoint*, pkgPoint*,
pkgPoint*)':
pkgCore/pkgPoint.cc:161: internal compiler error: in emit_swap_insn,
at reg-stack.c:827
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Preprocessed source stored into /tmp/ccvQZLKa.out file, please attach
this to your bugreport.
Compile pkgCore/pkgPoint.cc failed
gmake: *** [../../../obj/linux-x86/optimize/pkg/pkgCore/pkgPoint.o]
Error 1
#############################################################################

The contents of pntL2G function s :
***************************************************************************************************************
void pntL2G(pkgPoint *pntNormal, pkgPoint *pntRef, pkgPoint *pnt) {
double x, y, z;
SIDE pkgSide;
if(pntNormal->y() == -1)
pkgSide = LOWER;
else if(pntNormal->y() == 1)
pkgSide = UPPER;
else if(pntNormal->x() == -1)
pkgSide = LEFT;
else if(pntNormal->x() == 1)
pkgSide = RIGHT;

switch (pkgSide) {
case LOWER:
x = pntRef->x() + pnt->x();
y = pntRef->y() + pnt->y();
z = pnt->z();
break;
case UPPER:
x = pntRef->x() - pnt->x();
y = pntRef->y() - pnt->y();
z = pnt->z();
break;
case LEFT:
x = pntRef->x() + pnt->y();
y = pntRef->y() - pnt->x();
z = pnt->z();
break;
case RIGHT:
x = pntRef->x() - pnt->y();
y = pntRef->y() + pnt->x();
z = pnt->z();
break;
default:
fprintf(stderr, "unknow option\n");
break;
}

pnt->SetX(x);
pnt->SetY(y);
pnt->SetZ(z);
}
************************************************************************************************
 
M

Michael Tsang

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gautam said:
Hi ,
I'm doing gcc440 porting & facing the below compilation issue. Can
anyone help please & advice on how to fix it quickly?
#############################################################
Compiling C++ file pkgCore/pkgPoint.cc (optimize)
pkgCore/pkgPoint.cc: In function 'void pntL2G(pkgPoint*, pkgPoint*,
pkgPoint*)':
pkgCore/pkgPoint.cc:161: internal compiler error: in emit_swap_insn,
at reg-stack.c:827
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Preprocessed source stored into /tmp/ccvQZLKa.out file, please attach
this to your bugreport.
Compile pkgCore/pkgPoint.cc failed
gmake: *** [../../../obj/linux-x86/optimize/pkg/pkgCore/pkgPoint.o]
Error 1
#############################################################################

The compiler should not abort with this kind of error. FILE A BUG REPORT
before doing anything on the source.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAksnV4MACgkQG6NzcAXitM+niwCfdYwFnCS3Jq6ZVOnWHYmuPamO
KsQAn2fyPfc+BihTjK9jDi9g0xJ1+scp
=4tHm
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top