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);
}
************************************************************************************************
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);
}
************************************************************************************************