Skip to content
Tcl Source Code History Of Ticket 1571954
Login

History Of Ticket 1571954

Artifacts Associated With Ticket 1571954

  1. Ticket change [5b69dc59e1] (rid 118317) by andersmoe on 2006-10-06 07:29:42:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl version : core-8-4-branch
      makefile.vc version : 1.100.2.9
      generic/tclCompile.h : 1.33
      Compiler : MSVC 8.0
      processor : Xeon 64 EMT64
      Windows XP 64
      
      When running Tcl, I get the following :
      
      ----------------
      Run-Time Check Failure #1 - A cast to a smaller data 
      type has caused a loss
      of data.  If this was intentional, you should mask 
      the source of the cast
      with the appropriate bitmask.  For example:
      
       char c = (i & 0xFF);
      
      Changing the code in this way will not affect the 
      quality of the resulting
      optimized code.
      
      --------------
      
      pointing to  TclStoreInt4AtPtr and similar macros.
      
      the problem seems to disappear if I change, say, 
      TclStoreInt4AtPtr to 
      
      #define TclStoreInt4AtPtr(i, p) \
          *(p)   = (unsigned char) (0xFF & ((unsigned int) 
      (i) >> 24)); \
          *(p+1) = (unsigned char) (0xFF & ((unsigned int) 
      (i) >> 16)); \
          *(p+2) = (unsigned char) (0xFF & ((unsigned int) 
      (i) >>  8)); \
          *(p+3) = (unsigned char) (0xFF & ((unsigned int) 
      (i)))
      
      This also applies to TclEmitInstInt4.
      
      I've attached the tclCompile.h  I ended up with.
      Note that I have not done any testing to smoke out 
      any bugs that may have resulted from the above 
      modifications.
      
      
    4. foundin initialized to: "obsolete: 8.4.14"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "andersmoe"
    10. subsystem initialized to: "52. Portability Support"
    11. title initialized to: "Xeon64 data loss from casting"
    12. type initialized to: "Bug"
  2. Ticket change [fd702f2bc6] (rid 108414) by andersmoe on 2006-10-06 14:29:42:

    1. icomment:
      
      
      File Added - 196838: tclCompile.c
      
      
      
    2. login: "andersmoe"
    3. mimetype: "text/plain"
    4. username: "andersmoe"
  3. Add attachment "tclCompile.c" [8181164b6b] (rid 117048) by andersmoe on 2006-10-06 14:29:42.

  4. Ticket change [566070b2f8] (rid 94305) by andersmoe on 2006-10-06 14:30:07:

    1. assignee changed to: "msofer"
  5. Ticket change [da7bf8a5c5] (rid 107798) by patthoyts on 2006-10-06 18:15:22:

    1. icomment:
      Logged In: YES 
      user_id=202636
      
      This is likely caused by including the /RTCc flag which
      enables this runtime type conversion check. In Tcl this is
      not an error so the solution is to remove this compiler flag
      from makefile.vc. We shall keep /RTC1 which enables runtime
      stack checking and uninitialized variable checking.
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  6. Ticket change [58223f549b] (rid 117750) by patthoyts on 2006-10-06 21:16:15:

    1. closedate changed to: "2006-10-06T14:16:15"
    2. closer changed to: "patthoyts"
    3. icomment:
      Logged In: YES 
      user_id=202636
      
      Committed the removal of /RTCc for Tcl in both HEAD and
      core-8-4-branch. I'll close the bug - please re-open if this
      fails to solve the issue.
      
      
    4. login: "patthoyts"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "patthoyts"