c/4471: Bad code generation on Solaris 8 by gcc 3.0.1

Glenn Chambers gchamber@bright.net
Thu Feb 28 02:20:00 GMT 2002


The bug still exists im 3.0.4 as bootstrapped by 3.0.1.  I do not have a 
machine where I can test the 3.1 branch.

Adding the following text to the cg_cast.i file converts it to a  
simple  link test.  If the program links, the bug has not triggered.  
As  wth 3.0.1, compiling at -O2 fails and compiling at the default 
optimization level succeeds.

Glenn Chambers
Toledo, OH

int ILDecimalFromDouble(ILDecimal *value, ILDouble floatValue) {}
int ILDecimalFromFloat(ILDecimal *value, ILFloat floatValue) {}
void ILDecimalFromInt32(ILDecimal *value, ILInt32 intValue) {}
void ILDecimalFromInt64(ILDecimal *value, ILInt64 intValue) {}
void ILDecimalFromUInt32(ILDecimal *value, ILUInt32 intValue) {}
void ILDecimalFromUInt64(ILDecimal *value, ILUInt64 intValue) {}
int ILDecimalIsZero(const ILDecimal *value) {}
ILDouble ILDecimalToDouble(const ILDecimal *value) {}
ILFloat ILDecimalToFloat(const ILDecimal *value) {}
int ILDecimalToInt64(const ILDecimal *value, ILInt64 *intValue) {}
int ILDecimalToUInt64(const ILDecimal *value, ILUInt64 *intValue) {}
void ILDecimalTruncate(ILDecimal *result, const ILDecimal *value) {}
void ILGenCallByName(ILGenInfo *info, const char *name) {}
void ILGenInt32(ILGenInfo *info, ILInt32 value) {}
void ILGenJump(ILGenInfo *info, int opcode, ILLabel *label) {}
void ILGenLabel(ILGenInfo *info, ILLabel *label) {}
void ILGenLoadFloat32(ILGenInfo *info, ILFloat value) {}
void ILGenNewObj(ILGenInfo *info, const char *className,
                       const char *signature) {}
void ILGenSimple(ILGenInfo *info, int opcode) {}
void ILGenUInt64(ILGenInfo *info, ILUInt64 value) {}

int main(int argc, char *argv) {
}



More information about the Gcc-bugs mailing list