Skip to content
Tcl Source Code Artifact [49d9017bfc]
Login

Artifact [49d9017bfc]

Artifact 49d9017bfc7a5ba05d1b810e985960c2fa09a0c8a9ef4d7581d11c1d98c0321f:

Ticket change [49d9017bfc] - Ticket [713653b951c625ef|713653b951] <i>Floating point precision problems on x86 musl</i> status still Open with 3 other changes by rubicon on 2022-07-15 04:22:53.
D 2022-07-15T04:22:53.969
J icomment I'll\stry\sto\sanswer\sthe\squestions\sas\sbest\sas\sI\scan,\sbut\sas\sI\sam\sa\slittle\sunder\sthe\sweather\stoday,\sI\smay\sbe\sa\sbit\sslow.\r\n\r\n>\swhat\scompiler\sis\sthis?\r\n\r\nGCC\s11.2.1\r\n\r\n>\sAre\syou\schanging\soptimization\sflags\r\n\r\nAlpine\sLinux's\sbuild\ssystem\ssets\sthe\sfollowing\senvironment\svariables\s(\sfrom\shttps://git.alpinelinux.org/abuild/tree/abuild.conf\s):\r\n\r\nexport\sCFLAGS="-Os\s-fomit-frame-pointer"\r\nexport\sCXXFLAGS="$CFLAGS"\r\nexport\sCPPFLAGS="$CFLAGS"\r\nexport\sLDFLAGS="-Wl,--as-needed,-O1,--sort-common"\r\n\r\n>\sYou\sdid\ssay\sthat\severything\sin\sTcl's\sown\stests\spassed\sbefore\syou\sstarted\sadjusting\sthe\srounding\smodes,\sright?\r\n\r\nSorry\sfor\snot\sclarifying\sthis\sbetter.\r\n\r\nThe\sexpr\stests\s(that\sI\slinked\sto,\sbut\swhich\sis\sno\slonger\sattached\sto\sthis\sbug\sreport)\sfail\swhen\sI\sadjust\sthe\srounding\smodes.\r\n\r\nThe\sexpr-old\sand\sformat\stests\swhich\sare\sstill\sattached\sfail\stogether\swith\sthe\sTcllib\smath\stests.\r\n\r\n>\sI've\snot\sfound\sthat\sto\sbe\snecessary\sat\sthe\s-O2\ssetting\sthat\sTcl\suses\sby\sdefault\r\n\r\nAlpine\suses\s-Os,\sis\sthis\slikely\sthe\ssource\sof\sthe\sproblem?\r\n\r\n>\sthe\snext\sthing\sthat\sI'd\ssuspect\sis\sthat\ssomething\sis\smessed\sup\sin\sthe\sC\slibrary\r\n\r\nThrough\strial\sand\serror\s(as\sI\sam\snot\sa\sC\sprogrammer),\safter\scommenting\sthe\sfollowing\slines\sin\sMakeLowPrecisionDouble:\r\n\r\n\s\s\s\sif\s(significand\s==\s0)\s{\r\n\treturn\scopysign(0.0,\s-signum);\r\n\s\s\s\s}\r\n\r\nBoth\sTcl's\sexpr-old\sand\sformat\stests\sand\sTcllib's\smath\sand\sunits\stests\sall\spass.\r\n\r\nAlpine\sis\snow\susing\smusl\sv1.2.3,\swhich\shas\sthis\simplementation\sof\scopysign:\shttps://git.musl-libc.org/cgit/musl/tree/src/math/copysign.c?h=v1.2.3\r\n\r\n>\sAre\swe\ssure\sthat\s8.6.10\sand\s8.6.11\swere\sbuilt\swith\sthe\ssame\scompiler,\sinclude\sfiles,\ssystem\slibraries\sand\soptimization\sflags?\r\n\r\nI\stested\s8.6.10\sand\s8.6.11\sin\sa\sGitlab\sCI\swithin\sabout\san\shour\sof\seach\sother,\sI\sdon't\sthink\sanything\schanged\swithin\sthat\sshort\speriod\sof\stime.
J login rubicon
J mimetype text/plain
K 713653b951c625ef974f5f06b2e96634ca5fb1f9
U rubicon
Z 43e83e2b10b3d8600708d0a8f44a6acf