[Tinymux] TinyMUX26 Compile Errors
Stephen Dennis
brazilofmux at gmail.com
Fri Feb 17 13:34:17 EST 2006
Commands for general machine info:
uname -a
gcc --version
But, the patch I provided is a workaround. Since Robby mentioned that
FLT_ROUNDS is sometimes a function, I've reverted the change in the
cvs sources, so the work around will also appear in the next release
of TinyMUX 2.6.
Brazil
On 2/15/06, Worldgate <worldgate at amber.org.uk> wrote:
> Im not sure as to what the machine has, if there some commands i can
> run to gather intel... info i mean, let me know and ill do it. im
> using a account on amber.org.uk.
>
> At 02:06 PM 2/14/2006, you wrote:
> >The following patch backs out the change to Flt_Rounds. This change
> >was added to avoid a compiler warning about (Flt_Rounds == 1) always
> >being true, but I'm still trying to understand why the fix for that
> >warning is now generate the error 'missing binary operator before
> >token "("' on your machine.
> >
> >What kind of machine is it? What version of gcc/g++ are you using?
> >
> >Brazil
> >
> >--- strtod.cpp 11 Jan 2006 00:50:01 -0000 1.20
> >+++ strtod.cpp 10 Jan 2006 03:46:33 -0000 1.19
> >@@ -1569,8 +1569,13 @@
> > dval(rv) = tens[k - 9] * dval(rv) + z;
> > }
> > bd0 = 0;
> >-#if defined(RND_PROQUOT) || defined(Honor_FLT_ROUNDS) || Flt_Rounds == 1
> >- if (nd <= DBL_DIG)
> >+ if (nd <= DBL_DIG
> >+#ifndef RND_PRODQUOT
> >+#ifndef Honor_FLT_ROUNDS
> >+ && Flt_Rounds == 1
> >+#endif
> >+#endif
> >+ )
> > {
> > if (!e)
> > {
> >@@ -1646,7 +1651,6 @@
> > }
> > #endif
> > }
> >-#endif
> > e1 += nd - k;
> >
> > #ifdef IEEE_Arith
> >@@ -2256,8 +2260,11 @@
> > case 3: /* towards -infinity */
> > aadj1 += 0.5;
> > }
> >-#elif Flt_Rounds == 0
> >- aadj1 += 0.5;
> >+#else
> >+ if (Flt_Rounds == 0)
> >+ {
> >+ aadj1 += 0.5;
> >+ }
> > #endif /*Check_FLT_ROUNDS*/
> > }
> > y = word0(rv) & Exp_mask;
> >_______________________________________________
> >Tinymux mailing list
> >Tinymux at tinymux.org
> >http://www.tinymux.org/mailman/listinfo/tinymux
>
> _______________________________________________
> Tinymux mailing list
> Tinymux at tinymux.org
> http://www.tinymux.org/mailman/listinfo/tinymux
>
More information about the Tinymux
mailing list