.
D 2007-08-24T09:10:50
J assignee msofer
J cmimetype text/plain
J comment When\scompiling\stcl\swith\sthe\sintel\scompiler\s(icc\s10.0\s20070426\s-\sx386,\slinux)\sand\soptimisation\senabled,\sthe\sresulting\sexecutable\ssegfaults.\sThe\sissue\sis\sin\sthe\sfile\sgeneric/tclCompile.c,\sfunction\sTclFixupForwardJump.\n\nWhat\sthe\scompiler\sapparently\sdoes\snot\sunderstand/screws\sup\sin\soptimisation\sis\sthe\sloop\n\nfor\s(numBytes\s=\senvPtr->codeNext-jumpPc-2,\sp\s=\sjumpPc+2+numBytes-1;\n\s\s\s\s\snumBytes\s>\s0;\s\snumBytes--,\sp--)\s{\n\sp[3]\s=\sp[0];\n}\n\nChanging\sp\sto\s'volatile'\ssolves\sthe\sproblem\s-\se.g.\schanging\sthe\sline\n\nunsigned\schar*\sjumpPc,p;\n\nto\n\nunsigned\schar*\sjumpPc;\nvolatile\sunsigned\schar*\sp;\n\nIt\swould\sbe\sgreat,\sif\sthe\sabove\swould\snot\sbe\sdismissed\sas\sa\s'compiler\sissue'.\sI\sthink\sthe\sbest\ssolution\swould\sbe\sif\ssomeone\swho\sis\sfamiliar\swith\sthe\scode\scould\sconvert\sthe\sloop\sinto\sa\scall\sto\smemmove\s(assuming\sthat\scall\sis\savailable\son\smost\splatforms)?\n
J foundin obsolete:\s8.4.15
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 47.\sBytecode\sCompiler
J title tcl\ssegfaults\swhen\susing\sintel\scompiler
J type Bug
K 1780870fffffffffffffffffffffffffffffffff
U nobody
Z 1d84c94966b8a0b8fc46b67bdcae88b5