NetBSD Problem Report #1402
From gnats Wed Aug 23 03:16:12 1995
Received: from gandalf.sigmasoft.com (root@gandalf.sigmasoft.com [140.174.2.15]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id DAA04854 for <gnats-bugs@gnats.netbsd.org>; Wed, 23 Aug 1995 03:15:59 -0400
Message-Id: <199508230715.AAA01766@gandalf.sigmasoft.com>
Date: Wed, 23 Aug 1995 00:15:49 -0700
From: Thorsten Lockert <tholo@SigmaSoft.COM>
Reply-To: tholo@SigmaSoft.COM
To: gnats-bugs@gnats.netbsd.org
Subject: yacc(1) declares the yydebug variable when YYDEBUG is not defined
X-Send-Pr-Version: 3.2
>Number: 1402
>Category: bin
>Synopsis: yacc(1) declares the yydebug variable when YYDEBUG is not defined
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Aug 23 03:20:04 +0000 1995
>Closed-Date: Wed Aug 23 20:44:13 +0000 1995
>Last-Modified: Thu Aug 24 00:45:50 +0000 1995
>Originator: Thorsten Lockert
>Release: August 22, 1995
>Organization:
SigmaSoft
>Environment:
System: NetBSD gandalf.sigmasoft.com 1.0A NetBSD 1.0A (GANDALF) #0: Thu Jul 6 14:32:54 PDT 1995 tholo@gandalf.sigmasoft.com:/usr/src/sys/arch/i386/compile/GANDALF i386
>Description:
yacc(1) declares the global variable yydebug regardless of wether
or not YYDEBUG is #define'd. This results in warnings from lint(1)
as well as waste memory.
>How-To-Repeat:
Run lint(1) on a parser generated by YACC.
>Fix:
Apply the following patch:
*** src/usr.bin/yacc/skeleton.c.orig Wed Aug 23 00:15:07 1995
--- src/usr.bin/yacc/skeleton.c Tue Aug 22 21:35:47 1995
***************
*** 60,66 ****
--- 60,68 ----
"#define YYMAXDEPTH 500",
"#endif",
"#endif",
+ "#if YYDEBUG",
"int yydebug;",
+ "#endif",
"int yynerrs;",
"int yyerrflag;",
"int yychar;",
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Wed Aug 23 20:44:13 1995
State-Changed-Why:
This seems like I good idea. I committed this.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.