public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* B20.1: byacc bug (Windows NT 4.0 server)
@ 1999-03-02  4:52 denis.chabert@aeo.mts
  1999-03-31 19:45 ` denis.chabert@aeo.mts
  0 siblings, 1 reply; 2+ messages in thread
From: denis.chabert@aeo.mts @ 1999-03-02  4:52 UTC (permalink / raw)
  To: cygwin; +Cc: denis.chabert

Problem description:

After using the following byacc compilation command, the resulting file
has wrong code inside :

byacc -d file name

Extract of resulting file (see >>>):
===============================================================
...
#define RET_CLI_IVQUAL 5
#define RET_CLI_NOCOMD 6

>>>spec();}
>>>break;
case 66:
#line 266 "s7mp_cli_yacc.y"
{tree_insert_element_noupcase(S7MP_K_TRACE_FILE,yyvsp[0]);}
break;
case 67:
...
===============================================================

Normally, the correct resulting code must be:

===============================================================
...
#define RET_CLI_IVQUAL 5
#define RET_CLI_NOCOMD 6

#line 78 "y.tab.c"
#define T_IDENT 257
#define T_FILE_SPEC 258
#define T_EQUAL_AND_VALUE 259
#define T_EOL 260
...
    yym = yylen[yyn];
    yyval = yyvsp[1-yym];
    switch (yyn)
    {
case 1:
#line 155 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{first_error = 1;lex_init();begin_verb();current_state = STATE_VERB;}
break;
case 3:
#line 163 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{return RET_CLI_NORMAL;}
break;
case 4:
#line 166 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{return RET_CLI_NOCOMD;}
break;
case 5:
#line 169 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{return RET_CLI_NOCOMD;}
break;
...
case 66:
#line 266 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{tree_insert_element_noupcase(S7MP_K_TRACE_FILE,yyvsp[0]);}
break;
case 67:
...

===============================================================
The same source file on Unix system produces a correct resulting file
(y.tab.c)

Thank for your help. We have re-installed the product and the same
problem occurs.

================== RFC 822 Headers ==================
Received: by snails.evt.DEC.COM (5.57/Ultrix-lsh)
	id AA28660 at Tue, 2 Mar 99 13:44:33 +0100
Received: from ANTERAK.pc.aeo.dec.com by asterix.aeo.dec.com (5.65v4.0/1.1.19.2/20May98-0532PM)
	id AA11946; Tue, 2 Mar 1999 13:51:02 +0100
Message-Id: <36DBDECF.A11@aeo.mts.dec.com>
Date: Tue, 02 Mar 1999 13:51:27 +0100
Reply-To: denis.chabert@aeo.mts
Organization: Digital Annecy
X-Mailer: Mozilla 3.01Gold (WinNT; I)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* B20.1: byacc bug (Windows NT 4.0 server)
  1999-03-02  4:52 B20.1: byacc bug (Windows NT 4.0 server) denis.chabert@aeo.mts
@ 1999-03-31 19:45 ` denis.chabert@aeo.mts
  0 siblings, 0 replies; 2+ messages in thread
From: denis.chabert@aeo.mts @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin; +Cc: denis.chabert

Problem description:

After using the following byacc compilation command, the resulting file
has wrong code inside :

byacc -d file name

Extract of resulting file (see >>>):
===============================================================
...
#define RET_CLI_IVQUAL 5
#define RET_CLI_NOCOMD 6

>>>spec();}
>>>break;
case 66:
#line 266 "s7mp_cli_yacc.y"
{tree_insert_element_noupcase(S7MP_K_TRACE_FILE,yyvsp[0]);}
break;
case 67:
...
===============================================================

Normally, the correct resulting code must be:

===============================================================
...
#define RET_CLI_IVQUAL 5
#define RET_CLI_NOCOMD 6

#line 78 "y.tab.c"
#define T_IDENT 257
#define T_FILE_SPEC 258
#define T_EQUAL_AND_VALUE 259
#define T_EOL 260
...
    yym = yylen[yyn];
    yyval = yyvsp[1-yym];
    switch (yyn)
    {
case 1:
#line 155 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{first_error = 1;lex_init();begin_verb();current_state = STATE_VERB;}
break;
case 3:
#line 163 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{return RET_CLI_NORMAL;}
break;
case 4:
#line 166 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{return RET_CLI_NOCOMD;}
break;
case 5:
#line 169 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{return RET_CLI_NOCOMD;}
break;
...
case 66:
#line 266 "..\base\s7mpmisc\s7mp_cli_yacc.y"
{tree_insert_element_noupcase(S7MP_K_TRACE_FILE,yyvsp[0]);}
break;
case 67:
...

===============================================================
The same source file on Unix system produces a correct resulting file
(y.tab.c)

Thank for your help. We have re-installed the product and the same
problem occurs.

================== RFC 822 Headers ==================
Received: by snails.evt.DEC.COM (5.57/Ultrix-lsh)
	id AA28660 at Tue, 2 Mar 99 13:44:33 +0100
Received: from ANTERAK.pc.aeo.dec.com by asterix.aeo.dec.com (5.65v4.0/1.1.19.2/20May98-0532PM)
	id AA11946; Tue, 2 Mar 1999 13:51:02 +0100
Message-Id: <36DBDECF.A11@aeo.mts.dec.com>
Date: Tue, 02 Mar 1999 13:51:27 +0100
Reply-To: denis.chabert@aeo.mts
Organization: Digital Annecy
X-Mailer: Mozilla 3.01Gold (WinNT; I)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-03-31 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-02  4:52 B20.1: byacc bug (Windows NT 4.0 server) denis.chabert@aeo.mts
1999-03-31 19:45 ` denis.chabert@aeo.mts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).