Article View: gnu.gcc.help
Article #631Problem compiling GCC on 386 machine
From: Oisin Hurley
Date: Tue, 12 Mar 1991 20:22
Date: Tue, 12 Mar 1991 20:22
43 lines
1872 bytes
1872 bytes
I'm trying to compile GCC 1.37.1 on a 386 with no 387. The Unix is
Interactive's product. A certain piece of code causes my compiler to dump
out with the message:
Fatal error in /lib/comp
Status 0213
here's the offending bit of code, with the problem line pointed out -- it
actually happens somewhere after the (double) in the text expansion of
the HIGH_BIT_COEFF constant:
#ifdef L_fixunsdfsi
#define HIGH_BIT_INT_COEFF (1 << (BITS_PER_WORD - 1))
#define HIGH_BIT_COEFF (2 * (double) (1 << (BITS_PER_WORD - 2)))
SItype
__fixunsdfsi (a)
double a;
{
if (a < HIGH_BIT_COEFF) <-------- HERE'S WHERE IT HAPPENS
return (SItype)a;
/* Convert large positive numbers to smaller ones,
then increase again after you have a fixed point number. */
else
return ((SItype) (a - HIGH_BIT_COEFF)) + HIGH_BIT_INT_COEFF;
}
#endif
Ok, I realise this is a problem with the compiler I'm using and I need to
get a proper compiler etc (that's why I'm trying to use gcc :-) but it would
be *GREATLY* appreciated if somebody could email me and tell me WHAT could
have caused this and is there a workaround, or what - I've a good idea
that it has something to do with the target machine supposing to have a 387
but is there any way that this assumption can be turned off?
thanks in advance
Oisin
- Oisin Hurley
- Dept of Computer Science, Trinity College, Dublin 2, Ireland
--EMAIL: ombhurley@cs.tcd.ie
Technical Details
Message-ID:
<1991Mar12.202245.18197@cs.tcd.ie>Path:
arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!utgpu!watserv1!watmath!uunet!mcsun!ukc!tcdcs!bofin!ohurleyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!utgpu!watserv1!watmath!uunet!mcsun!ukc!tcdcs!bofin!ohurley From: ohurley@cs.tcd.ie (Oisin Hurley) Newsgroups: gnu.gcc.help,comp.unix.sysv386 Subject: Problem compiling GCC on 386 machine Keywords: GCC 386 Message-ID: <1991Mar12.202245.18197@cs.tcd.ie> Date: 12 Mar 91 20:22:45 GMT Organization: DSG, Dept. of Comp. Sci., Trinity College, Dublin. Lines: 43