Skip to content
Tcl Source Code Artifact [cb95468c38]
Login

Artifact [cb95468c38]

Artifact cb95468c3808c65f1a32e8e711e1f7eb400aa066:

Ticket change [cb95468c38] - Ticket [3601804fffffffff|3601804fff] <i>platformCPUID segmentation fault on Darwin</i> status still Open with 4 other changes by nijtmans on 2013-01-27 04:03:43.
D 2013-01-27T04:03:43
J icomment >\sWhy\sis\sit\sneeded\sat\sall?\nIt\scould\sbe\sneeded\sby\sany\scode\swhich\swants\sto\sdetect\swhat\nkind\sof\sprocessor\sthe\ssystem\shas.\sCurrently,\sonly\s"clock"\sis\nusing\sit\son\sWindows,\sbut\sany\splatform\scould\suse\sit,\sprovided\nthe\sprocessor\sis\sIntel-compatible.\sSee\salso\sTIP\s#377,\swhich\nwas\srejected\sat\sthat\stime,\sbut\sit\scould\seasily\sbe\simplemented\nfor\sIntel\sbased\son\scpuid.\n>\sI\sthink\sconfigure.in\sneeds\sto\sbe\supdated\sas\swell.\nNo,\sthe\sproblem\shere\scan\sonly\sbe\sdetected\sat\srun-time,\nand\s"configure"\sdoesn't\srun\sthe\scode.\sSo\sthere\sis\nno\sway\sconfigure\scould\sdetect\sthis.\n>Shouldn't\sthis\scode\sbe\sifdef'ed\sout\s...\nYes,\sit\sshould\sbe\sifdefed\sout\sif\sthe\sprocessor\sis\snot\nIntel,\sthat's\sexactly\swhat\s"configure"\sdoes.\n\nThe\sproblem\sthat\spouryorick\sfound\shas\sno\nrelation\swith\scpuid,\sit's\sthe\scode\sthat\sgcc\ngenerates\saround\sit\swhich\sis\sproblematic.\nThe\scompiler\soption\s-fPIC\sneeds\sa\sspecial\nregister,\sand\swhen\scpuid\suses\sthe\ssame\nregister,\sthat's\sthe\sproblem\sthat\sneeds\sto\nbe\sworked\saround.\sWithout\s-fPIC\sit\swould\nwork\sfine\swithout\sany\sof\sthose\stricks.\n\nSo,\sI'\sglad\sthat\sthis\sis\sfixed\snow.\sCase\sclosed.\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3601804fffffffffffffffffffffffffffffffff
U nijtmans
Z 73e30c424d398e9edfdd564dcc2a3561