Remove workarounds to old GCC bugs we had encountered on IRIX

The check is bogus anyway. It was bogus when it was added. The bug is
not because of "GCC on IRIX", it's simply a GCC bug and was probably
tied to some GCC versions. It should have been reported and followed up.

I don't even remember what GCC versions we had on the IRIX machines
(plastkrakk, I can't remember the other two machine names). But I could
bet they were GCC 3.4 or 4.0.

Change-Id: I84ce4e1ad68bb0520b63c210f841e0c604dbd03a
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
Thiago Macieira 2013-08-26 17:03:58 -07:00 committed by The Qt Project
parent 0f8d8f4127
commit b4de54fcef
2 changed files with 0 additions and 30 deletions

View File

@ -1064,15 +1064,7 @@ static Bigint *pow5mult(Bigint *b, int k)
static const int p05[3] = { 5, 25, 125 }; static const int p05[3] = { 5, 25, 125 };
if ((i = k & 3) != 0) if ((i = k & 3) != 0)
#if defined(Q_OS_IRIX) && defined(Q_CC_GNU)
{
// work around a bug on 64 bit IRIX gcc
int *p = (int *) p05;
b = multadd(b, p[i-1], 0);
}
#else
b = multadd(b, p05[i-1], 0); b = multadd(b, p05[i-1], 0);
#endif
if (!(k >>= 2)) if (!(k >>= 2))
return b; return b;
@ -1666,15 +1658,7 @@ Q_CORE_EXPORT double qstrtod(const char *s00, const char **se, bool *ok)
k = nd < DBL_DIG + 1 ? nd : DBL_DIG + 1; k = nd < DBL_DIG + 1 ? nd : DBL_DIG + 1;
rv = y; rv = y;
if (k > 9) if (k > 9)
#if defined(Q_OS_IRIX) && defined(Q_CC_GNU)
{
// work around a bug on 64 bit IRIX gcc
double *t = (double *) tens;
rv = t[k - 9] * rv + z;
}
#else
rv = tens[k - 9] * rv + z; rv = tens[k - 9] * rv + z;
#endif
bd0 = 0; bd0 = 0;
if (nd <= DBL_DIG if (nd <= DBL_DIG
@ -2570,13 +2554,7 @@ static char *_qdtoa( NEEDS_VOLATILE double d, int mode, int ndigits, int *decpt,
else { else {
#endif #endif
/* Generate ilim digits, then fix them up. */ /* Generate ilim digits, then fix them up. */
#if defined(Q_OS_IRIX) && defined(Q_CC_GNU)
// work around a bug on 64 bit IRIX gcc
double *t = (double *) tens;
eps *= t[ilim-1];
#else
eps *= tens[ilim-1]; eps *= tens[ilim-1];
#endif
for(i = 1;; i++, d *= 10.) { for(i = 1;; i++, d *= 10.) {
L = Long(d); L = Long(d);
d -= L; d -= L;

View File

@ -1042,18 +1042,10 @@ bool QFtpPI::processReply()
if (static_cast<signed char>(replyCode[0]) < 0 || replyCode[0] > 5) if (static_cast<signed char>(replyCode[0]) < 0 || replyCode[0] > 5)
state = Failure; state = Failure;
else else
#if defined(Q_OS_IRIX) && defined(Q_CC_GNU)
{
// work around a crash on 64 bit gcc IRIX
State *t = (State *) table;
state = t[replyCode[0] - 1];
}
#else
if (replyCodeInt == 202) if (replyCodeInt == 202)
state = Failure; state = Failure;
else else
state = table[replyCode[0] - 1]; state = table[replyCode[0] - 1];
#endif
break; break;
default: default:
// ignore unrequested message // ignore unrequested message