.
D 2011-08-12T16:09:03
J assignee dgp
J cmimetype text/plain
J comment Tcl\sfails\swhen\sbuild\swith\snatice\ssolaris\sstudio\scc\sunder\ssparc\ssolaris\s10.\sCompiler\soptimzation\sbreaks\stclUtil.c:TclFormatInt.\n\nIndicator:\stests\sfail.\sSimple\stestcase\s'format\s%d\s0x80000000'\s->\s-s\sOOPS??\n\nThe\sfollowing\spatch\ssolves\sthe\sissue:\n\nin\stclUtils.c:TclFormatInt\schange\sthe\scode\safter\sthe\scomment\n\n\s\s\s\s/*\n\s\s\s\s\s*\sCheck\swhether\s"n"\sis\sthe\smaximum\snegative\svalue.\sThis\sis\n\s\s\s\s\s*\s-2^(m-1)\sfor\san\sm-bit\sword,\sand\shas\sno\spositive\sequivalent;\n\s\s\s\s\s*\snegating\sit\sproduces\sthe\ssame\svalue.\n\s\s\s\s\s*/\n\nold:\n\s\s\s\sif\s(n\s==\s-n)\s{\nreturn\ssprintf(buffer,\s"%ld",\sn);\n\s\s\s\s}\n\nNEW:\n\s\s\s\sintVal\s=\s-n;\n\s\s\s\sif\s(n\s==\s-n\s||\sintVal\s==\sn)\s{\nreturn\ssprintf(buffer,\s"%ld",\sn);\n\s\s\s\s}\n\nMy\sConfiguration\s(no\sgcc\sin\spath!):\nssol10%\secho\s$path\n/usr2/gnu/bin\s/usr2/scripts\s/usr/bin\s/sbin\s/usr/sbin\s/usr/ccs/bin\s/usr/bin/X11\s/usr/bin\s/usr/openwin/bin\s/usr/dt/bin\nssol10%\s../unix/configure\s--prefix=/usr2/gnu\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter wkechel
J subsystem 48.\sNumber\sHandling
J title Tcl\sfailes\ssparc\ssolaris\s10\swith\snative\scc
J type Bug
K 3390638fffffffffffffffffffffffffffffffff
U wkechel
Z cdfe30eb09f02509d72d1d1cdfd96e94