This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: unused yyoverflowlab warning
- From: Akim Demaille <akim at epita dot fr>
- To: Matt Kraai <kraai at alumni dot cmu dot edu>
- Cc: bug-bison at gnu dot org, Zack Weinberg <zack at codesourcery dot com>, GCC Patches <gcc-patches at gnu dot org>
- Date: 18 Jun 2002 12:00:43 +0200
- Subject: Re: unused yyoverflowlab warning
- References: <20020603180648.GI214@catalonia> <20020618074948.GA30892@codesourcery.com>
| Howdy,
| When compiling GCC, I see the following warning:
|
| /usr/share/bison/bison.simple: In function `yyparse':
| /usr/share/bison/bison.simple:923: warning: label `yyoverflowlab' defined but not used
|
| Patch appended.
Thanks, I'm applying it. Please, next time, send a ChangeLog too.
Index: ChangeLog
from Matt Kraai <kraai@alumni.cmu.edu>
* data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
there are no `label `yyoverflowlab' defined but not used' warnings
when yyoverflow is defined.
Index: THANKS
===================================================================
RCS file: /cvsroot/bison/bison/THANKS,v
retrieving revision 1.39
diff -u -u -r1.39 THANKS
--- THANKS 18 Jun 2002 09:12:58 -0000 1.39
+++ THANKS 18 Jun 2002 09:58:38 -0000
@@ -28,6 +28,7 @@
Laurent Mascherpa laurent.mascherpa@epita.fr
Magnus Fromreide magfr@lysator.liu.se
Marc Autret autret_m@epita.fr
+Matt Kraai kraai@alumni.cmu.edu
Michael Hayes m.hayes@elec.canterbury.ac.nz
Mike Castle dalgoda@ix.netcom.com
Neil Booth NeilB@earthling.net
Index: data/bison.simple
===================================================================
RCS file: /cvsroot/bison/bison/data/bison.simple,v
retrieving revision 1.35
diff -u -u -r1.35 bison.simple
--- data/bison.simple 18 Jun 2002 09:55:35 -0000 1.35
+++ data/bison.simple 18 Jun 2002 09:58:38 -0000
@@ -1251,6 +1251,7 @@
yyresult = 1;
goto yyreturn;
+#ifndef yyoverflow
/*---------------------------------------------.
| yyoverflowab -- parser overflow comes here. |
`---------------------------------------------*/
@@ -1258,6 +1259,7 @@
yyerror ("parser stack overflow");
yyresult = 2;
/* Fall through. */
+#endif
yyreturn:
#ifndef yyoverflow