Artifacts Associated With Ticket 3545875fffffffff
Ticket change [99e69c926f] (rid 110870) by dgp on 2012-07-19 13:37:35:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Forwarded from Gustaf Neumann: % clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:727:22: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] esPtr->tosPtr = &esPtr->stackWords[-1]; ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:939:31: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] currElems = esPtr->endPtr - &esPtr->stackWords[-1]; ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:940:45: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] if (esPtr->markerPtr || (esPtr->tosPtr != &esPtr->stackWords[-1])) { ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:952:31: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] currElems = esPtr->endPtr - &esPtr->stackWords[-1]; ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:1094:22: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] esPtr->tosPtr = &esPtr->stackWords[-1]; ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ 5 warnings generated. If there's a sensible way to make the code better without negative indexing, it will quiet the compiler. Not urgent. - foundin initialized to: "obsolete: 8.5.12"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "Mac OSX clang compiler warning"
- type initialized to: "Bug"
Ticket change [e15166be82] (rid 203127) by chrstphrchvz on 2022-08-19 08:52:01:
- closedate changed to: "2459810.86945867"
- closer changed to: "chrstphrchvz"
- comment changed to:
Forwarded from Gustaf Neumann: % clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:727:22: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] esPtr->tosPtr = &esPtr->stackWords[-1]; ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:939:31: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] currElems = esPtr->endPtr - &esPtr->stackWords[-1]; ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:940:45: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] if (esPtr->markerPtr || (esPtr->tosPtr != &esPtr->stackWords[-1])) { ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:952:31: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] currElems = esPtr->endPtr - &esPtr->stackWords[-1]; ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ /usr/local/src/tcl8.5.12/unix/../generic/tclExecute.c:1094:22: warning: array index of '-1' indexes before the beginning of the array [-Warray-bounds] esPtr->tosPtr = &esPtr->stackWords[-1]; ^ ~~ /usr/local/src/tcl8.5.12/unix/../generic/tclInt.h:1319:5: note: array 'stackWords' declared here Tcl_Obj *stackWords[1]; ^ 5 warnings generated. If there's a sensible way to make the code better without negative indexing, it will quiet the compiler. Not urgent. - icomment:
Closing: this was ultimately addressed by [49a45d782ef9] for 8.5 and by [f5a69fee4db2] for 8.6.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"