Skip to content
Tcl Source Code History Of Ticket 868467ffffffffff
Login

History Of Ticket 868467ffffffffff

Artifacts Associated With Ticket 868467ffffffffff

  1. Ticket change [db4039b116] (rid 107927) by hinteger on 2003-12-31 15:12:43:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      expr does not deliver correct results for <</>>, if the
      shift count is equal (or greater) the bitcount of an
      integer.
      
      e.g. expr 5>>32 gives 5, instead of expected 0
            expr 5>>33 gives 2, instead of expected 0
      
      Ok, as someone said on clt, this isn't covered in C89
      Standard too, but do we have to stick to faulty
      standards, that were set up years ago.
      
      For implementing shifts of bit fields wider than int,
      this is required to work correctly (ok, I could do
      conditional expr's, but the code gets quite ugly)
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "hinteger"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "<</>> x (x>=bitcount of architecture) is wrong"
    11. type initialized to: "Bug"
  2. Ticket change [d2b8c0627c] (rid 113577) by dkf on 2004-01-01 23:35:50:

    1. assignee changed to: "msofer"
    2. foundin changed to: "obsolete: 8.5a0"
    3. resolution changed to: "Wont Fix"
    4. status changed to: "Pending"
    5. subsystem changed to: "47. Bytecode Compiler"
    6. title changed to: "<</>> x (x>=bitcount of architecture) is wrong"
  3. Ticket change [ce45df6d0d] (rid 96024) by dkf on 2004-01-01 23:35:51:

    1. closedate changed to: "2004-01-01T16:35:51"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Tcl just fires the value off to the C runtime's standard
      shifting mechanism, and always has done AFAICT.  We don't do
      range checks on the shift parameter.  If it is wrong, it's a
      compiler, runtime or processor fault.
      
      Not closing outright as perhaps this is something we could
      check for.  But I'm not inclined to do anything about it.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. username: "dkf"
  4. Ticket change [0e1e1a6da0] (rid 94553) by hinteger on 2004-01-08 05:17:32:

    1. icomment:
      Logged In: YES 
      user_id=124720
      
      Regardless who's to blame for that, the result is not
      correct. I'll take a look at the code and send a patch.
      
      
    2. login: "hinteger"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "hinteger"
  5. Ticket change [786b9a7e60] (rid 89959) by msofer on 2004-01-09 06:02:19:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      assigning to knowledgeable developer ...
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  6. Ticket change [5362302e2e] (rid 93750) by dkf on 2004-01-09 16:38:21:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Which platform is this on BTW?  And which compiler was used?
      
      I ask because a VC++ 5.2 compiler bug was found recently in
      the handling of shifts of 64-bit values.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [1ca3ad453b] (rid 90639) by nobody on 2004-01-12 18:38:21:

    1. icomment:
      Logged In: NO 
      
      this is on linux x86 with gcc 3.2. I got responses on
      c.l.t., that Standard C89 doesn't define this, so probably
      any compiler will give us an incorrect result, but ther's no
      reason to do a shift count check and return 0 in all cases
      where the shift count is greater or equal bitcount of integer.
      btw. means
      
      >assigning to knowledgeable developer ...
      
      there's no need for a patch anymore ?
      I didn't have time to submit a patch, maybe I'll make it
      this week I'll , but I can test only on Linux, I don't have
      a Win* Environment !
      
      Gerhard
      
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  8. Ticket change [0439587df3] (rid 119958) by msofer on 2004-01-12 18:56:04:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      No, it means: when a patch is submitted, it'll get judged by
      someone who's got a clue ;)
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  9. Ticket change [5dee912c3d] (rid 115550) by dkf on 2004-06-16 17:36:27:

    1. title changed to: "large shift ops wrong"
  10. Ticket change [31986afdef] (rid 93451) by dkf on 2004-09-19 01:04:20:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixed in HEAD.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. resolution changed to: "Accepted"
    5. username: "dkf"
  11. Ticket change [5b3b40623f] (rid 118285) by dkf on 2004-09-19 02:25:51:

    1. closedate changed to: "2004-09-18T19:25:51"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      And in 8.4 branch too.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"
  12. Ticket change [3e9b7b6731] (rid 121300) by dgp on 2004-09-19 05:40:35:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      patched HEAD fails the following tests
      on a 64-bit platform:
      
      ==== expr-24.5 expr edge cases; shifting FAILED
      ==== Contents of test case:
      expr int(5)<<32
      ---- Result was:
      21474836480
      ---- Result should have been (exact matching):
      0
      ==== expr-24.5 FAILED
      
      
      ==== expr-24.6 expr edge cases; shifting FAILED
      ==== Contents of test case:
      expr int(5)<<63
      ---- Result was:
      -9223372036854775808
      ---- Result should have been (exact matching):
      0
      ==== expr-24.6 FAILED
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. resolution changed to: "Remind"
    5. status changed to: "Open"
    6. username: "dgp"
  13. Ticket change [ccb565e50f] (rid 95747) by dkf on 2004-09-19 22:05:43:

    1. closedate changed to: "2004-09-19T15:05:43"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      OK, those tests are failing because I'm not very good at
      writing tests, and not because what they are testing is
      failing. Silenced.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"