Skip to content
Tcl Source Code History Of Ticket 2881263
Login

History Of Ticket 2881263

Artifacts Associated With Ticket 2881263

  1. Ticket change [e0ea9fad97] (rid 87356) by mistachkin on 2009-10-18 12:17:05:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Version 2.95.4 of gcc does not appear to like a variable declaration after an empty statement.  In tclCompCmds.c, there is a macro "DefineLineInformation" that evaluates to an empty statement when the TCL_TIP280 define is not present.  This causes the following compiler errors:
      
      gcc -c -g -pipe -pthread -DTCL_DBGX=g -Wall -fno-strict-aliasing -fPIC -I. -I/tcl/tcl8.4/tcl/unix/../generic -I/tcl/tcl8.4/tcl/unix -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DTCL_THREADS=1 -DTCL_MEM_DEBUG=1 -DTCL_COMPILE_DEBUG=1 -DTCL_COMPILE_STATS=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c
      
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c: In function `TclCompileForeachCmd':
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c:784: syntax error before `int'
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c:828: `varcList' undeclared (first use in this function)
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c:828: (Each undeclared identifier is reported only once
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c:828: for each function it appears in.)
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c:829: `varvList' undeclared (first use in this function)
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c:1078: `varcListStaticSpace' undeclared (first use in this function)
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c: In function `TclCompileLindexCmd':
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c:1857: syntax error before `int'
      /tcl/tcl8.4/tcl/unix/../generic/tclCompCmds.c:1858: `numWords' undeclared (first use in this function) 
      
      I believe it is important to continue to support this particular compiler version with Tcl 8.4 for the following reasons:
      
      1. Historically, it has always worked with 8.4.
      2. It works with HEAD and the latest code on core-8-5-branch.
      3. It should be fairly trivial to change the code in tclCompCmds.c to avoid using the problematic construct.
      
    4. foundin initialized to: "obsolete: 8.4.19"
    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: "mistachkin"
    10. subsystem initialized to: "47. Bytecode Compiler"
    11. title initialized to: "cannot compile with gcc 2.95.4"
    12. type initialized to: "Bug"
  2. Ticket change [43f9e0bc1c] (rid 116641) by dgp on 2009-10-20 03:39:35:

    1. icomment:
      
      agreed. please commit fix to the core-8-4-branch.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [743a74e8a7] (rid 105172) by andreas_kupries on 2009-10-20 03:48:54:

    1. icomment:
      Assigning to maintainer of the #280 code.
      Joe, if you have a patch, please attach to the bug report.
      
      2 Possibilities:
      
      (1) Redefine DefineLineInformation (DFL) to contain the semicolon when #280 is active. Then we can remove the semicolon from all uses of DFL, killing it completely when building without #280, instead of leaving an empty statement.
      
      (2) Keep the definitions as is and move the uses of DFL after the last variable decl in each block, so that the empty statement comes after the var decls and not in between.
      
      Opinions ?
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [41b9e47c3b] (rid 116238) by andreas_kupries on 2009-10-20 03:48:59:

    1. assignee changed to: "andreas_kupries"
  5. Ticket change [6af4730e46] (rid 128231) by dgp on 2009-10-20 04:50:54:

    1. icomment:
      
      weak preference for (2).
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [4e1d922f8c] (rid 127171) by andreas_kupries on 2009-10-24 02:30:49:

    1. closedate changed to: "2009-10-23T19:30:49"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      
      
      allow_comments - 1
      
      Fixed in 8.4 branch head. Two places needed fixes, TclCompileForeachCmd,
      and TclCompileLindexCmd. This also affected MSVC6, per patthoyts, on the chat.
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"
  7. Ticket change [a8ec217f34] (rid 99073) by andreas_kupries on 2009-10-24 02:31:33:

    1. icomment:
      Oh, and I went with option (2), moving the uses to proper location. Only two had been wrong.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"