Artifacts Associated With Ticket 218573
Ticket change [9df372500c] (rid 96396) by nobody on 2000-10-26 01:02:35:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1249 Bug Version: 8.0.5 SubmitDate: '1999-02-22' LastModified: '1999-09-20' Severity: LOW Status: Released Submitter: welch ChangedBy: hobbs OS: Other Machine: NA FixedDate: '1999-09-20' FixedInVersion: 8.2.2 ClosedDate: '2000-10-25' Name: Don Porter CVS: generic/tclGetDate.y 1.2 ; unix/Makefile.in 1.17 ReproducibleScript: When compiling Tcl 8.0.5 as delivered by NetCVS... ObservedBehavior: $ cd unix $ autoconf $ ./configure --enable-gcc $ make ... gcc -pipe -c -O -Wall -Wconversion -I./../generic -I. -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/tclDate.c ./../generic/tclDate.c: In function `TclDatelex': ./../generic/tclDate.c:663: warning: subscript has type `char' ./../generic/tclDate.c:666: warning: subscript has type `char' ./../generic/tclDate.c:675: warning: subscript has type `char' ./../generic/tclDate.c:685: warning: subscript has type `char' ... $ make clean $ make gendate yacc -l ./../generic/tclGetDate.y conflicts: 8 shift/reduce sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d' \ -e 's/SCCSID/RCS: @(#) d: Makefile.in,v 1.17 1999/02/02 23:00:07 stanton Exp sed: command garbled: s/SCCSID/RCS: @(#) d: Makefile.in,v 1.17 1999/02/02 23:00:07 stanton Exp make: *** [gendate] Error 2 DesiredBehavior: Compiling without warnings would be an improvement. 'make gendate' should rebuild tclDate.c as documented in the Makefile comments. Patch: Index: generic/tclGetDate.y =================================================================== RCS file: /cvsroot/tcl/generic/tclGetDate.y,v retrieving revision 1.2 diff -r1.2 tclGetDate.y 814c814 < while (isspace((unsigned char) (*yyInput))) { --- > while (isspace(UCHAR(*yyInput))) { 818c818 < if (isdigit(c = *yyInput) || c == '-' || c == '+') { --- > if (isdigit(UCHAR(c = *yyInput)) || c == '-' || c == '+') { 821c821 < if (!isdigit(*++yyInput)) { --- > if (!isdigit(UCHAR(*++yyInput))) { 830c830 < for (yylval.Number = 0; isdigit(c = *yyInput++); ) { --- > for (yylval.Number = 0; isdigit(UCHAR(c = *yyInput++)); ) { 840c840 < for (p = buff; isalpha(c = *yyInput++) || c == '.'; ) { --- > for (p = buff; isalpha(UCHAR(c = *yyInput++)) || c == '.'; ) { Index: unix/Makefile.in =================================================================== RCS file: /cvsroot/tcl/unix/Makefile.in,v retrieving revision 1.17 diff -r1.17 Makefile.in 406c406 < -e 's/SCCSID/RCS: @(#) $Id: Makefile.in,v 1.17 1999/02/02 23:00:07 stanton Exp $' --- > -e 's?SCCSID?RCS: @(#) $$Id: Makefile.in,v 1.17 1999/02/02 23:00:07 stanton Exp $$?' \ PatchFiles: generic/tclGetDate.y unix/Makefile.in After applying the patch, make the 'gendate' target to regenerate generic/tclDate.c . The new tclDate.c will compile without warnings. Scriptics should be the ones to do this so that tclDate.c is generated by their copies/versions of yacc and sed. No patch for it is submitted. -- Fixed for 8.3b1. -- 09/20/1999 hobbs - foundin initialized to: "final: 8.0.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "tclDate.c compiler warnings; gendate target broken"
- type initialized to: "Bug"
Ticket change [b79a4c4581] (rid 125629) by welch on 2000-10-26 08:24:15:
- closedate changed to: "2000-10-26T01:24:15"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [c5e8e589c7] (rid 121667) by dgp on 2001-04-21 03:08:34:
- closedate changed to: "2001-04-20T20:08:34"
- closer changed to: "dgp"
- subsystem changed to: "06. Time Measurement"