lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build problem with FreeBSD


From: Jan Nieuwenhuizen
Subject: Re: Build problem with FreeBSD
Date: 29 Apr 2003 12:18:38 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

"R. D. Davis" <address@hidden> writes:

[cc'ing lilypond-user again]

> Did you mean to send my parser.cc?  If so, here it is:

Yes, thanks.

> /* A Bison parser, made by GNU Bison 1.875.  */

It turns out that (under circumstances) Bison 1.875 procuces code that
doesn't compile with gcc >= 2.95.  The culprit is code that should
suppress gcc warings.  This code is removed/fixed in Bison 1.875a (see
ftp://alpha.gnu.org/pub/gnu/bison/) or Bison CVS (see
savannah.gnu.org).

You may upgrade Bison, or use the patch below.

Greetings,
Jan.


--- out/parser.cc.1.875 2003-04-29 11:51:58.000000000 +0200
+++ out/parser.cc       2003-04-29 10:53:18.000000000 +0200
@@ -1,7 +1,7 @@
-/* A Bison parser, made by GNU Bison 1.875.  */
+/* A Bison parser, made by GNU Bison 1.875a.  */
 
 /* Skeleton parser for Yacc-like parsing with Bison,
-   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, 
Inc.
+   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software 
Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -448,7 +448,7 @@
     int i;
 } YYSTYPE;
 /* Line 191 of yacc.c.  */
-#line 451 "parser.tab.cc"
+#line 452 "parser.tab.cc"
 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
 # define YYSTYPE_IS_DECLARED 1
 # define YYSTYPE_IS_TRIVIAL 1
@@ -474,7 +474,7 @@
 
 
 /* Line 214 of yacc.c.  */
-#line 477 "parser.tab.cc"
+#line 478 "parser.tab.cc"
 
 #if ! defined (yyoverflow) || YYERROR_VERBOSE
 
@@ -1485,6 +1485,7 @@
 #define YYABORT                goto yyabortlab
 #define YYERROR                goto yyerrlab1
 
+
 /* Like YYERROR except do call yyerror.  This remains here temporarily
    to ease the transition to the new meaning of YYERROR, for GCC.
    Once GCC version 2 has supplanted version 1, this can go.  */
@@ -4672,8 +4673,8 @@
 
     }
 
-/* Line 991 of yacc.c.  */
-#line 4676 "parser.tab.cc"
+/* Line 999 of yacc.c.  */
+#line 4678 "parser.tab.cc"
 
   yyvsp -= yylen;
   yyssp -= yylen;
@@ -4787,28 +4788,13 @@
 
   /* Else will try to reuse lookahead token after shifting the error
      token.  */
-  goto yyerrlab2;
+  goto yyerrlab1;
 
 
 /*----------------------------------------------------.
 | yyerrlab1 -- error raised explicitly by an action.  |
 `----------------------------------------------------*/
 yyerrlab1:
-
-  /* Suppress GCC warning that yyerrlab1 is unused when no action
-     invokes YYERROR.  */
-#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
-  __attribute__ ((__unused__))
-#endif
-
-
-  goto yyerrlab2;
-
-
-/*---------------------------------------------------------------.
-| yyerrlab2 -- pop states until the error token can be shifted.  |
-`---------------------------------------------------------------*/
-yyerrlab2:
   yyerrstatus = 3;     /* Each real token shifted decrements this.  */
 
   for (;;)



-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]