Artifacts Associated With Ticket 961657ffffffffffffffffffffffffffffffffff
Ticket change [cc75f53fc9] (rid 95705) by techentin on 2004-05-27 15:52:24:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I compiled Tcl 8.4.6 on HP-UX 11.0 with the +DD64 switch, and got warnings about truncating pointers to 32 bit integers. It passes the test suite, and seems to work. But here are the warnings. cc: "../generic/regcomp.c", line 2171: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclCompExpr.c", line 444: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclEncoding.c", line 2351: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclEncoding.c", line 2577: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclHash.c", line 310: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclHash.c", line 322: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclHash.c", line 334: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclHash.c", line 408: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclHash.c", line 420: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclHash.c", line 433: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclHash.c", line 537: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclHash.c", line 1172: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclIO.c", line 8839: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclIO.c", line 8839: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclTimer.c", line 533: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclVar.c", line 406: warning 727: Cast truncates pointer into 32 bit integer. cc: "../generic/tclVar.c", line 5030: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixChan.c", line 1887: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixChan.c", line 2804: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixChan.c", line 3101: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 115: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 328: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 434: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 487: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 649: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 734: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 736: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 738: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 836: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 848: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 956: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1016: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1064: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1105: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1109: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1115: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1119: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1151: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1155: warning 727: Cast truncates pointer into 32 bit integer. cc: "../unix/tclUnixPipe.c", line 1186: warning 727: Cast truncates pointer into 32 bit integer. CVS Head seems to get all these same warnings (many with different line numbers), plus two more in tclExecute.c at lines 1548 and 4827. The CVS Head build fails to execute this code in the interpreter.. mynock> ./tclsh % proc a {} {foreach a {1 2 3} b {4 5 6} {puts "$a $b"}} % a can't read "b": no such variable - foundin initialized to: "obsolete: 8.4.6"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "techentin"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "64 Bit Compile Warnings on HP-UX"
- type initialized to: "Bug"
Ticket change [b4aebf6e5b] (rid 125086) by hobbs on 2004-05-27 23:23:35:
- closedate changed to: "2004-05-27T16:23:35"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 While I get compile warnings, I cannot reproduce the script failure on 8.5a2 or 8.4-branch for HP 11 64-bit. bertha [~/build/tcl85-64] 25 > make shell % head config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.57. Invocation command line was $ /home/jeffh/cvs/tcl/tcl8.head/unix/configure --prefix=/home/jeffh/install --exec-prefix=/home/jeffh/install/hpux-parisc --enable-64bit ## --------- ## ## Platform. ## % uname -a HP-UX bertha B.11.00 U 9000/800 136901587 unlimited-user license % proc a {} {foreach a {1 2 3} b {4 5 6} {puts "$a $b"}} % a 1 4 2 5 3 6 % info patchlevel 8.5a2 - login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [25f263b685] (rid 88250) by msofer on 2004-05-28 03:37:54:
- icomment:
Logged In: YES user_id=148712 Fixing the warnings in tclExecute.c and tclVar.c - now using ptrdiff_t instead of int. Only in HEAD till I find out the 100% correct header magic, will be backported to tclVar.c in 8.4-core. In all those cases, the warnings came while retrieving an int which has stored in a pointer variable; the operation itself is safe as long as sizeof(int) <= sizeof(void *) but the compiler warns of precision loss if they're not equal. Should be ok in those two files now.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment: