Skip to content
Tcl Source Code Artifact [5531a40ed9]
Login

Artifact [5531a40ed9]

Artifact 5531a40ed98d263837633df4d165f9818c4730ff:

Ticket change [5531a40ed9] - Ticket [1195167fffffffff|1195167fff] <i>strtod() gets compiled into fixstrtod()</i> status still Open with 8 other changes by dgp on 2017-03-31 16:45:43.
D 2017-03-31T16:45:43.497
J assignee dgp
J closer nobody
J comment I\scross-compile\sthe\slatest\stcl8.4.9\ssource\scode\son\sa\s\r\nLinux\sx86\splatform\stargetting\san\sembedded\sPowerPC\s\r\n60x\srunning\sLinux.\sThe\sconfigure\sscript\sdetermines\sthat\s\r\nthe\sstrtod()\sfunction\sneeds\sto\sbe\sbuild\sfor\sthis\splatform,\s\r\nand\sfor\ssome\sreason\sit\salso\sdetermines\sthat\sthe\sfixstrtod\r\n()\sfunction\sneed\sto\sbe\sbuild\sas\swell.\r\nBecause\sof\sthe\sneed\sfor\sfixstrtod(),\sthe\sbuild\sscript\sadds\s\r\nthe\scompiler\sswitch\s-Dstdtod=fixstrtod\sto\sgcc.\sBut\sthis\s\r\ncauses\sboth\sstrtod()\s(compat/strtod.c)\sand\sfixstrtod()\s\r\n(compat/fixstrtod.c)\sto\sbe\scompiled\sinto\sthe\ssingle\s\r\nfunction\sfixstrtod().\s(compat/fixstrtod.c\scontains\s\r\nan\s"#undef\sstrtod"\sto\sundo\sthis\sdefine\slocally,\sbut\s\r\ncompat/strtod.c\sdoes\snot).\sSince\sfixstrtod()\sreferences\s\r\nstrtod(),\ssubsequent\slinking\sfails.\r\nAdding\s"#undef\sstdtod"\sto\scompat/strtod.c\sas\swell\s\r\nsolves\sthe\sproblem.
J icomment \r\nThis\sappears\sto\sbe\sthe\slast\sOpen\sticket\sthat\r\nstill\stouches\son\sthe\s"fixstrtod"\sissue.\r\n\r\nTcl\sno\slonger\suses\sthe\sstrtod()\sroutine\sanywhere.\r\nIt\scan\sno\slonger\ssuffer\sbecause\sof\sany\sbrokenness\r\nin\sany\ssystem\sstrtod()\sroutine.\r\n\r\nIn\sat\sleast\sTcl\s8.7\sand\slater,\swe\sshould\spurge\sTcl's\r\nbuild\smachinery\sof\sall\scrutches,\spatches\sand\sother\r\nheroism\sdedicated\sto\ssolving\sa\sproblem\swhich\shas\r\nnot\sexisted\sfor\syears.\s\sThe\ssolution\sis\snow\sfar\r\nmore\sdamaging,\stripping\sup\scross-compile\sefforts.
J login dgp
J mimetype text/plain
J priority 8
J severity Minor
K 1195167fffffffffffffffffffffffffffffffff
U dgp
Z b0b823891a0adb51e273ad581634435d