From MAILER-DAEMON Mon Jul 02 04:02:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SlbaL-0006gF-Mv
	for mharc-bug-bison@gnu.org; Mon, 02 Jul 2012 04:02:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42667)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SlbaH-0006fD-EO
	for bug-bison@gnu.org; Mon, 02 Jul 2012 04:02:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Slba8-0004uX-Jl
	for bug-bison@gnu.org; Mon, 02 Jul 2012 04:02:12 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:33958
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Slba8-0004uO-4m; Mon, 02 Jul 2012 04:02:04 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Slba5-0002gV-Hx; Mon, 02 Jul 2012 10:02:01 +0200
Subject: Re: yacc.c does not prototype yyparse in the header
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <F9C11FC5-D73F-4D12-94B0-DA8001E89180@lrde.epita.fr>
Date: Mon, 2 Jul 2012 10:02:07 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <B84B4E13-45E1-43CE-A466-4B2193E2A0C7@lrde.epita.fr>
References: <80AD8426-5BCA-4A0A-9529-EF786DC48AC9@lrde.epita.fr>
	<4FCFCDA2.9080206@gnu.org>
	<9733E760-8220-445A-8AB9-D7A19247A805@lrde.epita.fr>
	<4FD236E7.6080609@gnu.org>
	<554D01B6-ABD2-4998-A40F-6B13793DBF72@lrde.epita.fr>
	<4FD5BA89.0@cs.ucla.edu>
	<59EB43E0-4486-4258-A37F-3D91415F51EA@lrde.epita.fr>
	<4FD77125.2070807@cs.ucla.edu>
	<AE9C526A-D5C4-4AAB-80F2-7D12BF1A4C86@lrde.epita.fr>
	<4FD8C479.6030703@cs.ucla.edu>
	<F8390949-E9DA-4632-8C04-A087D7E76757@lrde.epita.fr>
	<F9C11FC5-D73F-4D12-94B0-DA8001E89180@lrde.epita.fr>
To: Paul Eggert <eggert@cs.ucla.edu>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Patches <bison-patches@gnu.org>, Bison Bugs <bug-bison@gnu.org>,
	Bruce Korb <bkorb@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jul 2012 08:02:16 -0000


Le 29 juin 2012 =E0 17:42, Akim Demaille a =E9crit :

> This is a more mature patch, with the documentation.
> It's in the api.prefix branch.

I installed it.

=46rom 4b3847c3c0e161b85267d077adb256a880c0f3e3 Mon Sep 17 00:00:00 2001
From: Akim Demaille <akim@lrde.epita.fr>
Date: Tue, 26 Jun 2012 10:09:10 +0200
Subject: [PATCH] api.prefix.

* data/c.m4 (b4_api_prefix, b4_api_PREFIX): New.
(b4_prefix, b4_union_name, b4_token_enums, b4_declare_yylstype): Use =
them.
* data/glr.c, data/yacc.c, data/glr.cc, data/lalr1.cc: Use them to =
change
the prefix of exported preprocessor symbols.
* src/getargs.c (usage): Ditto.
* tests/headers.at (Several parsers): New.
* tests/local.at (AT_API_PREFIX): New.
AT_YYSTYPE, AT_YYLTYPE): Adjust.
* doc/bison.texi (Multiple Parsers): Move documentation of %name-prefix =
to...
(Table of Symbols): here.
(Multiple Parsers): Document api.prefix.
(%define Summary): Point to it.
Use @code for variable names.
(Bison Options): -p/--name-prefix are obsoleted.
* NEWS: Announce api.prefix.
---
 NEWS             |  54 +++++++++++++++++++
 data/c.m4        |  65 +++++++++++++----------
 data/glr.c       |   8 +++
 data/glr.cc      |  14 ++---
 data/lalr1.cc    |  12 ++---
 data/yacc.c      |  10 +++-
 doc/bison.texi   | 155 =
++++++++++++++++++++++++++++++++++++-------------------
 src/getargs.c    |   7 +--
 tests/headers.at |  90 ++++++++++++++++++++++++++++++++
 tests/local.at   |   7 ++-
 10 files changed, 323 insertions(+), 99 deletions(-)

diff --git a/NEWS b/NEWS
index 33fac14..371b933 100644
--- a/NEWS
+++ b/NEWS
@@ -70,6 +70,60 @@ GNU Bison NEWS
   For the same reasons, the undocumented and unused macro YYLSP_NEEDED =
is no
   longer defined.
=20
+** New %define variable: api.prefix
+
+  Now that the generated headers are more complete and properly =
protected
+  against multiple inclusions, constant names, such as YYSTYPE are a
+  problem.  While yyparse and others are properly renamed by =
%name-prefix,
+  YYSTYPE, YYDEBUG and others have never been affected by it.  Because =
it
+  would introduce backward compatibility issues in projects not =
expecting
+  YYSTYPE to be renamed, instead of changing the behavior of =
%name-prefix,
+  it is deprecated in favor of a new %define variable: api.prefix.
+
+  The following examples compares both:
+
+    %name-prefix "bar_"               | %define api.prefix "bar_"
+    %token <ival> FOO                   %token <ival> FOO
+    %union { int ival; }                %union { int ival; }
+    %%                                  %%
+    exp: 'a';                           exp: 'a';
+
+  bison generates:
+
+    #ifndef BAR_FOO_H                   #ifndef BAR_FOO_H
+    # define BAR_FOO_H                  # define BAR_FOO_H
+
+    /* Enabling traces.  */             /* Enabling traces.  */
+    # ifndef YYDEBUG                    # ifndef YYDEBUG
+    #  define YYDEBUG 0                 #  define YYDEBUG 0
+    # endif                             # endif
+    # if YYDEBUG                        # if YYDEBUG
+    extern int bar_debug;               extern int bar_debug;
+    # endif                             # endif
+
+    /* Tokens.  */                      /* Tokens.  */
+    # ifndef YYTOKENTYPE              | # ifndef BAR_TOKENTYPE
+    #  define YYTOKENTYPE             | #  define BAR_TOKENTYPE
+       enum yytokentype {             |    enum bar_tokentype {
+         FOO =3D 258                           FOO =3D 258
+       };                                  };
+    # endif                             # endif
+
+    #if ! defined YYSTYPE \           | #if ! defined BAR_STYPE \
+     && ! defined YYSTYPE_IS_DECLARED |  && ! defined =
BAR_STYPE_IS_DECLARED
+    typedef union YYSTYPE             | typedef union BAR_STYPE
+    {                                   {
+     int ival;                           int ival;
+    } YYSTYPE;                        | } BAR_STYPE;
+    # define YYSTYPE_IS_DECLARED 1    | # define BAR_STYPE_IS_DECLARED =
1
+    #endif                              #endif
+
+    extern YYSTYPE bar_lval;          | extern BAR_STYPE bar_lval;
+
+    int bar_parse (void);               int bar_parse (void);
+
+    #endif /* !BAR_FOO_H  */            #endif /* !BAR_FOO_H  */
+
 * Noteworthy changes in release 2.5.1 (2012-06-05) [stable]
=20
 ** Future changes:
diff --git a/data/c.m4 b/data/c.m4
index 1f266a4..0b2699a 100644
--- a/data/c.m4
+++ b/data/c.m4
@@ -84,11 +84,24 @@ m4_define([b4_identification],
 ## Default values.  ##
 ## ---------------- ##
=20
+# b4_api_prefix, b4_api_PREFIX
+# ----------------------------
+# Corresponds to %define api.prefix
+b4_percent_define_default([[api.prefix]], [[yy]])
+m4_define([b4_api_prefix],
+[b4_percent_define_get([[api.prefix]])])
+m4_define([b4_api_PREFIX],
+[m4_toupper(b4_api_prefix)])
+
+
+# b4_prefix
+# ---------
+# If the %name-prefix is not given, it is api.prefix.
+m4_define_default([b4_prefix], [b4_api_prefix])
+
 # If the %union is not named, its name is YYSTYPE.
-m4_define_default([b4_union_name], [YYSTYPE])
+m4_define_default([b4_union_name], [b4_api_PREFIX[]STYPE])
=20
-# If the %name-prefix is not given, it is yy.
-m4_define_default([b4_prefix], [yy])
=20
 ## ------------------------ ##
 ## Pure/impure interfaces.  ##
@@ -232,18 +245,18 @@ m4_define([b4_token_enum],
 # Output the definition of the tokens (if there are) as enums.
 m4_define([b4_token_enums],
 [m4_if([$#$1], [1], [],
-[/* Tokens.  */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
+[[/* Tokens.  */
+#ifndef ]b4_api_PREFIX[TOKENTYPE
+# define ]b4_api_PREFIX[TOKENTYPE
    /* Put the tokens into the symbol table, so that GDB and other =
debuggers
       know about them.  */
-   enum yytokentype {
-m4_map_sep([     b4_token_enum], [,
+   enum ]b4_api_prefix[tokentype {
+]m4_map_sep([     b4_token_enum], [,
 ],
-	   [$@])
+	   [$@])[
    };
 #endif
-])])
+]])])
=20
=20
 # b4_token_enums_defines(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)
@@ -533,39 +546,39 @@ b4_locations_if([, yylocationp])[]b4_user_args[);
 ## -------------- ##
=20
 # b4_declare_yylstype
-# ------------------
+# -------------------
 # Declarations that might either go into the header (if --defines) or
 # in the parser body.  Declare YYSTYPE/YYLTYPE, and yylval/yylloc.
 m4_define([b4_declare_yylstype],
-[[#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
+[[#if ! defined ]b4_api_PREFIX[STYPE && ! defined =
]b4_api_PREFIX[STYPE_IS_DECLARED
 ]m4_ifdef([b4_stype],
 [[typedef union ]b4_union_name[
 {
 ]b4_user_stype[
-} YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1]],
+} ]b4_api_PREFIX[STYPE;
+# define ]b4_api_PREFIX[STYPE_IS_TRIVIAL 1]],
 [m4_if(b4_tag_seen_flag, 0,
-[[typedef int YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1]])])[
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
+[[typedef int ]b4_api_PREFIX[STYPE;
+# define ]b4_api_PREFIX[STYPE_IS_TRIVIAL 1]])])[
+# define ]b4_api_prefix[stype ]b4_api_PREFIX[STYPE /* obsolescent; will =
be withdrawn */
+# define ]b4_api_PREFIX[STYPE_IS_DECLARED 1
 #endif]b4_locations_if([[
=20
-#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
-typedef struct YYLTYPE
+#if ! defined ]b4_api_PREFIX[LTYPE && ! defined =
]b4_api_PREFIX[LTYPE_IS_DECLARED
+typedef struct ]b4_api_PREFIX[LTYPE
 {
   int first_line;
   int first_column;
   int last_line;
   int last_column;
-} YYLTYPE;
-# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
-# define YYLTYPE_IS_DECLARED 1
-# define YYLTYPE_IS_TRIVIAL 1
+} ]b4_api_PREFIX[LTYPE;
+# define ]b4_api_prefix[ltype ]b4_api_PREFIX[LTYPE /* obsolescent; will =
be withdrawn */
+# define ]b4_api_PREFIX[LTYPE_IS_DECLARED 1
+# define ]b4_api_PREFIX[LTYPE_IS_TRIVIAL 1
 #endif]])
=20
-b4_pure_if([], [[extern YYSTYPE ]b4_prefix[lval;
-]b4_locations_if([[extern YYLTYPE ]b4_prefix[lloc;]])])[]dnl
+b4_pure_if([], [[extern ]b4_api_PREFIX[STYPE ]b4_prefix[lval;
+]b4_locations_if([[extern ]b4_api_PREFIX[LTYPE =
]b4_prefix[lloc;]])])[]dnl
 ])
=20
 # b4_declare_yydebug
diff --git a/data/glr.c b/data/glr.c
index 699d730..ce61160 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -188,6 +188,14 @@ b4_copyright([Skeleton implementation for Bison GLR =
parsers in C],
 ]b4_identification
=20
 b4_percent_code_get([[top]])[
+]m4_if(b4_api_prefix, [yy], [],
+[[/* Substitute the type names.  */
+#define YYSTYPE              ]b4_api_PREFIX[STYPE
+#define YYSTYPE_IS_TRIVIAL   ]b4_api_PREFIX[STYPE_IS_TRIVIAL
+#define YYSTYPE_IS_DECLARED  =
]b4_api_PREFIX[STYPE_IS_DECLARED]b4_locations_if([[
+#define YYLTYPE              ]b4_api_PREFIX[LTYPE
+#define YYLTYPE_IS_TRIVIAL   ]b4_api_PREFIX[LTYPE_IS_TRIVIAL
+#define YYLTYPE_IS_DECLARED  ]b4_api_PREFIX[LTYPE_IS_DECLARED]])])[
 ]m4_if(b4_prefix, [yy], [],
 [[/* Substitute the variable and function names.  */
 #define yyparse ]b4_prefix[parse
diff --git a/data/glr.cc b/data/glr.cc
index 8e46be3..d1eb6bd 100644
--- a/data/glr.cc
+++ b/data/glr.cc
@@ -269,7 +269,7 @@ b4_copyright([Skeleton interface for Bison GLR =
parsers in C++],
   {
   public:
     /// Symbol semantic values.
-#ifndef YYSTYPE
+#ifndef ]b4_api_PREFIX[STYPE
 ]m4_ifdef([b4_stype],
 [    union semantic_type
     {
@@ -277,9 +277,9 @@ b4_user_stype
     };],
 [m4_if(b4_tag_seen_flag, 0,
 [[    typedef int semantic_type;]],
-[[    typedef YYSTYPE semantic_type;]])])[
+[[    typedef ]b4_api_PREFIX[STYPE semantic_type;]])])[
 #else
-    typedef YYSTYPE semantic_type;
+    typedef ]b4_api_PREFIX[STYPE semantic_type;
 #endif
     /// Symbol locations.
     typedef ]b4_percent_define_get([[location_type]],
@@ -350,11 +350,11 @@ b4_user_stype
 b4_percent_define_flag_if([[global_tokens_and_yystype]],
 [b4_token_defines(b4_tokens)])
 [
-#ifndef YYSTYPE
-# define YYSTYPE =
]b4_namespace_ref[::]b4_parser_class_name[::semantic_type
+#ifndef ]b4_api_PREFIX[STYPE
+# define ]b4_api_PREFIX[STYPE =
]b4_namespace_ref[::]b4_parser_class_name[::semantic_type
 #endif
-#ifndef YYLTYPE
-# define YYLTYPE =
]b4_namespace_ref[::]b4_parser_class_name[::location_type
+#ifndef ]b4_api_PREFIX[LTYPE
+# define ]b4_api_PREFIX[LTYPE =
]b4_namespace_ref[::]b4_parser_class_name[::location_type
 #endif
=20
 ]b4_namespace_close[
diff --git a/data/lalr1.cc b/data/lalr1.cc
index e82e654..337af10 100644
--- a/data/lalr1.cc
+++ b/data/lalr1.cc
@@ -69,7 +69,7 @@ b4_copyright([Skeleton interface for Bison LALR(1) =
parsers in C++],
   {
   public:
     /// Symbol semantic values.
-#ifndef YYSTYPE
+#ifndef ]b4_api_PREFIX[STYPE
 ]m4_ifdef([b4_stype],
 [    union semantic_type
     {
@@ -77,9 +77,9 @@ b4_user_stype
     };],
 [m4_if(b4_tag_seen_flag, 0,
 [[    typedef int semantic_type;]],
-[[    typedef YYSTYPE semantic_type;]])])[
+[[    typedef ]b4_api_PREFIX[STYPE semantic_type;]])])[
 #else
-    typedef YYSTYPE semantic_type;
+    typedef ]b4_api_PREFIX[STYPE semantic_type;
 #endif
     /// Symbol locations.
     typedef ]b4_percent_define_get([[location_type]],
@@ -262,9 +262,9 @@ b4_user_stype
 ]b4_percent_define_flag_if([[global_tokens_and_yystype]],
 [b4_token_defines(b4_tokens)
=20
-#ifndef YYSTYPE
+#ifndef ]b4_api_PREFIX[STYPE
  /* Redirection for backward compatibility.  */
-# define YYSTYPE b4_namespace_ref::b4_parser_class_name::semantic_type
+# define ]b4_api_PREFIX[STYPE =
b4_namespace_ref::b4_parser_class_name::semantic_type
 #endif
 ])[
 ]b4_percent_code_get([[provides]])[
@@ -597,7 +597,7 @@ m4_popdef([b4_at_dollar])])dnl
       {
 	YYCDEBUG << "Reading a token: ";
 	yychar =3D ]b4_c_function_call([yylex], [int],
-				     [[YYSTYPE*], [&yylval]][]dnl
+				     [b4_api_PREFIX[STYPE*], =
[&yylval]][]dnl
 b4_locations_if([, [[location*], [&yylloc]]])dnl
 m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
       }
diff --git a/data/yacc.c b/data/yacc.c
index 7cf088b..8c595f9 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -307,7 +307,15 @@ b4_copyright([Bison implementation for Yacc-like =
parsers in C],
=20
 ]b4_identification
 b4_percent_code_get([[top]])[]dnl
-m4_if(b4_prefix, [yy], [],
+m4_if(b4_api_prefix, [yy], [],
+[[/* Substitute the type names.  */
+#define YYSTYPE              ]b4_api_PREFIX[STYPE
+#define YYSTYPE_IS_TRIVIAL   ]b4_api_PREFIX[STYPE_IS_TRIVIAL
+#define YYSTYPE_IS_DECLARED  =
]b4_api_PREFIX[STYPE_IS_DECLARED]b4_locations_if([[
+#define YYLTYPE              ]b4_api_PREFIX[LTYPE
+#define YYLTYPE_IS_TRIVIAL   ]b4_api_PREFIX[LTYPE_IS_TRIVIAL
+#define YYLTYPE_IS_DECLARED  ]b4_api_PREFIX[LTYPE_IS_DECLARED]])])[
+]m4_if(b4_prefix, [yy], [],
 [[/* Substitute the variable and function names.  */]b4_pull_if([[
 #define yyparse         ]b4_prefix[parse]])b4_push_if([[
 #define yypush_parse    ]b4_prefix[push_parse]b4_pull_if([[
diff --git a/doc/bison.texi b/doc/bison.texi
index b163166..fbe780c 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -5154,22 +5154,6 @@ grammar does not use it, using @samp{%locations} =
allows for more
 accurate syntax error messages.
 @end deffn
=20
-@deffn {Directive} %name-prefix "@var{prefix}"
-Rename the external symbols used in the parser so that they start with
-@var{prefix} instead of @samp{yy}.  The precise list of symbols renamed
-in C parsers
-is @code{yyparse}, @code{yylex}, @code{yyerror}, @code{yynerrs},
-@code{yylval}, @code{yychar}, @code{yydebug}, and
-(if locations are used) @code{yylloc}.  If you use a push parser,
-@code{yypush_parse}, @code{yypull_parse}, @code{yypstate},
-@code{yypstate_new} and @code{yypstate_delete} will
-also be renamed.  For example, if you use @samp{%name-prefix "c_"}, the
-names become @code{c_parse}, @code{c_lex}, and so on.
-For C++ parsers, see the @code{%define namespace} documentation in this
-section.
-@xref{Multiple Parsers, ,Multiple Parsers in the Same Program}.
-@end deffn
-
 @ifset defaultprec
 @deffn {Directive} %no-default-prec
 Do not assign a precedence to rules lacking an explicit @code{%prec}
@@ -5317,8 +5301,23 @@ Unaccepted @var{variable}s produce an error.
 Some of the accepted @var{variable}s are:
=20
 @itemize @bullet
+@c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D api.prefix
+@item @code{api.prefix}
+@findex %define api.prefix
+
+@itemize @bullet
+@item Language(s): All
+
+@item Purpose: Rename exported symbols
+@xref{Multiple Parsers, ,Multiple Parsers in the Same Program}.
+
+@item Accepted Values: String
+
+@item Default Value: @code{yy}
+@end itemize
+
 @c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D api.pure
-@item api.pure
+@item @code{api.pure}
 @findex %define api.pure
=20
 @itemize @bullet
@@ -5332,7 +5331,9 @@ Some of the accepted @var{variable}s are:
 @item Default Value: @code{false}
 @end itemize
=20
-@item api.push-pull
+@c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D api.push-pull
+
+@item @code{api.push-pull}
 @findex %define api.push-pull
=20
 @itemize @bullet
@@ -5350,7 +5351,7 @@ More user feedback will help to stabilize it.)
=20
 @c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D lr.default-reductions
=20
-@item lr.default-reductions
+@item @code{lr.default-reductions}
 @findex %define lr.default-reductions
=20
 @itemize @bullet
@@ -5371,7 +5372,7 @@ feedback will help to stabilize it.)
=20
 @c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =
lr.keep-unreachable-states
=20
-@item lr.keep-unreachable-states
+@item @code{lr.keep-unreachable-states}
 @findex %define lr.keep-unreachable-states
=20
 @itemize @bullet
@@ -5384,7 +5385,7 @@ remain in the parser tables.  @xref{Unreachable =
States}.
=20
 @c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D lr.type
=20
-@item lr.type
+@item @code{lr.type}
 @findex %define lr.type
=20
 @itemize @bullet
@@ -5399,7 +5400,9 @@ More user feedback will help to stabilize it.)
 @item Default Value: @code{lalr}
 @end itemize
=20
-@item namespace
+@c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D namespace
+
+@item @code{namespace}
 @findex %define namespace
=20
 @itemize
@@ -5452,7 +5455,7 @@ The parser namespace is @code{foo} and =
@code{yylex} is referenced as
 @end itemize
=20
 @c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D parse.lac
-@item parse.lac
+@item @code{parse.lac}
 @findex %define parse.lac
=20
 @itemize
@@ -5585,34 +5588,62 @@ of the standard Bison skeletons.
 @section Multiple Parsers in the Same Program
=20
 Most programs that use Bison parse only one language and therefore =
contain
-only one Bison parser.  But what if you want to parse more than one
-language with the same program?  Then you need to avoid a name conflict
-between different definitions of @code{yyparse}, @code{yylval}, and so =
on.
-
-The easy way to do this is to use the option @samp{-p @var{prefix}}
-(@pxref{Invocation, ,Invoking Bison}).  This renames the interface
-functions and variables of the Bison parser to start with @var{prefix}
-instead of @samp{yy}.  You can use this to give each parser distinct
-names that do not conflict.
-
-The precise list of symbols renamed is @code{yyparse}, @code{yylex},
-@code{yyerror}, @code{yynerrs}, @code{yylval}, @code{yylloc},
-@code{yychar} and @code{yydebug}.  If you use a push parser,
-@code{yypush_parse}, @code{yypull_parse}, @code{yypstate},
-@code{yypstate_new} and @code{yypstate_delete} will also be renamed.
-For example, if you use @samp{-p c}, the names become @code{cparse},
-@code{clex}, and so on.
-
-@strong{All the other variables and macros associated with Bison are =
not
-renamed.} These others are not global; there is no conflict if the same
-name is used in different parsers.  For example, @code{YYSTYPE} is not
-renamed, but defining this in different ways in different parsers =
causes
-no trouble (@pxref{Value Type, ,Data Types of Semantic Values}).
-
-The @samp{-p} option works by adding macro definitions to the
-beginning of the parser implementation file, defining @code{yyparse}
-as @code{@var{prefix}parse}, and so on.  This effectively substitutes
-one name for the other in the entire parser implementation file.
+only one Bison parser.  But what if you want to parse more than one =
language
+with the same program?  Then you need to avoid name conflicts between
+different definitions of functions and variables such as =
@code{yyparse},
+@code{yylval}.  To use different parsers from the same compilation =
unit, you
+also need to avoid conflicts on types and macros (e.g., @code{YYSTYPE})
+exported in the generated header.
+
+The easy way to do this is to define the @code{%define} variable
+@code{api.prefix} (possibly using the option
+@samp{-Dapi.prefix=3D@var{prefix}}, see @ref{Invocation, ,Invoking =
Bison}).
+This renames the interface functions and variables of the Bison parser =
to
+start with @var{prefix} instead of @samp{yy}, and all the macros to =
start by
+@var{PREFIX} (i.e., @var{prefix} upper cased) instead of @samp{YY}.  =
You can
+use this to give each parser distinct names that do not conflict.
+
+The renamed symbols include @code{yyparse}, @code{yylex}, =
@code{yyerror},
+@code{yynerrs}, @code{yylval}, @code{yylloc}, @code{yychar} and
+@code{yydebug}.  If you use a push parser, @code{yypush_parse},
+@code{yypull_parse}, @code{yypstate}, @code{yypstate_new} and
+@code{yypstate_delete} will also be renamed.  The renamed macros =
include
+@code{YYSTYPE}, @code{YYSTYPE_IS_TRIVIAL}, @code{YYSTYPE_IS_DECLARED},
+@code{YYLTYPE}, @code{YYLTYPE_IS_TRIVIAL}, and =
@code{YYLTYPE_IS_DECLARED}.
+
+For example, if you use @samp{%define api.prefix c}, the names become
+@code{cparse}, @code{clex}, @dots{}, @code{CSTYPE}, @code{CLTYPE}, and =
so
+on.
+
+The @code{%define} variable @code{api.prefix} works in two different =
ways.
+In the implementation file, it works by adding macro definitions to the
+beginning of the parser implementation file, defining @code{yyparse} as
+@code{@var{prefix}parse}, and so on:
+
+@example
+#define YYSTYPE CTYPE
+#define yyparse cparse
+#define yylval  clval
+...
+YYSTYPE yylval;
+int yyparse (void);
+@end example
+
+This effectively substitutes one name for the other in the entire =
parser
+implementation file, thus the ``original'' names (@code{yylex},
+@code{YYSTYPE}, @dots{}) are also usable in the parser implementation =
file.
+
+However, in the parser header file, the symbols are defined renamed, =
for
+instance:
+
+@example
+extern CSTYPE clval;
+int cparse (void);
+@end example
+
+Previously, a similar feature was provided by the obsoleted directive
+@code{%name-prefix} (@pxref{Table of Symbols, ,Bison Symbols}) and =
option
+@code{--name-prefix} (@pxref{Bison Options}).
=20
 @node Interface
 @chapter Parser C-Language Interface
@@ -8924,8 +8955,9 @@ Pretend that @code{%locations} was specified.  =
@xref{Decl Summary}.
=20
 @item -p @var{prefix}
 @itemx --name-prefix=3D@var{prefix}
-Pretend that @code{%name-prefix "@var{prefix}"} was specified.
-@xref{Decl Summary}.
+Pretend that @code{%name-prefix "@var{prefix}"} was specified =
(@pxref{Decl
+Summary}).  Obsoleted by @code{-Dapi.prefix=3D@var{prefix}}.  =
@xref{Multiple
+Parsers, ,Multiple Parsers in the Same Program}.
=20
 @item -l
 @itemx --no-lines
@@ -11054,9 +11086,24 @@ function is applied to the two semantic values =
to get a single result.
 @end deffn
=20
 @deffn {Directive} %name-prefix "@var{prefix}"
-Bison declaration to rename the external symbols.  @xref{Decl Summary}.
+Obsoleted by the @code{%define} variable @code{api.prefix} =
(@pxref{Multiple
+Parsers, ,Multiple Parsers in the Same Program}).
+
+Rename the external symbols (variables and functions) used in the =
parser so
+that they start with @var{prefix} instead of @samp{yy}.  Contrary to
+@code{api.prefix}, do no rename types and macros.
+
+The precise list of symbols renamed in C parsers is @code{yyparse},
+@code{yylex}, @code{yyerror}, @code{yynerrs}, @code{yylval}, =
@code{yychar},
+@code{yydebug}, and (if locations are used) @code{yylloc}.  If you use =
a
+push parser, @code{yypush_parse}, @code{yypull_parse}, @code{yypstate},
+@code{yypstate_new} and @code{yypstate_delete} will also be renamed.  =
For
+example, if you use @samp{%name-prefix "c_"}, the names become
+@code{c_parse}, @code{c_lex}, and so on.  For C++ parsers, see the
+@code{%define namespace} documentation in this section.
 @end deffn
=20
+
 @ifset defaultprec
 @deffn {Directive} %no-default-prec
 Do not assign a precedence to rules that lack an explicit @samp{%prec}
diff --git a/src/getargs.c b/src/getargs.c
index 3fa2a7a..599cbba 100644
--- a/src/getargs.c
+++ b/src/getargs.c
@@ -311,10 +311,11 @@ Parser:\n\
   -S, --skeleton=3DFILE              specify the skeleton to use\n\
   -t, --debug                      instrument the parser for =
debugging\n\
       --locations                  enable location support\n\
-  -D, --define=3DNAME[=3DVALUE]        similar to `%define NAME =
\"VALUE\"'\n\
-  -F, --force-define=3DNAME[=3DVALUE]  override `%define NAME =
\"VALUE\"'\n\
+  -D, --define=3DNAME[=3DVALUE]        similar to '%define NAME =
\"VALUE\"'\n\
+  -F, --force-define=3DNAME[=3DVALUE]  override '%define NAME =
\"VALUE\"'\n\
   -p, --name-prefix=3DPREFIX         prepend PREFIX to the external =
symbols\n\
-  -l, --no-lines                   don't generate `#line' directives\n\
+                                   deprecated by =
'-Dapi.prefix=3DPREFIX'\n\
+  -l, --no-lines                   don't generate '#line' directives\n\
   -k, --token-table                include a table of token names\n\
 \n\
 "), stdout);
diff --git a/tests/headers.at b/tests/headers.at
index 549d62d..970d3f1 100644
--- a/tests/headers.at
+++ b/tests/headers.at
@@ -117,3 +117,93 @@ AT_COMPILE([caller], [caller.o input.o])
 AT_PARSER_CHECK([./caller])
=20
 AT_CLEANUP
+
+## ----------------- ##
+## Several parsers.  ##
+## ----------------- ##
+
+AT_SETUP([Several parsers])
+
+# AT_DATA_GRAMMAR_SEVERAL([PREFIX], [DIRECTIVES])
+# -----------------------------------------------
+# Generate and compile to *.o.  Make sure there is no YY* nor yy* in
+# the header (but YYDEBUG and YYPARSE_PARAM).
+m4_define([AT_DATA_GRAMMAR_SEVERAL],
+[AT_BISON_OPTION_PUSHDEFS([%define api.prefix "$1_" $2])
+AT_DATA_GRAMMAR([AT_SKEL_CC_IF([$1.yy], [$1.y])],
+[[%define api.prefix "$1_"
+$2
+%union
+{
+  int integer;
+}
+%{
+#include <stdio.h>
+  ]AT_YYERROR_DECLARE[
+  ]AT_YYLEX_DECLARE[
+%}
+%%
+exp:
+  'x' '1' { printf ("x1\n"); }
+| 'x' '2' { printf ("x2\n"); }
+| 'x' '3' { printf ("x3\n"); }
+| 'x' '4' { printf ("x4\n"); }
+| 'x' '5' { printf ("x5\n"); }
+| 'x' '6' { printf ("x6\n"); }
+;
+
+%%
+]AT_YYERROR_DEFINE[
+]AT_YYLEX_DEFINE(["$1"])[
+]])
+
+AT_BISON_CHECK([-d -o AT_SKEL_CC_IF([$1.cc $1.yy], [$1.c $1.y])])
+# C++ output relies on namespaces and still uses yy a lot.
+AT_SKEL_CC_IF([],
+  [AT_CHECK([$EGREP -i yy $1.h | $EGREP -v 'YY(DEBUG|PARSE_PARAM)'], =
[1])])
+AT_LANG_COMPILE([$1.o])
+AT_BISON_OPTION_POPDEFS
+])
+
+AT_DATA([main.cc],
+[[extern "C"
+{
+  #include "x1.h"
+  #include "x2.h"
+  #include "x3.h"
+  #include "x4.h"
+}
+#include "x5.hh"
+//#include "x6.hh"
+int
+main (void)
+{
+  int errs =3D 0;
+  errs +=3D x1_parse();
+  errs +=3D x2_parse();
+  errs +=3D x3_parse();
+  errs +=3D x4_parse();
+  x5_::parser p5;
+  errs +=3D p5.parse();
+//  errs +=3D x6_parse();
+  return !!errs;
+}
+]])
+
+AT_DATA_GRAMMAR_SEVERAL([x1], [])
+AT_DATA_GRAMMAR_SEVERAL([x2], [%locations %debug])
+AT_DATA_GRAMMAR_SEVERAL([x3], [%glr-parser])
+AT_DATA_GRAMMAR_SEVERAL([x4], [%locations %debug %glr-parser])
+AT_DATA_GRAMMAR_SEVERAL([x5], [%locations %debug %language "c++"])
+#AT_DATA_GRAMMAR_SEVERAL([x6], [%locations %language "c++"])
+
+AT_COMPILE_CXX([parser], [x1.o x2.o x3.o x4.o x5.o main.cc])
+AT_CHECK([./parser], [0],
+[[x1
+x2
+x3
+x4
+x5
+]])
+
+AT_CLEANUP
diff --git a/tests/local.at b/tests/local.at
index 1baf661..7a981c6 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -145,6 +145,8 @@ m4_pushdef([AT_API_prefix],
 [m4_bmatch([$3], [%define api\.prefix ".*"],
            [m4_bregexp([$3], [%define api\.prefix "\([^""]*\)"], =
[\1])],
            [yy])])
+m4_pushdef([AT_API_PREFIX],
+[m4_toupper(AT_API_prefix)])
 # yyerror receives the location if %location & %pure & (%glr or =
%parse-param).
 m4_pushdef([AT_YYERROR_ARG_LOC_IF],
 [AT_GLR_OR_PARAM_IF([AT_PURE_AND_LOC_IF([$1], [$2])],
@@ -165,10 +167,10 @@ m4_pushdef([AT_PURE_LEX_IF],
=20
 m4_pushdef([AT_YYSTYPE],
 [AT_SKEL_CC_IF([AT_NAME_PREFIX[::parser::semantic_type]],
-               [[YYSTYPE]])])
+               [AT_API_PREFIX[STYPE]])])
 m4_pushdef([AT_YYLTYPE],
 [AT_SKEL_CC_IF([AT_NAME_PREFIX[::parser::location_type]],
-               [[YYLTYPE]])])
+               [AT_API_PREFIX[LTYPE]])])
=20
=20
 AT_PURE_LEX_IF(
@@ -221,6 +223,7 @@ m4_popdef([AT_LOC])
 m4_popdef([AT_PURE_LEX_IF])
 m4_popdef([AT_YYERROR_SEES_LOC_IF])
 m4_popdef([AT_YYERROR_ARG_LOC_IF])
+m4_popdef([AT_API_PREFIX])
 m4_popdef([AT_API_prefix])
 m4_popdef([AT_NAME_PREFIX])
 m4_popdef([AT_GLR_OR_PARAM_IF])
--=20
1.7.11.1




From MAILER-DAEMON Mon Jul 02 09:41:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SlgsV-0003V2-QI
	for mharc-bug-bison@gnu.org; Mon, 02 Jul 2012 09:41:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46924)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SlgsM-0003Ui-T4
	for bug-bison@gnu.org; Mon, 02 Jul 2012 09:41:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SlgsB-0007Fw-Jh
	for bug-bison@gnu.org; Mon, 02 Jul 2012 09:41:14 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:33706
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Slgrs-00079y-Gl; Mon, 02 Jul 2012 09:40:45 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Slgrp-0000LT-EM; Mon, 02 Jul 2012 15:40:41 +0200
Subject: Re: yacc.c does not prototype yyparse in the header
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_561046B3-5120-423B-AA77-922C6DD53112"
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <B84B4E13-45E1-43CE-A466-4B2193E2A0C7@lrde.epita.fr>
Date: Mon, 2 Jul 2012 15:40:47 +0200
Message-Id: <39C37698-1C33-484C-AEB3-1110EB72C416@lrde.epita.fr>
References: <80AD8426-5BCA-4A0A-9529-EF786DC48AC9@lrde.epita.fr>
	<4FCFCDA2.9080206@gnu.org>
	<9733E760-8220-445A-8AB9-D7A19247A805@lrde.epita.fr>
	<4FD236E7.6080609@gnu.org>
	<554D01B6-ABD2-4998-A40F-6B13793DBF72@lrde.epita.fr>
	<4FD5BA89.0@cs.ucla.edu>
	<59EB43E0-4486-4258-A37F-3D91415F51EA@lrde.epita.fr>
	<4FD77125.2070807@cs.ucla.edu>
	<AE9C526A-D5C4-4AAB-80F2-7D12BF1A4C86@lrde.epita.fr>
	<4FD8C479.6030703@cs.ucla.edu>
	<F8390949-E9DA-4632-8C04-A087D7E76757@lrde.epita.fr>
	<F9C11FC5-D73F-4D12-94B0-DA8001E89180@lrde.epita.fr>
	<B84B4E13-45E1-43CE-A466-4B2193E2A0C7@lrde.epita.fr>
To: Paul Eggert <eggert@cs.ucla.edu>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Patches <bison-patches@gnu.org>, Bruce Korb <bkorb@gnu.org>,
	Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jul 2012 13:41:22 -0000


--Apple-Mail=_561046B3-5120-423B-AA77-922C6DD53112
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Hi Paul,

I'd be happy to have your opinion on this.

The installed api.prefix patch does not rename YYDEBUG.
This was annoying me, I felt uncomfortable, but I expected
that people still want to be able to -DYYDEBUG et voil=E0.
I have been bitten by the approach, as detailed in the commit
message:

    The testsuite in master has shown weird errors for the "Mulitple
    Parsers" tests: the caller of "p5.parse()" received some apparently
    random value instead of 0, while tracing p5.parse() showed that the
    function was really returning 0.
   =20
    It turns out that were mixing several parser headers, some generated
    without %debug, others with.  In particular the C++ parser was
    generated with %debug, i.e., with:
   =20
      #ifndef YYDEBUG
      # define YYDEBUG 1
      #endif
   =20
    and compiled separatedly from the other parser.  Yet, its header was
    included after the one of another parser, this time without %debug, =
i.e., with
   =20
      #ifndef YYDEBUG
      # define YYDEBUG 0
      #endif
   =20
    in its header.  As a result, the parser was compiled with YYDEBUG =
set,
    but its header was used without.  Since the layout of the objects =
are
    then completely different, boom.

So I chose to follow the track I was initially thinking about:
rename YYDEBUG according to api.prefix, but still use YYDEBUG
as a default value.  The NEWS file provides a rather clear (well I
hope it does) demonstration of what api.prefix does, including to
YYDEBUG:

  The following examples compares both:

    %name-prefix "bar_"               | %define api.prefix "bar_"
    %token <ival> FOO                   %token <ival> FOO
    %union { int ival; }                %union { int ival; }
    %%                                  %%
    exp: 'a';                           exp: 'a';

  bison generates:

    #ifndef BAR_FOO_H                   #ifndef BAR_FOO_H
    # define BAR_FOO_H                  # define BAR_FOO_H

    /* Enabling traces.  */             /* Enabling traces.  */
    # ifndef YYDEBUG                  | # ifndef BAR_DEBUG
                                      > #  if defined YYDEBUG
                                      > #   if YYDEBUG
                                      > #    define BAR_DEBUG 1
                                      > #   else
                                      > #    define BAR_DEBUG 0
                                      > #   endif
                                      > #  else
    #  define YYDEBUG 0               | #   define BAR_DEBUG 0
                                      > #  endif
    # endif                           | # endif

    # if YYDEBUG                      | # if BAR_DEBUG
    extern int bar_debug;               extern int bar_debug;
    # endif                             # endif

    /* Tokens.  */                      /* Tokens.  */
    # ifndef YYTOKENTYPE              | # ifndef BAR_TOKENTYPE
    #  define YYTOKENTYPE             | #  define BAR_TOKENTYPE
       enum yytokentype {             |    enum bar_tokentype {
         FOO =3D 258                           FOO =3D 258
       };                                  };
    # endif                             # endif

    #if ! defined YYSTYPE \           | #if ! defined BAR_STYPE \
     && ! defined YYSTYPE_IS_DECLARED |  && ! defined =
BAR_STYPE_IS_DECLARED
    typedef union YYSTYPE             | typedef union BAR_STYPE
    {                                   {
     int ival;                           int ival;
    } YYSTYPE;                        | } BAR_STYPE;
    # define YYSTYPE_IS_DECLARED 1    | # define BAR_STYPE_IS_DECLARED 1
    #endif                              #endif

    extern YYSTYPE bar_lval;          | extern BAR_STYPE bar_lval;

    int bar_parse (void);               int bar_parse (void);

    #endif /* !BAR_FOO_H  */            #endif /* !BAR_FOO_H  */

Do you agree with this approach?  Instead of the lengthy

#ifndef FOO_DEBUG
# if defined YYDEBUG
#  if YYDEBUG
#   define FOO_DEBUG 1
#  else
#   define FOO_DEBUG 0
#  endif

I was considering

#ifndef FOO_DEBUG
# if defined YYDEBUG
#  define FOO_DEBUG (!!(YYDEBUG))
# endif

If you have an opinion, I'd be happy to read about it.

Thanks!

(It is currently in the api.prefix branch).

=46rom 07ed7083818638b61e0b0f45b916720685f6267b Mon Sep 17 00:00:00 2001
From: Akim Demaille <akim@lrde.epita.fr>
Date: Mon, 2 Jul 2012 14:56:22 +0200
Subject: [PATCH] api.prefix: also rename YYDEBUG.

The testsuite in master has shown weird errors for the "Mulitple
Parsers" tests: the caller of p5.parse() received some apparently
random value, while tracing p5.parse() showed that the function was
consistently returning 0.

It happens when mixing several parser headers, some generated without
%debug, others with.  In particular the C++ parser was generated with
%debug, i.e., with:

  #ifndef YYDEBUG
  # define YYDEBUG 1
  #endif

and compiled separatedly.  Yet, its header was included after the one
of another parser, this time without %debug, i.e., with

  #ifndef YYDEBUG
  # define YYDEBUG 0
  #endif

in its header.  As a result, the parser was compiled with YYDEBUG set,
but its header was used without.  Since the layout of the objects are
then completely different, boom.

Therefore, do not change the value of YYDEBUG.  Rather, use it as a
default value for <API.PREFIX>DEBUG.

* data/c.m4 (b4_define_YYDEBUG): New.
* data/glr.c, data/glr.cc, data/lalr1.cc, data/yacc.c: Use it.
* NEWS: Document it.
---
 NEWS          | 17 +++++++++++++----
 data/c.m4     | 28 +++++++++++++++++++++++-----
 data/glr.c    | 22 +++++++++++-----------
 data/glr.cc   | 13 +++++--------
 data/lalr1.cc | 33 +++++++++++++++------------------
 data/yacc.c   | 18 +++++++++---------
 6 files changed, 76 insertions(+), 55 deletions(-)

diff --git a/NEWS b/NEWS
index 403265f..ec4e33a 100644
--- a/NEWS
+++ b/NEWS
@@ -94,10 +94,19 @@ GNU Bison NEWS
     # define BAR_FOO_H                  # define BAR_FOO_H
=20
     /* Enabling traces.  */             /* Enabling traces.  */
-    # ifndef YYDEBUG                    # ifndef YYDEBUG
-    #  define YYDEBUG 0                 #  define YYDEBUG 0
-    # endif                             # endif
-    # if YYDEBUG                        # if YYDEBUG
+    # ifndef YYDEBUG                  | # ifndef BAR_DEBUG
+                                      > #  if defined YYDEBUG
+                                      > #   if YYDEBUG
+                                      > #    define BAR_DEBUG 1
+                                      > #   else
+                                      > #    define BAR_DEBUG 0
+                                      > #   endif
+                                      > #  else
+    #  define YYDEBUG 0               | #   define BAR_DEBUG 0
+                                      > #  endif
+    # endif                           | # endif
+
+    # if YYDEBUG                      | # if BAR_DEBUG
     extern int bar_debug;               extern int bar_debug;
     # endif                             # endif
=20
diff --git a/data/c.m4 b/data/c.m4
index 0b2699a..3239c3e 100644
--- a/data/c.m4
+++ b/data/c.m4
@@ -581,14 +581,32 @@ b4_pure_if([], [[extern ]b4_api_PREFIX[STYPE =
]b4_prefix[lval;
 ]b4_locations_if([[extern ]b4_api_PREFIX[LTYPE =
]b4_prefix[lloc;]])])[]dnl
 ])
=20
-# b4_declare_yydebug
+# b4_define_YYDEBUG
 # ------------------
-m4_define([b4_declare_yydebug],
+m4_define([b4_define_YYDEBUG],
 [[/* Enabling traces.  */
-#ifndef YYDEBUG
+]m4_if(b4_api_prefix, [yy],
+[[#ifndef YYDEBUG
 # define YYDEBUG ]b4_debug_flag[
-#endif
-#if YYDEBUG
+#endif]],
+[[#ifndef ]b4_api_PREFIX[DEBUG
+# if defined YYDEBUG
+#  if YYDEBUG
+#   define ]b4_api_PREFIX[DEBUG 1
+#  else
+#   define ]b4_api_PREFIX[DEBUG 0
+#  endif
+# else /* ! defined YYDEBUG */
+#  define ]b4_api_PREFIX[DEBUG ]b4_debug_flag[
+# endif /* ! defined ]b4_api_PREFIX[DEBUG */
+#endif  /* ! defined ]b4_api_PREFIX[DEBUG */]])[]dnl
+])
+
+# b4_declare_yydebug
+# ------------------
+m4_define([b4_declare_yydebug],
+[b4_define_YYDEBUG[
+#if ]b4_api_PREFIX[DEBUG
 extern int ]b4_prefix[debug;
 #endif][]dnl
 ])
diff --git a/data/glr.c b/data/glr.c
index ce61160..8dd2108 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -349,7 +349,7 @@ static const ]b4_int_type_for([b4_translate])[ =
yytranslate[] =3D
   ]b4_translate[
 };
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
    YYRHS.  */
 static const ]b4_int_type_for([b4_prhs])[ yyprhs[] =3D
@@ -370,7 +370,7 @@ static const ]b4_int_type_for([b4_rline])[ yyrline[] =
=3D
 };
 #endif
=20
-#if YYDEBUG || YYERROR_VERBOSE || ]b4_token_table_flag[
+#if ]b4_api_PREFIX[DEBUG || YYERROR_VERBOSE || ]b4_token_table_flag[
 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
 static const char *const yytname[] =3D
@@ -553,7 +553,7 @@ typedef enum { yyok, yyaccept, yyabort, yyerr } =
YYRESULTTAG;
    do { YYRESULTTAG yyflag =3D YYE; if (yyflag !=3D yyok) return =
yyflag; }       \
    while (YYID (0))
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
=20
 # ifndef YYFPRINTF
 #  define YYFPRINTF fprintf
@@ -581,12 +581,12 @@ do {                                               =
             \
    multiple parsers can coexist.  */
 int yydebug;
=20
-#else /* !YYDEBUG */
+#else /* !]b4_api_PREFIX[DEBUG */
=20
 # define YYDPRINTF(Args)
 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
=20
-#endif /* !YYDEBUG */
+#endif /* !]b4_api_PREFIX[DEBUG */
=20
 /* YYINITDEPTH -- initial size of the parser's stacks.  */
 #ifndef YYINITDEPTH
@@ -825,7 +825,7 @@ yyMemoryExhausted (yyGLRStack* yystackp)
   YYLONGJMP (yystackp->yyexception_buffer, 2);
 }
=20
-#if YYDEBUG || YYERROR_VERBOSE
+#if ]b4_api_PREFIX[DEBUG || YYERROR_VERBOSE
 /** A printable representation of TOKEN.  */
 static inline const char*
 yytokenName (yySymbol yytoken)
@@ -962,7 +962,7 @@ yydestroyGLRState (char const *yymsg, yyGLRState =
*yys]b4_user_formals[)
                 =
&yys->yysemantics.yysval]b4_locuser_args([&yys->yyloc])[);
   else
     {
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
       if (yydebug)
         {
           if (yys->yysemantics.yyfirstVal)
@@ -1391,7 +1391,7 @@ yydoAction (yyGLRStack* yystackp, size_t yyk, =
yyRuleNum yyrule,
     }
 }
=20
-#if !YYDEBUG
+#if !]b4_api_PREFIX[DEBUG
 # define YY_REDUCE_PRINT(Args)
 #else
 # define YY_REDUCE_PRINT(Args)          \
@@ -1712,7 +1712,7 @@ yyresolveAction (yySemanticOption* yyopt, =
yyGLRStack* yystackp,
   return yyflag;
 }
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 static void
 yyreportTree (yySemanticOption* yyx, int yyindent)
 {
@@ -1767,7 +1767,7 @@ yyreportAmbiguity (yySemanticOption* yyx0,
   YYUSE (yyx0);
   YYUSE (yyx1);
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   YYFPRINTF (stderr, "Ambiguity detected.\n");
   YYFPRINTF (stderr, "Option 1,\n");
   yyreportTree (yyx0, 2);
@@ -2551,7 +2551,7 @@ m4_popdef([b4_at_dollar])])dnl
 }
=20
 /* DEBUGGING ONLY */
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 static void yypstack (yyGLRStack* yystackp, size_t yyk)
   __attribute__ ((__unused__));
 static void yypdumpstack (yyGLRStack* yystackp) __attribute__ =
((__unused__));
diff --git a/data/glr.cc b/data/glr.cc
index 427353e..0d4e365 100644
--- a/data/glr.cc
+++ b/data/glr.cc
@@ -127,7 +127,7 @@ m4_pushdef([b4_parse_param], =
m4_defn([b4_parse_param_orig]))dnl
 [  /// Build a parser object.
   ]b4_parser_class_name::b4_parser_class_name[ =
(]b4_parse_param_decl[)]m4_ifset([b4_parse_param], [
     :])[
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
     ]m4_ifset([b4_parse_param], [  ], [ :])[yydebug_ (false),
       yycdebug_ (&std::cerr)]m4_ifset([b4_parse_param], [,])[
 #endif]b4_parse_param_cons[
@@ -144,7 +144,7 @@ m4_pushdef([b4_parse_param], =
m4_defn([b4_parse_param_orig]))dnl
     return ::yyparse (*this]b4_user_args[);
   }
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   /*--------------------.
   | Print this symbol.  |
   `--------------------*/
@@ -239,10 +239,7 @@ b4_copyright([Skeleton interface for Bison GLR =
parsers in C++],
 ]b4_percent_define_ifdef([[location_type]], [],
                          [[# include "location.hh"]])[
=20
-/* Enabling traces.  */
-#ifndef YYDEBUG
-# define YYDEBUG ]b4_debug_flag[
-#endif
+]b4_define_YYDEBUG[
=20
 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
    If N is 0, then set CURRENT to the empty location which ends
@@ -321,7 +318,7 @@ b4_user_stype
     virtual void error (const location_type& loc, const std::string& =
msg);
   private:
=20
-#if YYDEBUG
+# if ]b4_api_PREFIX[DEBUG
   public:
     /// \brief Report a symbol value on the debug stream.
     /// \param yytype       The token type.
@@ -341,7 +338,7 @@ b4_user_stype
     /* Debugging.  */
     int yydebug_;
     std::ostream* yycdebug_;
-#endif
+# endif
=20
 ]b4_parse_param_vars[
   };
diff --git a/data/lalr1.cc b/data/lalr1.cc
index 337af10..14dc706 100644
--- a/data/lalr1.cc
+++ b/data/lalr1.cc
@@ -57,10 +57,7 @@ b4_copyright([Skeleton interface for Bison LALR(1) =
parsers in C++],
=20
 ]b4_null_define[
=20
-/* Enabling traces.  */
-#ifndef YYDEBUG
-# define YYDEBUG ]b4_debug_flag[
-#endif
+]b4_define_YYDEBUG[
=20
 ]b4_namespace_open[
=20
@@ -100,7 +97,7 @@ b4_user_stype
     /// \returns  0 iff parsing succeeded.
     virtual int parse ();
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
     /// The current debugging stream.
     std::ostream& debug_stream () const;
     /// Set the current debugging stream.
@@ -125,7 +122,7 @@ b4_user_stype
     /// \param tok     the lookahead token.
     virtual std::string yysyntax_error_ (int yystate, int tok);
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
     /// \brief Report a symbol value on the debug stream.
     /// \param yytype       The token type.
     /// \param yyvaluep     Its semantic value.
@@ -203,10 +200,10 @@ b4_user_stype
     /// Convert the symbol name \a n to a form suitable for a =
diagnostic.
     static std::string yytnamerr_ (const char *n);])[
=20
-]b4_token_table_if([], [[#if YYDEBUG]])[
+]b4_token_table_if([], [[#if ]b4_api_PREFIX[DEBUG]])[
     /// For a symbol, its name in clear.
     static const char* const yytname_[];
-]b4_token_table_if([[#if YYDEBUG]])[
+]b4_token_table_if([[#if ]b4_api_PREFIX[DEBUG]])[
     /// A type to store symbol numbers and -1.
     typedef ]b4_int_type_for([b4_rhs])[ rhs_number_type;
     /// A `-1'-separated list of the rules' RHS.
@@ -325,7 +322,7 @@ b4_percent_code_get[]dnl
 #define YYUSE(e) ((void) (e))
=20
 /* Enable debugging if requested.  */
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
=20
 /* A pseudo ostream that takes yydebug_ into account.  */
 # define YYCDEBUG if (yydebug_) (*yycdebug_)
@@ -352,14 +349,14 @@ do {					\
     yystack_print_ ();			\
 } while (false)
=20
-#else /* !YYDEBUG */
+#else /* !]b4_api_PREFIX[DEBUG */
=20
 # define YYCDEBUG if (false) std::cerr
 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 # define YY_REDUCE_PRINT(Rule)
 # define YY_STACK_PRINT()
=20
-#endif /* !YYDEBUG */
+#endif /* !]b4_api_PREFIX[DEBUG */
=20
 #define yyerrok		(yyerrstatus_ =3D 0)
 #define yyclearin	(yychar =3D yyempty_)
@@ -412,7 +409,7 @@ do {					\
   /// Build a parser object.
   ]b4_parser_class_name::b4_parser_class_name[ =
(]b4_parse_param_decl[)]m4_ifset([b4_parse_param], [
     :])[
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
     ]m4_ifset([b4_parse_param], [  ], [ :])[yydebug_ (false),
       yycdebug_ (&std::cerr)]m4_ifset([b4_parse_param], [,])[
 #endif]b4_parse_param_cons[
@@ -423,7 +420,7 @@ do {					\
   {
   }
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   /*--------------------------------.
   | Print this symbol on YYOUTPUT.  |
   `--------------------------------*/
@@ -484,7 +481,7 @@ do {					\
     yylocation_stack_.pop (n);
   }
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   std::ostream&
   ]b4_parser_class_name[::debug_stream () const
   {
@@ -1012,7 +1009,7 @@ b4_error_verbose_if([int yystate, int yytoken],
     ]b4_stos[
   };
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   /* TOKEN_NUMBER_[YYLEX-NUM] -- Internal symbol number corresponding
      to YYLEX-NUM.  */
   const ]b4_int_type_for([b4_toknum])[
@@ -1036,7 +1033,7 @@ b4_error_verbose_if([int yystate, int yytoken],
     ]b4_r2[
   };
=20
-]b4_token_table_if([], [[#if YYDEBUG]])[
+]b4_token_table_if([], [[#if ]b4_api_PREFIX[DEBUG]])[
   /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
      First, the terminals, then, starting at \a yyntokens_, =
nonterminals.  */
   const char*
@@ -1045,7 +1042,7 @@ b4_error_verbose_if([int yystate, int yytoken],
     ]b4_tname[
   };
=20
-]b4_token_table_if([[#if YYDEBUG]])[
+]b4_token_table_if([[#if ]b4_api_PREFIX[DEBUG]])[
   /* YYRHS -- A `-1'-separated list of the rules' RHS.  */
   const ]b4_parser_class_name[::rhs_number_type
   ]b4_parser_class_name[::yyrhs_[] =3D
@@ -1095,7 +1092,7 @@ b4_error_verbose_if([int yystate, int yytoken],
 		       &]b4_rhs_value(yynrhs, yyi + 1)[,
 		       &]b4_rhs_location(yynrhs, yyi + 1)[);
   }
-#endif // YYDEBUG
+#endif // ]b4_api_PREFIX[DEBUG
=20
   /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  =
*/
   ]b4_parser_class_name[::token_number_type
diff --git a/data/yacc.c b/data/yacc.c
index 8c595f9..3a67914 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -589,7 +589,7 @@ static const ]b4_int_type_for([b4_translate])[ =
yytranslate[] =3D
   ]b4_translate[
 };
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
    YYRHS.  */
 static const ]b4_int_type_for([b4_prhs])[ yyprhs[] =3D
@@ -610,7 +610,7 @@ static const ]b4_int_type_for([b4_rline])[ yyrline[] =
=3D
 };
 #endif
=20
-#if YYDEBUG || YYERROR_VERBOSE || ]b4_token_table_flag[
+#if ]b4_api_PREFIX[DEBUG || YYERROR_VERBOSE || ]b4_token_table_flag[
 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
 static const char *const yytname[] =3D
@@ -803,7 +803,7 @@ while (YYID (0))
 #endif
=20
 /* Enable debugging if requested.  */
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
=20
 # ifndef YYFPRINTF
 #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
@@ -890,12 +890,12 @@ do {					\
 /* Nonzero means print parse trace.  It is left uninitialized so that
    multiple parsers can coexist.  */
 int yydebug;
-#else /* !YYDEBUG */
+#else /* !]b4_api_PREFIX[DEBUG */
 # define YYDPRINTF(Args)
 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 # define YY_STACK_PRINT(Bottom, Top)
 # define YY_REDUCE_PRINT(Rule)
-#endif /* !YYDEBUG */
+#endif /* !]b4_api_PREFIX[DEBUG */
=20
=20
 /* YYINITDEPTH -- initial size of the parser's stacks.  */
@@ -926,7 +926,7 @@ int yydebug;
    required.  Return 1 if memory is exhausted.  */
 static int
 yy_lac_stack_realloc (YYSIZE_T *yycapacity, YYSIZE_T yyadd,
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
                       char const *yydebug_prefix,
                       char const *yydebug_suffix,
 #endif
@@ -1032,7 +1032,7 @@ do {                                               =
              \
    the parser stacks to try to find a new initial context in which the
    current lookahead is syntactically acceptable.  If it fails to find
    such a context, it discards the lookahead.  */
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 # define YY_LAC_DISCARD(Event)                                          =
 \
 do {                                                                    =
 \
   if (yy_lac_established)                                               =
 \
@@ -1135,7 +1135,7 @@ yy_lac (yytype_int16 *yyesa, yytype_int16 **yyes,
         else
           {
             if (yy_lac_stack_realloc (yyes_capacity, 1,
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
                                       " (", ")",
 #endif
                                       yyes, yyesa, &yyesp, yyes_prev))
@@ -1342,7 +1342,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char =
**yymsg,
                 yysize =3D yysize1;
               }
         }]b4_lac_if([[
-# if YYDEBUG
+# if ]b4_api_PREFIX[DEBUG
       else if (yydebug)
         YYFPRINTF (stderr, "No expected tokens.\n");
 # endif]])[
--=20
1.7.11.1


--Apple-Mail=_561046B3-5120-423B-AA77-922C6DD53112
Content-Disposition: attachment;
	filename=0001-api.prefix-also-rename-YYDEBUG.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="0001-api.prefix-also-rename-YYDEBUG.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=2007ed7083818638b61e0b0f45b916720685f6267b=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Akim=20Demaille=20<akim@lrde.epita.fr>=0ADate:=20=
Mon,=202=20Jul=202012=2014:56:22=20+0200=0ASubject:=20[PATCH]=20=
api.prefix:=20also=20rename=20YYDEBUG.=0A=0AThe=20testsuite=20in=20=
master=20has=20shown=20weird=20errors=20for=20the=20"Mulitple=0AParsers"=20=
tests:=20the=20caller=20of=20p5.parse()=20received=20some=20apparently=0A=
random=20value,=20while=20tracing=20p5.parse()=20showed=20that=20the=20=
function=20was=0Aconsistently=20returning=200.=0A=0AIt=20happens=20when=20=
mixing=20several=20parser=20headers,=20some=20generated=20without=0A=
%debug,=20others=20with.=20=20In=20particular=20the=20C++=20parser=20was=20=
generated=20with=0A%debug,=20i.e.,=20with:=0A=0A=20=20#ifndef=20YYDEBUG=0A=
=20=20#=20define=20YYDEBUG=201=0A=20=20#endif=0A=0Aand=20compiled=20=
separatedly.=20=20Yet,=20its=20header=20was=20included=20after=20the=20=
one=0Aof=20another=20parser,=20this=20time=20without=20%debug,=20i.e.,=20=
with=0A=0A=20=20#ifndef=20YYDEBUG=0A=20=20#=20define=20YYDEBUG=200=0A=20=20=
#endif=0A=0Ain=20its=20header.=20=20As=20a=20result,=20the=20parser=20=
was=20compiled=20with=20YYDEBUG=20set,=0Abut=20its=20header=20was=20used=20=
without.=20=20Since=20the=20layout=20of=20the=20objects=20are=0Athen=20=
completely=20different,=20boom.=0A=0ATherefore,=20do=20not=20change=20=
the=20value=20of=20YYDEBUG.=20=20Rather,=20use=20it=20as=20a=0Adefault=20=
value=20for=20<API.PREFIX>DEBUG.=0A=0A*=20data/c.m4=20=
(b4_define_YYDEBUG):=20New.=0A*=20data/glr.c,=20data/glr.cc,=20=
data/lalr1.cc,=20data/yacc.c:=20Use=20it.=0A*=20NEWS:=20Document=20it.=0A=
---=0A=20NEWS=20=20=20=20=20=20=20=20=20=20|=2017=20+++++++++++++----=0A=20=
data/c.m4=20=20=20=20=20|=2028=20+++++++++++++++++++++++-----=0A=20=
data/glr.c=20=20=20=20|=2022=20+++++++++++-----------=0A=20data/glr.cc=20=
=20=20|=2013=20+++++--------=0A=20data/lalr1.cc=20|=2033=20=
+++++++++++++++------------------=0A=20data/yacc.c=20=20=20|=2018=20=
+++++++++---------=0A=206=20files=20changed,=2076=20insertions(+),=2055=20=
deletions(-)=0A=0Adiff=20--git=20a/NEWS=20b/NEWS=0Aindex=20=
403265f..ec4e33a=20100644=0A---=20a/NEWS=0A+++=20b/NEWS=0A@@=20-94,10=20=
+94,19=20@@=20GNU=20Bison=20NEWS=0A=20=20=20=20=20#=20define=20BAR_FOO_H=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20#=20define=20=
BAR_FOO_H=0A=20=0A=20=20=20=20=20/*=20Enabling=20traces.=20=20*/=20=20=20=
=20=20=20=20=20=20=20=20=20=20/*=20Enabling=20traces.=20=20*/=0A-=20=20=20=
=20#=20ifndef=20YYDEBUG=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20#=20ifndef=20YYDEBUG=0A-=20=20=20=20#=20=20define=20YYDEBUG=200=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20#=20=20define=20YYDEBUG=20=
0=0A-=20=20=20=20#=20endif=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20#=20endif=0A-=20=20=20=20#=20if=20=
YYDEBUG=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20#=20if=20YYDEBUG=0A+=20=20=20=20#=20ifndef=20YYDEBUG=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20|=20#=20ifndef=20BAR_DEBUG=0A+=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20>=20#=20=20if=20defined=20YYDEBUG=0A+=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20>=20#=20=20=20if=20YYDEBUG=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20>=20#=20=20=20=20define=20BAR_DEBUG=201=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20>=20#=20=20=20else=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20>=20#=20=20=20=20define=20BAR_DEBUG=200=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20>=20#=20=20=20endif=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20>=20#=20=20else=0A+=20=20=20=20#=20=20=
define=20YYDEBUG=200=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=20#=20=
=20=20define=20BAR_DEBUG=200=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
>=20#=20=20endif=0A+=20=20=20=20#=20endif=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=20#=20endif=0A+=0A+=20=20=
=20=20#=20if=20YYDEBUG=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20|=20#=20if=20BAR_DEBUG=0A=20=20=20=20=20extern=20int=20=
bar_debug;=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20extern=20int=20=
bar_debug;=0A=20=20=20=20=20#=20endif=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20#=20endif=0A=20=0A=
diff=20--git=20a/data/c.m4=20b/data/c.m4=0Aindex=200b2699a..3239c3e=20=
100644=0A---=20a/data/c.m4=0A+++=20b/data/c.m4=0A@@=20-581,14=20+581,32=20=
@@=20b4_pure_if([],=20[[extern=20]b4_api_PREFIX[STYPE=20]b4_prefix[lval;=0A=
=20]b4_locations_if([[extern=20]b4_api_PREFIX[LTYPE=20=
]b4_prefix[lloc;]])])[]dnl=0A=20])=0A=20=0A-#=20b4_declare_yydebug=0A+#=20=
b4_define_YYDEBUG=0A=20#=20------------------=0A=
-m4_define([b4_declare_yydebug],=0A+m4_define([b4_define_YYDEBUG],=0A=20=
[[/*=20Enabling=20traces.=20=20*/=0A-#ifndef=20YYDEBUG=0A=
+]m4_if(b4_api_prefix,=20[yy],=0A+[[#ifndef=20YYDEBUG=0A=20#=20define=20=
YYDEBUG=20]b4_debug_flag[=0A-#endif=0A-#if=20YYDEBUG=0A+#endif]],=0A=
+[[#ifndef=20]b4_api_PREFIX[DEBUG=0A+#=20if=20defined=20YYDEBUG=0A+#=20=20=
if=20YYDEBUG=0A+#=20=20=20define=20]b4_api_PREFIX[DEBUG=201=0A+#=20=20=
else=0A+#=20=20=20define=20]b4_api_PREFIX[DEBUG=200=0A+#=20=20endif=0A+#=20=
else=20/*=20!=20defined=20YYDEBUG=20*/=0A+#=20=20define=20=
]b4_api_PREFIX[DEBUG=20]b4_debug_flag[=0A+#=20endif=20/*=20!=20defined=20=
]b4_api_PREFIX[DEBUG=20*/=0A+#endif=20=20/*=20!=20defined=20=
]b4_api_PREFIX[DEBUG=20*/]])[]dnl=0A+])=0A+=0A+#=20b4_declare_yydebug=0A=
+#=20------------------=0A+m4_define([b4_declare_yydebug],=0A=
+[b4_define_YYDEBUG[=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20extern=20int=20=
]b4_prefix[debug;=0A=20#endif][]dnl=0A=20])=0Adiff=20--git=20=
a/data/glr.c=20b/data/glr.c=0Aindex=20ce61160..8dd2108=20100644=0A---=20=
a/data/glr.c=0A+++=20b/data/glr.c=0A@@=20-349,7=20+349,7=20@@=20static=20=
const=20]b4_int_type_for([b4_translate])[=20yytranslate[]=20=3D=0A=20=20=20=
]b4_translate[=0A=20};=0A=20=0A-#if=20YYDEBUG=0A+#if=20=
]b4_api_PREFIX[DEBUG=0A=20/*=20YYPRHS[YYN]=20--=20Index=20of=20the=20=
first=20RHS=20symbol=20of=20rule=20number=20YYN=20in=0A=20=20=20=20=
YYRHS.=20=20*/=0A=20static=20const=20]b4_int_type_for([b4_prhs])[=20=
yyprhs[]=20=3D=0A@@=20-370,7=20+370,7=20@@=20static=20const=20=
]b4_int_type_for([b4_rline])[=20yyrline[]=20=3D=0A=20};=0A=20#endif=0A=20=
=0A-#if=20YYDEBUG=20||=20YYERROR_VERBOSE=20||=20]b4_token_table_flag[=0A=
+#if=20]b4_api_PREFIX[DEBUG=20||=20YYERROR_VERBOSE=20||=20=
]b4_token_table_flag[=0A=20/*=20YYTNAME[SYMBOL-NUM]=20--=20String=20name=20=
of=20the=20symbol=20SYMBOL-NUM.=0A=20=20=20=20First,=20the=20terminals,=20=
then,=20starting=20at=20YYNTOKENS,=20nonterminals.=20=20*/=0A=20static=20=
const=20char=20*const=20yytname[]=20=3D=0A@@=20-553,7=20+553,7=20@@=20=
typedef=20enum=20{=20yyok,=20yyaccept,=20yyabort,=20yyerr=20}=20=
YYRESULTTAG;=0A=20=20=20=20do=20{=20YYRESULTTAG=20yyflag=20=3D=20YYE;=20=
if=20(yyflag=20!=3D=20yyok)=20return=20yyflag;=20}=20=20=20=20=20=20=20\=0A=
=20=20=20=20while=20(YYID=20(0))=0A=20=0A-#if=20YYDEBUG=0A+#if=20=
]b4_api_PREFIX[DEBUG=0A=20=0A=20#=20ifndef=20YYFPRINTF=0A=20#=20=20=
define=20YYFPRINTF=20fprintf=0A@@=20-581,12=20+581,12=20@@=20do=20{=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20\=0A=20=20=20=20multiple=20parsers=20can=20=
coexist.=20=20*/=0A=20int=20yydebug;=0A=20=0A-#else=20/*=20!YYDEBUG=20*/=0A=
+#else=20/*=20!]b4_api_PREFIX[DEBUG=20*/=0A=20=0A=20#=20define=20=
YYDPRINTF(Args)=0A=20#=20define=20YY_SYMBOL_PRINT(Title,=20Type,=20=
Value,=20Location)=0A=20=0A-#endif=20/*=20!YYDEBUG=20*/=0A+#endif=20/*=20=
!]b4_api_PREFIX[DEBUG=20*/=0A=20=0A=20/*=20YYINITDEPTH=20--=20initial=20=
size=20of=20the=20parser's=20stacks.=20=20*/=0A=20#ifndef=20YYINITDEPTH=0A=
@@=20-825,7=20+825,7=20@@=20yyMemoryExhausted=20(yyGLRStack*=20yystackp)=0A=
=20=20=20YYLONGJMP=20(yystackp->yyexception_buffer,=202);=0A=20}=0A=20=0A=
-#if=20YYDEBUG=20||=20YYERROR_VERBOSE=0A+#if=20]b4_api_PREFIX[DEBUG=20||=20=
YYERROR_VERBOSE=0A=20/**=20A=20printable=20representation=20of=20TOKEN.=20=
=20*/=0A=20static=20inline=20const=20char*=0A=20yytokenName=20(yySymbol=20=
yytoken)=0A@@=20-962,7=20+962,7=20@@=20yydestroyGLRState=20(char=20const=20=
*yymsg,=20yyGLRState=20*yys]b4_user_formals[)=0A=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=
&yys->yysemantics.yysval]b4_locuser_args([&yys->yyloc])[);=0A=20=20=20=
else=0A=20=20=20=20=20{=0A-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=
=20=20=20=20=20=20=20if=20(yydebug)=0A=20=20=20=20=20=20=20=20=20{=0A=20=20=
=20=20=20=20=20=20=20=20=20if=20(yys->yysemantics.yyfirstVal)=0A@@=20=
-1391,7=20+1391,7=20@@=20yydoAction=20(yyGLRStack*=20yystackp,=20size_t=20=
yyk,=20yyRuleNum=20yyrule,=0A=20=20=20=20=20}=0A=20}=0A=20=0A-#if=20=
!YYDEBUG=0A+#if=20!]b4_api_PREFIX[DEBUG=0A=20#=20define=20=
YY_REDUCE_PRINT(Args)=0A=20#else=0A=20#=20define=20YY_REDUCE_PRINT(Args)=20=
=20=20=20=20=20=20=20=20=20\=0A@@=20-1712,7=20+1712,7=20@@=20=
yyresolveAction=20(yySemanticOption*=20yyopt,=20yyGLRStack*=20yystackp,=0A=
=20=20=20return=20yyflag;=0A=20}=0A=20=0A-#if=20YYDEBUG=0A+#if=20=
]b4_api_PREFIX[DEBUG=0A=20static=20void=0A=20yyreportTree=20=
(yySemanticOption*=20yyx,=20int=20yyindent)=0A=20{=0A@@=20-1767,7=20=
+1767,7=20@@=20yyreportAmbiguity=20(yySemanticOption*=20yyx0,=0A=20=20=20=
YYUSE=20(yyx0);=0A=20=20=20YYUSE=20(yyx1);=0A=20=0A-#if=20YYDEBUG=0A+#if=20=
]b4_api_PREFIX[DEBUG=0A=20=20=20YYFPRINTF=20(stderr,=20"Ambiguity=20=
detected.\n");=0A=20=20=20YYFPRINTF=20(stderr,=20"Option=201,\n");=0A=20=20=
=20yyreportTree=20(yyx0,=202);=0A@@=20-2551,7=20+2551,7=20@@=20=
m4_popdef([b4_at_dollar])])dnl=0A=20}=0A=20=0A=20/*=20DEBUGGING=20ONLY=20=
*/=0A-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20static=20void=20=
yypstack=20(yyGLRStack*=20yystackp,=20size_t=20yyk)=0A=20=20=20=
__attribute__=20((__unused__));=0A=20static=20void=20yypdumpstack=20=
(yyGLRStack*=20yystackp)=20__attribute__=20((__unused__));=0Adiff=20=
--git=20a/data/glr.cc=20b/data/glr.cc=0Aindex=20427353e..0d4e365=20=
100644=0A---=20a/data/glr.cc=0A+++=20b/data/glr.cc=0A@@=20-127,7=20=
+127,7=20@@=20m4_pushdef([b4_parse_param],=20=
m4_defn([b4_parse_param_orig]))dnl=0A=20[=20=20///=20Build=20a=20parser=20=
object.=0A=20=20=20]b4_parser_class_name::b4_parser_class_name[=20=
(]b4_parse_param_decl[)]m4_ifset([b4_parse_param],=20[=0A=20=20=20=20=20=
:])[=0A-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20=20=20=
]m4_ifset([b4_parse_param],=20[=20=20],=20[=20:])[yydebug_=20(false),=0A=20=
=20=20=20=20=20=20yycdebug_=20(&std::cerr)]m4_ifset([b4_parse_param],=20=
[,])[=0A=20#endif]b4_parse_param_cons[=0A@@=20-144,7=20+144,7=20@@=20=
m4_pushdef([b4_parse_param],=20m4_defn([b4_parse_param_orig]))dnl=0A=20=20=
=20=20=20return=20::yyparse=20(*this]b4_user_args[);=0A=20=20=20}=0A=20=0A=
-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20=
/*--------------------.=0A=20=20=20|=20Print=20this=20symbol.=20=20|=0A=20=
=20=20`--------------------*/=0A@@=20-239,10=20+239,7=20@@=20=
b4_copyright([Skeleton=20interface=20for=20Bison=20GLR=20parsers=20in=20=
C++],=0A=20]b4_percent_define_ifdef([[location_type]],=20[],=0A=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20[[#=20=
include=20"location.hh"]])[=0A=20=0A-/*=20Enabling=20traces.=20=20*/=0A=
-#ifndef=20YYDEBUG=0A-#=20define=20YYDEBUG=20]b4_debug_flag[=0A-#endif=0A=
+]b4_define_YYDEBUG[=0A=20=0A=20/*=20YYLLOC_DEFAULT=20--=20Set=20CURRENT=20=
to=20span=20from=20RHS[1]=20to=20RHS[N].=0A=20=20=20=20If=20N=20is=200,=20=
then=20set=20CURRENT=20to=20the=20empty=20location=20which=20ends=0A@@=20=
-321,7=20+318,7=20@@=20b4_user_stype=0A=20=20=20=20=20virtual=20void=20=
error=20(const=20location_type&=20loc,=20const=20std::string&=20msg);=0A=20=
=20=20private:=0A=20=0A-#if=20YYDEBUG=0A+#=20if=20]b4_api_PREFIX[DEBUG=0A=
=20=20=20public:=0A=20=20=20=20=20///=20\brief=20Report=20a=20symbol=20=
value=20on=20the=20debug=20stream.=0A=20=20=20=20=20///=20\param=20=
yytype=20=20=20=20=20=20=20The=20token=20type.=0A@@=20-341,7=20+338,7=20=
@@=20b4_user_stype=0A=20=20=20=20=20/*=20Debugging.=20=20*/=0A=20=20=20=20=
=20int=20yydebug_;=0A=20=20=20=20=20std::ostream*=20yycdebug_;=0A-#endif=0A=
+#=20endif=0A=20=0A=20]b4_parse_param_vars[=0A=20=20=20};=0Adiff=20--git=20=
a/data/lalr1.cc=20b/data/lalr1.cc=0Aindex=20337af10..14dc706=20100644=0A=
---=20a/data/lalr1.cc=0A+++=20b/data/lalr1.cc=0A@@=20-57,10=20+57,7=20@@=20=
b4_copyright([Skeleton=20interface=20for=20Bison=20LALR(1)=20parsers=20=
in=20C++],=0A=20=0A=20]b4_null_define[=0A=20=0A-/*=20Enabling=20traces.=20=
=20*/=0A-#ifndef=20YYDEBUG=0A-#=20define=20YYDEBUG=20]b4_debug_flag[=0A=
-#endif=0A+]b4_define_YYDEBUG[=0A=20=0A=20]b4_namespace_open[=0A=20=0A@@=20=
-100,7=20+97,7=20@@=20b4_user_stype=0A=20=20=20=20=20///=20\returns=20=20=
0=20iff=20parsing=20succeeded.=0A=20=20=20=20=20virtual=20int=20parse=20=
();=0A=20=0A-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20=20=20=
///=20The=20current=20debugging=20stream.=0A=20=20=20=20=20std::ostream&=20=
debug_stream=20()=20const;=0A=20=20=20=20=20///=20Set=20the=20current=20=
debugging=20stream.=0A@@=20-125,7=20+122,7=20@@=20b4_user_stype=0A=20=20=20=
=20=20///=20\param=20tok=20=20=20=20=20the=20lookahead=20token.=0A=20=20=20=
=20=20virtual=20std::string=20yysyntax_error_=20(int=20yystate,=20int=20=
tok);=0A=20=0A-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20=20=
=20///=20\brief=20Report=20a=20symbol=20value=20on=20the=20debug=20=
stream.=0A=20=20=20=20=20///=20\param=20yytype=20=20=20=20=20=20=20The=20=
token=20type.=0A=20=20=20=20=20///=20\param=20yyvaluep=20=20=20=20=20Its=20=
semantic=20value.=0A@@=20-203,10=20+200,10=20@@=20b4_user_stype=0A=20=20=20=
=20=20///=20Convert=20the=20symbol=20name=20\a=20n=20to=20a=20form=20=
suitable=20for=20a=20diagnostic.=0A=20=20=20=20=20static=20std::string=20=
yytnamerr_=20(const=20char=20*n);])[=0A=20=0A-]b4_token_table_if([],=20=
[[#if=20YYDEBUG]])[=0A+]b4_token_table_if([],=20[[#if=20=
]b4_api_PREFIX[DEBUG]])[=0A=20=20=20=20=20///=20For=20a=20symbol,=20its=20=
name=20in=20clear.=0A=20=20=20=20=20static=20const=20char*=20const=20=
yytname_[];=0A-]b4_token_table_if([[#if=20YYDEBUG]])[=0A=
+]b4_token_table_if([[#if=20]b4_api_PREFIX[DEBUG]])[=0A=20=20=20=20=20=
///=20A=20type=20to=20store=20symbol=20numbers=20and=20-1.=0A=20=20=20=20=
=20typedef=20]b4_int_type_for([b4_rhs])[=20rhs_number_type;=0A=20=20=20=20=
=20///=20A=20`-1'-separated=20list=20of=20the=20rules'=20RHS.=0A@@=20=
-325,7=20+322,7=20@@=20b4_percent_code_get[]dnl=0A=20#define=20YYUSE(e)=20=
((void)=20(e))=0A=20=0A=20/*=20Enable=20debugging=20if=20requested.=20=20=
*/=0A-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=0A=20/*=20A=20=
pseudo=20ostream=20that=20takes=20yydebug_=20into=20account.=20=20*/=0A=20=
#=20define=20YYCDEBUG=20if=20(yydebug_)=20(*yycdebug_)=0A@@=20-352,14=20=
+349,14=20@@=20do=20{=09=09=09=09=09\=0A=20=20=20=20=20yystack_print_=20=
();=09=09=09\=0A=20}=20while=20(false)=0A=20=0A-#else=20/*=20!YYDEBUG=20=
*/=0A+#else=20/*=20!]b4_api_PREFIX[DEBUG=20*/=0A=20=0A=20#=20define=20=
YYCDEBUG=20if=20(false)=20std::cerr=0A=20#=20define=20=
YY_SYMBOL_PRINT(Title,=20Type,=20Value,=20Location)=0A=20#=20define=20=
YY_REDUCE_PRINT(Rule)=0A=20#=20define=20YY_STACK_PRINT()=0A=20=0A-#endif=20=
/*=20!YYDEBUG=20*/=0A+#endif=20/*=20!]b4_api_PREFIX[DEBUG=20*/=0A=20=0A=20=
#define=20yyerrok=09=09(yyerrstatus_=20=3D=200)=0A=20#define=20yyclearin=09=
(yychar=20=3D=20yyempty_)=0A@@=20-412,7=20+409,7=20@@=20do=20{=09=09=09=09=
=09\=0A=20=20=20///=20Build=20a=20parser=20object.=0A=20=20=20=
]b4_parser_class_name::b4_parser_class_name[=20=
(]b4_parse_param_decl[)]m4_ifset([b4_parse_param],=20[=0A=20=20=20=20=20=
:])[=0A-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20=20=20=
]m4_ifset([b4_parse_param],=20[=20=20],=20[=20:])[yydebug_=20(false),=0A=20=
=20=20=20=20=20=20yycdebug_=20(&std::cerr)]m4_ifset([b4_parse_param],=20=
[,])[=0A=20#endif]b4_parse_param_cons[=0A@@=20-423,7=20+420,7=20@@=20do=20=
{=09=09=09=09=09\=0A=20=20=20{=0A=20=20=20}=0A=20=0A-#if=20YYDEBUG=0A=
+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20=
/*--------------------------------.=0A=20=20=20|=20Print=20this=20symbol=20=
on=20YYOUTPUT.=20=20|=0A=20=20=20`--------------------------------*/=0A=
@@=20-484,7=20+481,7=20@@=20do=20{=09=09=09=09=09\=0A=20=20=20=20=20=
yylocation_stack_.pop=20(n);=0A=20=20=20}=0A=20=0A-#if=20YYDEBUG=0A+#if=20=
]b4_api_PREFIX[DEBUG=0A=20=20=20std::ostream&=0A=20=20=20=
]b4_parser_class_name[::debug_stream=20()=20const=0A=20=20=20{=0A@@=20=
-1012,7=20+1009,7=20@@=20b4_error_verbose_if([int=20yystate,=20int=20=
yytoken],=0A=20=20=20=20=20]b4_stos[=0A=20=20=20};=0A=20=0A-#if=20=
YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20/*=20=
TOKEN_NUMBER_[YYLEX-NUM]=20--=20Internal=20symbol=20number=20=
corresponding=0A=20=20=20=20=20=20to=20YYLEX-NUM.=20=20*/=0A=20=20=20=
const=20]b4_int_type_for([b4_toknum])[=0A@@=20-1036,7=20+1033,7=20@@=20=
b4_error_verbose_if([int=20yystate,=20int=20yytoken],=0A=20=20=20=20=20=
]b4_r2[=0A=20=20=20};=0A=20=0A-]b4_token_table_if([],=20[[#if=20=
YYDEBUG]])[=0A+]b4_token_table_if([],=20[[#if=20]b4_api_PREFIX[DEBUG]])[=0A=
=20=20=20/*=20YYTNAME[SYMBOL-NUM]=20--=20String=20name=20of=20the=20=
symbol=20SYMBOL-NUM.=0A=20=20=20=20=20=20First,=20the=20terminals,=20=
then,=20starting=20at=20\a=20yyntokens_,=20nonterminals.=20=20*/=0A=20=20=
=20const=20char*=0A@@=20-1045,7=20+1042,7=20@@=20=
b4_error_verbose_if([int=20yystate,=20int=20yytoken],=0A=20=20=20=20=20=
]b4_tname[=0A=20=20=20};=0A=20=0A-]b4_token_table_if([[#if=20YYDEBUG]])[=0A=
+]b4_token_table_if([[#if=20]b4_api_PREFIX[DEBUG]])[=0A=20=20=20/*=20=
YYRHS=20--=20A=20`-1'-separated=20list=20of=20the=20rules'=20RHS.=20=20=
*/=0A=20=20=20const=20]b4_parser_class_name[::rhs_number_type=0A=20=20=20=
]b4_parser_class_name[::yyrhs_[]=20=3D=0A@@=20-1095,7=20+1092,7=20@@=20=
b4_error_verbose_if([int=20yystate,=20int=20yytoken],=0A=20=09=09=20=20=20=
=20=20=20=20&]b4_rhs_value(yynrhs,=20yyi=20+=201)[,=0A=20=09=09=20=20=20=20=
=20=20=20&]b4_rhs_location(yynrhs,=20yyi=20+=201)[);=0A=20=20=20}=0A=
-#endif=20//=20YYDEBUG=0A+#endif=20//=20]b4_api_PREFIX[DEBUG=0A=20=0A=20=20=
=20/*=20YYTRANSLATE(YYLEX)=20--=20Bison=20symbol=20number=20=
corresponding=20to=20YYLEX.=20=20*/=0A=20=20=20=
]b4_parser_class_name[::token_number_type=0Adiff=20--git=20a/data/yacc.c=20=
b/data/yacc.c=0Aindex=208c595f9..3a67914=20100644=0A---=20a/data/yacc.c=0A=
+++=20b/data/yacc.c=0A@@=20-589,7=20+589,7=20@@=20static=20const=20=
]b4_int_type_for([b4_translate])[=20yytranslate[]=20=3D=0A=20=20=20=
]b4_translate[=0A=20};=0A=20=0A-#if=20YYDEBUG=0A+#if=20=
]b4_api_PREFIX[DEBUG=0A=20/*=20YYPRHS[YYN]=20--=20Index=20of=20the=20=
first=20RHS=20symbol=20of=20rule=20number=20YYN=20in=0A=20=20=20=20=
YYRHS.=20=20*/=0A=20static=20const=20]b4_int_type_for([b4_prhs])[=20=
yyprhs[]=20=3D=0A@@=20-610,7=20+610,7=20@@=20static=20const=20=
]b4_int_type_for([b4_rline])[=20yyrline[]=20=3D=0A=20};=0A=20#endif=0A=20=
=0A-#if=20YYDEBUG=20||=20YYERROR_VERBOSE=20||=20]b4_token_table_flag[=0A=
+#if=20]b4_api_PREFIX[DEBUG=20||=20YYERROR_VERBOSE=20||=20=
]b4_token_table_flag[=0A=20/*=20YYTNAME[SYMBOL-NUM]=20--=20String=20name=20=
of=20the=20symbol=20SYMBOL-NUM.=0A=20=20=20=20First,=20the=20terminals,=20=
then,=20starting=20at=20YYNTOKENS,=20nonterminals.=20=20*/=0A=20static=20=
const=20char=20*const=20yytname[]=20=3D=0A@@=20-803,7=20+803,7=20@@=20=
while=20(YYID=20(0))=0A=20#endif=0A=20=0A=20/*=20Enable=20debugging=20if=20=
requested.=20=20*/=0A-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=0A=
=20#=20ifndef=20YYFPRINTF=0A=20#=20=20include=20<stdio.h>=20/*=20=
INFRINGES=20ON=20USER=20NAME=20SPACE=20*/=0A@@=20-890,12=20+890,12=20@@=20=
do=20{=09=09=09=09=09\=0A=20/*=20Nonzero=20means=20print=20parse=20=
trace.=20=20It=20is=20left=20uninitialized=20so=20that=0A=20=20=20=20=
multiple=20parsers=20can=20coexist.=20=20*/=0A=20int=20yydebug;=0A-#else=20=
/*=20!YYDEBUG=20*/=0A+#else=20/*=20!]b4_api_PREFIX[DEBUG=20*/=0A=20#=20=
define=20YYDPRINTF(Args)=0A=20#=20define=20YY_SYMBOL_PRINT(Title,=20=
Type,=20Value,=20Location)=0A=20#=20define=20YY_STACK_PRINT(Bottom,=20=
Top)=0A=20#=20define=20YY_REDUCE_PRINT(Rule)=0A-#endif=20/*=20!YYDEBUG=20=
*/=0A+#endif=20/*=20!]b4_api_PREFIX[DEBUG=20*/=0A=20=0A=20=0A=20/*=20=
YYINITDEPTH=20--=20initial=20size=20of=20the=20parser's=20stacks.=20=20=
*/=0A@@=20-926,7=20+926,7=20@@=20int=20yydebug;=0A=20=20=20=20required.=20=
=20Return=201=20if=20memory=20is=20exhausted.=20=20*/=0A=20static=20int=0A=
=20yy_lac_stack_realloc=20(YYSIZE_T=20*yycapacity,=20YYSIZE_T=20yyadd,=0A=
-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20char=20const=20=
*yydebug_prefix,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20char=20const=20*yydebug_suffix,=0A=20#endif=0A@@=20=
-1032,7=20+1032,7=20@@=20do=20{=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20\=0A=20=
=20=20=20the=20parser=20stacks=20to=20try=20to=20find=20a=20new=20=
initial=20context=20in=20which=20the=0A=20=20=20=20current=20lookahead=20=
is=20syntactically=20acceptable.=20=20If=20it=20fails=20to=20find=0A=20=20=
=20=20such=20a=20context,=20it=20discards=20the=20lookahead.=20=20*/=0A=
-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20#=20define=20=
YY_LAC_DISCARD(Event)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
\=0A=20do=20{=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
\=0A=20=20=20if=20(yy_lac_established)=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20\=0A@@=20-1135,7=20+1135,7=20@@=20=
yy_lac=20(yytype_int16=20*yyesa,=20yytype_int16=20**yyes,=0A=20=20=20=20=20=
=20=20=20=20else=0A=20=20=20=20=20=20=20=20=20=20=20{=0A=20=20=20=20=20=20=
=20=20=20=20=20=20=20if=20(yy_lac_stack_realloc=20(yyes_capacity,=201,=0A=
-#if=20YYDEBUG=0A+#if=20]b4_api_PREFIX[DEBUG=0A=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20"=20(",=20")",=0A=20#endif=0A=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20yyes,=20yyesa,=20&yyesp,=20yyes_prev))=0A@@=20-1342,7=20=
+1342,7=20@@=20yysyntax_error=20(YYSIZE_T=20*yymsg_alloc,=20char=20=
**yymsg,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20yysize=20=3D=
=20yysize1;=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20}=0A=20=20=20=20=
=20=20=20=20=20}]b4_lac_if([[=0A-#=20if=20YYDEBUG=0A+#=20if=20=
]b4_api_PREFIX[DEBUG=0A=20=20=20=20=20=20=20else=20if=20(yydebug)=0A=20=20=
=20=20=20=20=20=20=20YYFPRINTF=20(stderr,=20"No=20expected=20=
tokens.\n");=0A=20#=20endif]])[=0A--=20=0A1.7.11.1=0A=0A=

--Apple-Mail=_561046B3-5120-423B-AA77-922C6DD53112
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=iso-8859-1




--Apple-Mail=_561046B3-5120-423B-AA77-922C6DD53112--


From MAILER-DAEMON Mon Jul 02 11:57:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Slj0D-0002o2-U1
	for mharc-bug-bison@gnu.org; Mon, 02 Jul 2012 11:57:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46247)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1Slj06-0002n5-UZ
	for bug-bison@gnu.org; Mon, 02 Jul 2012 11:57:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1Slj02-0003UW-FK
	for bug-bison@gnu.org; Mon, 02 Jul 2012 11:57:22 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:56226)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>)
	id 1Slizm-0003PC-Um; Mon, 02 Jul 2012 11:57:03 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 0346CA60005;
	Mon,  2 Jul 2012 08:57:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id FG5jzRYud-kN; Mon,  2 Jul 2012 08:56:59 -0700 (PDT)
Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 809D5A60003;
	Mon,  2 Jul 2012 08:56:59 -0700 (PDT)
Message-ID: <4FF1C4C3.9040303@cs.ucla.edu>
Date: Mon, 02 Jul 2012 08:56:51 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
To: Akim Demaille <akim@lrde.epita.fr>
Subject: Re: yacc.c does not prototype yyparse in the header
References: <80AD8426-5BCA-4A0A-9529-EF786DC48AC9@lrde.epita.fr>
	<4FCFCDA2.9080206@gnu.org>
	<9733E760-8220-445A-8AB9-D7A19247A805@lrde.epita.fr>
	<4FD236E7.6080609@gnu.org>
	<554D01B6-ABD2-4998-A40F-6B13793DBF72@lrde.epita.fr>
	<4FD5BA89.0@cs.ucla.edu>
	<59EB43E0-4486-4258-A37F-3D91415F51EA@lrde.epita.fr>
	<4FD77125.2070807@cs.ucla.edu>
	<AE9C526A-D5C4-4AAB-80F2-7D12BF1A4C86@lrde.epita.fr>
	<4FD8C479.6030703@cs.ucla.edu>
	<F8390949-E9DA-4632-8C04-A087D7E76757@lrde.epita.fr>
	<F9C11FC5-D73F-4D12-94B0-DA8001E89180@lrde.epita.fr>
	<B84B4E13-45E1-43CE-A466-4B2193E2A0C7@lrde.epita.fr>
	<39C37698-1C33-484C-AEB3-1110EB72C416@lrde.epita.fr>
In-Reply-To: <39C37698-1C33-484C-AEB3-1110EB72C416@lrde.epita.fr>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Bison Patches <bison-patches@gnu.org>, Bruce Korb <bkorb@gnu.org>,
	Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jul 2012 15:57:28 -0000

On 07/02/2012 06:40 AM, Akim Demaille wrote:
> rename YYDEBUG according to api.prefix, but still use YYDEBUG
> as a default value.

Just a kneejerk reaction:

The former sounds reasonable.  The latter is a nicety;
if you've already implemented it I don't see why not.


From MAILER-DAEMON Wed Jul 04 06:31:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmMs8-00020P-JE
	for mharc-bug-bison@gnu.org; Wed, 04 Jul 2012 06:31:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50103)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SmMs0-0001zl-3u
	for bug-bison@gnu.org; Wed, 04 Jul 2012 06:31:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SmMrs-0003AG-Us
	for bug-bison@gnu.org; Wed, 04 Jul 2012 06:31:39 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:41045
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SmMri-00038w-OW; Wed, 04 Jul 2012 06:31:23 -0400
Received: from [192.168.105.43] by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SmMrd-0007RN-UI; Wed, 04 Jul 2012 12:31:18 +0200
Subject: Re: yacc.c does not prototype yyparse in the header
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <4FF1C4C3.9040303@cs.ucla.edu>
Date: Wed, 4 Jul 2012 12:30:57 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <5873B438-7CE4-4EE9-8DC1-2DBCD25F9134@lrde.epita.fr>
References: <80AD8426-5BCA-4A0A-9529-EF786DC48AC9@lrde.epita.fr>
	<4FCFCDA2.9080206@gnu.org>
	<9733E760-8220-445A-8AB9-D7A19247A805@lrde.epita.fr>
	<4FD236E7.6080609@gnu.org>
	<554D01B6-ABD2-4998-A40F-6B13793DBF72@lrde.epita.fr>
	<4FD5BA89.0@cs.ucla.edu>
	<59EB43E0-4486-4258-A37F-3D91415F51EA@lrde.epita.fr>
	<4FD77125.2070807@cs.ucla.edu>
	<AE9C526A-D5C4-4AAB-80F2-7D12BF1A4C86@lrde.epita.fr>
	<4FD8C479.6030703@cs.ucla.edu>
	<F8390949-E9DA-4632-8C04-A087D7E76757@lrde.epita.fr>
	<F9C11FC5-D73F-4D12-94B0-DA8001E89180@lrde.epita.fr>
	<B84B4E13-45E1-43CE-A466-4B2193E2A0C7@lrde.epita.fr>
	<39C37698-1C33-484C-AEB3-1110EB72C416@lrde.epita.fr>
	<4FF1C4C3.9040303@cs.ucla.edu>
To: Paul Eggert <eggert@cs.ucla.edu>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Patches <bison-patches@gnu.org>, Bruce Korb <bkorb@gnu.org>,
	Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Jul 2012 10:31:46 -0000


Le 2 juil. 2012 =E0 17:56, Paul Eggert a =E9crit :

> On 07/02/2012 06:40 AM, Akim Demaille wrote:
>> rename YYDEBUG according to api.prefix, but still use YYDEBUG
>> as a default value.
>=20
> Just a kneejerk reaction:
>=20
> The former sounds reasonable.  The latter is a nicety;
> if you've already implemented it I don't see why not.

Yes, it's already implemented.  Installed as follows:

=46rom 5f108727a13ff887f889948b2484724f14c125e9 Mon Sep 17 00:00:00 2001
From: Akim Demaille <akim@lrde.epita.fr>
Date: Mon, 2 Jul 2012 14:56:22 +0200
Subject: [PATCH] api.prefix: also rename YYDEBUG.

The testsuite in master has shown weird errors for the "Mulitple
Parsers" tests: the caller of p5.parse() received some apparently
random value, while tracing p5.parse() showed that the function was
consistently returning 0.

It happens when mixing several parser headers, some generated without
%debug, others with.  In particular the C++ parser was generated with
%debug, i.e., with:

  #ifndef YYDEBUG
  # define YYDEBUG 1
  #endif

and compiled separatedly.  Yet, its header was included after the one
of another parser, this time without %debug, i.e., with

  #ifndef YYDEBUG
  # define YYDEBUG 0
  #endif

in its header.  As a result, the parser was compiled with YYDEBUG set,
but its header was used without.  Since the layout of the objects are
then completely different, boom.

Therefore, do not change the value of YYDEBUG.  Rather, use it as a
default value for <API.PREFIX>DEBUG.

* data/c.m4 (b4_YYDEBUG_define): New.
(b4_declare_yydebug): Rename as...
(b4_yydebug_declare): this, for consistency.
* data/glr.c, data/glr.cc, data/lalr1.cc, data/yacc.c: Use it.
* NEWS: Document it.
---
 NEWS          | 17 +++++++++++++----
 data/c.m4     | 28 +++++++++++++++++++++++-----
 data/glr.c    | 22 +++++++++++-----------
 data/glr.cc   | 13 +++++--------
 data/lalr1.cc | 33 +++++++++++++++------------------
 data/yacc.c   | 18 +++++++++---------
 6 files changed, 76 insertions(+), 55 deletions(-)

diff --git a/NEWS b/NEWS
index 403265f..ec4e33a 100644
--- a/NEWS
+++ b/NEWS
@@ -94,10 +94,19 @@ GNU Bison NEWS
     # define BAR_FOO_H                  # define BAR_FOO_H
=20
     /* Enabling traces.  */             /* Enabling traces.  */
-    # ifndef YYDEBUG                    # ifndef YYDEBUG
-    #  define YYDEBUG 0                 #  define YYDEBUG 0
-    # endif                             # endif
-    # if YYDEBUG                        # if YYDEBUG
+    # ifndef YYDEBUG                  | # ifndef BAR_DEBUG
+                                      > #  if defined YYDEBUG
+                                      > #   if YYDEBUG
+                                      > #    define BAR_DEBUG 1
+                                      > #   else
+                                      > #    define BAR_DEBUG 0
+                                      > #   endif
+                                      > #  else
+    #  define YYDEBUG 0               | #   define BAR_DEBUG 0
+                                      > #  endif
+    # endif                           | # endif
+
+    # if YYDEBUG                      | # if BAR_DEBUG
     extern int bar_debug;               extern int bar_debug;
     # endif                             # endif
=20
diff --git a/data/c.m4 b/data/c.m4
index 0b2699a..3c6c6f4 100644
--- a/data/c.m4
+++ b/data/c.m4
@@ -581,14 +581,32 @@ b4_pure_if([], [[extern ]b4_api_PREFIX[STYPE =
]b4_prefix[lval;
 ]b4_locations_if([[extern ]b4_api_PREFIX[LTYPE =
]b4_prefix[lloc;]])])[]dnl
 ])
=20
-# b4_declare_yydebug
+# b4_YYDEBUG_define
 # ------------------
-m4_define([b4_declare_yydebug],
+m4_define([b4_YYDEBUG_define],
 [[/* Enabling traces.  */
-#ifndef YYDEBUG
+]m4_if(b4_api_prefix, [yy],
+[[#ifndef YYDEBUG
 # define YYDEBUG ]b4_debug_flag[
-#endif
-#if YYDEBUG
+#endif]],
+[[#ifndef ]b4_api_PREFIX[DEBUG
+# if defined YYDEBUG
+#  if YYDEBUG
+#   define ]b4_api_PREFIX[DEBUG 1
+#  else
+#   define ]b4_api_PREFIX[DEBUG 0
+#  endif
+# else /* ! defined YYDEBUG */
+#  define ]b4_api_PREFIX[DEBUG ]b4_debug_flag[
+# endif /* ! defined ]b4_api_PREFIX[DEBUG */
+#endif  /* ! defined ]b4_api_PREFIX[DEBUG */]])[]dnl
+])
+
+# b4_declare_yydebug
+# ------------------
+m4_define([b4_declare_yydebug],
+[b4_YYDEBUG_define[
+#if ]b4_api_PREFIX[DEBUG
 extern int ]b4_prefix[debug;
 #endif][]dnl
 ])
diff --git a/data/glr.c b/data/glr.c
index ce61160..8dd2108 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -349,7 +349,7 @@ static const ]b4_int_type_for([b4_translate])[ =
yytranslate[] =3D
   ]b4_translate[
 };
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
    YYRHS.  */
 static const ]b4_int_type_for([b4_prhs])[ yyprhs[] =3D
@@ -370,7 +370,7 @@ static const ]b4_int_type_for([b4_rline])[ yyrline[] =
=3D
 };
 #endif
=20
-#if YYDEBUG || YYERROR_VERBOSE || ]b4_token_table_flag[
+#if ]b4_api_PREFIX[DEBUG || YYERROR_VERBOSE || ]b4_token_table_flag[
 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
 static const char *const yytname[] =3D
@@ -553,7 +553,7 @@ typedef enum { yyok, yyaccept, yyabort, yyerr } =
YYRESULTTAG;
    do { YYRESULTTAG yyflag =3D YYE; if (yyflag !=3D yyok) return =
yyflag; }       \
    while (YYID (0))
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
=20
 # ifndef YYFPRINTF
 #  define YYFPRINTF fprintf
@@ -581,12 +581,12 @@ do {                                               =
             \
    multiple parsers can coexist.  */
 int yydebug;
=20
-#else /* !YYDEBUG */
+#else /* !]b4_api_PREFIX[DEBUG */
=20
 # define YYDPRINTF(Args)
 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
=20
-#endif /* !YYDEBUG */
+#endif /* !]b4_api_PREFIX[DEBUG */
=20
 /* YYINITDEPTH -- initial size of the parser's stacks.  */
 #ifndef YYINITDEPTH
@@ -825,7 +825,7 @@ yyMemoryExhausted (yyGLRStack* yystackp)
   YYLONGJMP (yystackp->yyexception_buffer, 2);
 }
=20
-#if YYDEBUG || YYERROR_VERBOSE
+#if ]b4_api_PREFIX[DEBUG || YYERROR_VERBOSE
 /** A printable representation of TOKEN.  */
 static inline const char*
 yytokenName (yySymbol yytoken)
@@ -962,7 +962,7 @@ yydestroyGLRState (char const *yymsg, yyGLRState =
*yys]b4_user_formals[)
                 =
&yys->yysemantics.yysval]b4_locuser_args([&yys->yyloc])[);
   else
     {
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
       if (yydebug)
         {
           if (yys->yysemantics.yyfirstVal)
@@ -1391,7 +1391,7 @@ yydoAction (yyGLRStack* yystackp, size_t yyk, =
yyRuleNum yyrule,
     }
 }
=20
-#if !YYDEBUG
+#if !]b4_api_PREFIX[DEBUG
 # define YY_REDUCE_PRINT(Args)
 #else
 # define YY_REDUCE_PRINT(Args)          \
@@ -1712,7 +1712,7 @@ yyresolveAction (yySemanticOption* yyopt, =
yyGLRStack* yystackp,
   return yyflag;
 }
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 static void
 yyreportTree (yySemanticOption* yyx, int yyindent)
 {
@@ -1767,7 +1767,7 @@ yyreportAmbiguity (yySemanticOption* yyx0,
   YYUSE (yyx0);
   YYUSE (yyx1);
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   YYFPRINTF (stderr, "Ambiguity detected.\n");
   YYFPRINTF (stderr, "Option 1,\n");
   yyreportTree (yyx0, 2);
@@ -2551,7 +2551,7 @@ m4_popdef([b4_at_dollar])])dnl
 }
=20
 /* DEBUGGING ONLY */
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 static void yypstack (yyGLRStack* yystackp, size_t yyk)
   __attribute__ ((__unused__));
 static void yypdumpstack (yyGLRStack* yystackp) __attribute__ =
((__unused__));
diff --git a/data/glr.cc b/data/glr.cc
index d1eb6bd..ce3951e 100644
--- a/data/glr.cc
+++ b/data/glr.cc
@@ -127,7 +127,7 @@ m4_pushdef([b4_parse_param], =
m4_defn([b4_parse_param_orig]))dnl
 [  /// Build a parser object.
   ]b4_parser_class_name::b4_parser_class_name[ =
(]b4_parse_param_decl[)]m4_ifset([b4_parse_param], [
     :])[
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
     ]m4_ifset([b4_parse_param], [  ], [ :])[yydebug_ (false),
       yycdebug_ (&std::cerr)]m4_ifset([b4_parse_param], [,])[
 #endif]b4_parse_param_cons[
@@ -144,7 +144,7 @@ m4_pushdef([b4_parse_param], =
m4_defn([b4_parse_param_orig]))dnl
     return ::yyparse (*this]b4_user_args[);
   }
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   /*--------------------.
   | Print this symbol.  |
   `--------------------*/
@@ -239,10 +239,7 @@ b4_copyright([Skeleton interface for Bison GLR =
parsers in C++],
 ]b4_percent_define_ifdef([[location_type]], [],
                          [[#include "location.hh"]])[
=20
-/* Enabling traces.  */
-#ifndef YYDEBUG
-# define YYDEBUG ]b4_debug_flag[
-#endif
+]b4_YYDEBUG_define[
=20
 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
    If N is 0, then set CURRENT to the empty location which ends
@@ -321,7 +318,7 @@ b4_user_stype
     virtual void error (const location_type& loc, const std::string& =
msg);
   private:
=20
-#if YYDEBUG
+# if ]b4_api_PREFIX[DEBUG
   public:
     /// \brief Report a symbol value on the debug stream.
     /// \param yytype       The token type.
@@ -341,7 +338,7 @@ b4_user_stype
     /* Debugging.  */
     int yydebug_;
     std::ostream* yycdebug_;
-#endif
+# endif
=20
 ]b4_parse_param_vars[
   };
diff --git a/data/lalr1.cc b/data/lalr1.cc
index 337af10..afff0a5 100644
--- a/data/lalr1.cc
+++ b/data/lalr1.cc
@@ -57,10 +57,7 @@ b4_copyright([Skeleton interface for Bison LALR(1) =
parsers in C++],
=20
 ]b4_null_define[
=20
-/* Enabling traces.  */
-#ifndef YYDEBUG
-# define YYDEBUG ]b4_debug_flag[
-#endif
+]b4_YYDEBUG_define[
=20
 ]b4_namespace_open[
=20
@@ -100,7 +97,7 @@ b4_user_stype
     /// \returns  0 iff parsing succeeded.
     virtual int parse ();
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
     /// The current debugging stream.
     std::ostream& debug_stream () const;
     /// Set the current debugging stream.
@@ -125,7 +122,7 @@ b4_user_stype
     /// \param tok     the lookahead token.
     virtual std::string yysyntax_error_ (int yystate, int tok);
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
     /// \brief Report a symbol value on the debug stream.
     /// \param yytype       The token type.
     /// \param yyvaluep     Its semantic value.
@@ -203,10 +200,10 @@ b4_user_stype
     /// Convert the symbol name \a n to a form suitable for a =
diagnostic.
     static std::string yytnamerr_ (const char *n);])[
=20
-]b4_token_table_if([], [[#if YYDEBUG]])[
+]b4_token_table_if([], [[#if ]b4_api_PREFIX[DEBUG]])[
     /// For a symbol, its name in clear.
     static const char* const yytname_[];
-]b4_token_table_if([[#if YYDEBUG]])[
+]b4_token_table_if([[#if ]b4_api_PREFIX[DEBUG]])[
     /// A type to store symbol numbers and -1.
     typedef ]b4_int_type_for([b4_rhs])[ rhs_number_type;
     /// A `-1'-separated list of the rules' RHS.
@@ -325,7 +322,7 @@ b4_percent_code_get[]dnl
 #define YYUSE(e) ((void) (e))
=20
 /* Enable debugging if requested.  */
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
=20
 /* A pseudo ostream that takes yydebug_ into account.  */
 # define YYCDEBUG if (yydebug_) (*yycdebug_)
@@ -352,14 +349,14 @@ do {					\
     yystack_print_ ();			\
 } while (false)
=20
-#else /* !YYDEBUG */
+#else /* !]b4_api_PREFIX[DEBUG */
=20
 # define YYCDEBUG if (false) std::cerr
 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 # define YY_REDUCE_PRINT(Rule)
 # define YY_STACK_PRINT()
=20
-#endif /* !YYDEBUG */
+#endif /* !]b4_api_PREFIX[DEBUG */
=20
 #define yyerrok		(yyerrstatus_ =3D 0)
 #define yyclearin	(yychar =3D yyempty_)
@@ -412,7 +409,7 @@ do {					\
   /// Build a parser object.
   ]b4_parser_class_name::b4_parser_class_name[ =
(]b4_parse_param_decl[)]m4_ifset([b4_parse_param], [
     :])[
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
     ]m4_ifset([b4_parse_param], [  ], [ :])[yydebug_ (false),
       yycdebug_ (&std::cerr)]m4_ifset([b4_parse_param], [,])[
 #endif]b4_parse_param_cons[
@@ -423,7 +420,7 @@ do {					\
   {
   }
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   /*--------------------------------.
   | Print this symbol on YYOUTPUT.  |
   `--------------------------------*/
@@ -484,7 +481,7 @@ do {					\
     yylocation_stack_.pop (n);
   }
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   std::ostream&
   ]b4_parser_class_name[::debug_stream () const
   {
@@ -1012,7 +1009,7 @@ b4_error_verbose_if([int yystate, int yytoken],
     ]b4_stos[
   };
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
   /* TOKEN_NUMBER_[YYLEX-NUM] -- Internal symbol number corresponding
      to YYLEX-NUM.  */
   const ]b4_int_type_for([b4_toknum])[
@@ -1036,7 +1033,7 @@ b4_error_verbose_if([int yystate, int yytoken],
     ]b4_r2[
   };
=20
-]b4_token_table_if([], [[#if YYDEBUG]])[
+]b4_token_table_if([], [[#if ]b4_api_PREFIX[DEBUG]])[
   /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
      First, the terminals, then, starting at \a yyntokens_, =
nonterminals.  */
   const char*
@@ -1045,7 +1042,7 @@ b4_error_verbose_if([int yystate, int yytoken],
     ]b4_tname[
   };
=20
-]b4_token_table_if([[#if YYDEBUG]])[
+]b4_token_table_if([[#if ]b4_api_PREFIX[DEBUG]])[
   /* YYRHS -- A `-1'-separated list of the rules' RHS.  */
   const ]b4_parser_class_name[::rhs_number_type
   ]b4_parser_class_name[::yyrhs_[] =3D
@@ -1095,7 +1092,7 @@ b4_error_verbose_if([int yystate, int yytoken],
 		       &]b4_rhs_value(yynrhs, yyi + 1)[,
 		       &]b4_rhs_location(yynrhs, yyi + 1)[);
   }
-#endif // YYDEBUG
+#endif // ]b4_api_PREFIX[DEBUG
=20
   /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  =
*/
   ]b4_parser_class_name[::token_number_type
diff --git a/data/yacc.c b/data/yacc.c
index 8c595f9..3a67914 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -589,7 +589,7 @@ static const ]b4_int_type_for([b4_translate])[ =
yytranslate[] =3D
   ]b4_translate[
 };
=20
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
    YYRHS.  */
 static const ]b4_int_type_for([b4_prhs])[ yyprhs[] =3D
@@ -610,7 +610,7 @@ static const ]b4_int_type_for([b4_rline])[ yyrline[] =
=3D
 };
 #endif
=20
-#if YYDEBUG || YYERROR_VERBOSE || ]b4_token_table_flag[
+#if ]b4_api_PREFIX[DEBUG || YYERROR_VERBOSE || ]b4_token_table_flag[
 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
 static const char *const yytname[] =3D
@@ -803,7 +803,7 @@ while (YYID (0))
 #endif
=20
 /* Enable debugging if requested.  */
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
=20
 # ifndef YYFPRINTF
 #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
@@ -890,12 +890,12 @@ do {					\
 /* Nonzero means print parse trace.  It is left uninitialized so that
    multiple parsers can coexist.  */
 int yydebug;
-#else /* !YYDEBUG */
+#else /* !]b4_api_PREFIX[DEBUG */
 # define YYDPRINTF(Args)
 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 # define YY_STACK_PRINT(Bottom, Top)
 # define YY_REDUCE_PRINT(Rule)
-#endif /* !YYDEBUG */
+#endif /* !]b4_api_PREFIX[DEBUG */
=20
=20
 /* YYINITDEPTH -- initial size of the parser's stacks.  */
@@ -926,7 +926,7 @@ int yydebug;
    required.  Return 1 if memory is exhausted.  */
 static int
 yy_lac_stack_realloc (YYSIZE_T *yycapacity, YYSIZE_T yyadd,
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
                       char const *yydebug_prefix,
                       char const *yydebug_suffix,
 #endif
@@ -1032,7 +1032,7 @@ do {                                               =
              \
    the parser stacks to try to find a new initial context in which the
    current lookahead is syntactically acceptable.  If it fails to find
    such a context, it discards the lookahead.  */
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
 # define YY_LAC_DISCARD(Event)                                          =
 \
 do {                                                                    =
 \
   if (yy_lac_established)                                               =
 \
@@ -1135,7 +1135,7 @@ yy_lac (yytype_int16 *yyesa, yytype_int16 **yyes,
         else
           {
             if (yy_lac_stack_realloc (yyes_capacity, 1,
-#if YYDEBUG
+#if ]b4_api_PREFIX[DEBUG
                                       " (", ")",
 #endif
                                       yyes, yyesa, &yyesp, yyes_prev))
@@ -1342,7 +1342,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char =
**yymsg,
                 yysize =3D yysize1;
               }
         }]b4_lac_if([[
-# if YYDEBUG
+# if ]b4_api_PREFIX[DEBUG
       else if (yydebug)
         YYFPRINTF (stderr, "No expected tokens.\n");
 # endif]])[
--=20
1.7.11.1




From MAILER-DAEMON Thu Jul 05 10:52:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmnPr-0004J3-1i
	for mharc-bug-bison@gnu.org; Thu, 05 Jul 2012 10:52:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56244)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SmnPj-0004HG-26
	for bug-bison@gnu.org; Thu, 05 Jul 2012 10:52:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SmnPb-0003eb-ML
	for bug-bison@gnu.org; Thu, 05 Jul 2012 10:52:14 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:56555
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SmnPa-0003dB-H2; Thu, 05 Jul 2012 10:52:07 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SmnPX-0007x8-QM; Thu, 05 Jul 2012 16:52:03 +0200
From: Akim Demaille <akim@lrde.epita.fr>
Subject: bison-2.5.90 released [beta]
Date: Thu, 5 Jul 2012 16:52:03 +0200
Message-Id: <A1064919-7282-48D2-A566-8EEE7BBF248A@lrde.epita.fr>
To: Bison Bugs <bug-bison@gnu.org>
Mime-Version: 1.0 (Apple Message framework v1278)
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Cc: coordinator@translationproject.org, Bison Help <help-bison@gnu.org>,
	Bison Patches <bison-patches@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Jul 2012 14:52:21 -0000


The Bison team is happy to announce the forthcoming release of
Bison 2.6.



In this release, a special emphasis was put on producing more
complete, and more usable, parser headers.

Here are the compressed sources:
  ftp://alpha.gnu.org/gnu/bison/bison-2.5.90.tar.gz   (2.9MB)
  ftp://alpha.gnu.org/gnu/bison/bison-2.5.90.tar.xz   (1.6MB)

Here are the GPG detached signatures[*]:
  ftp://alpha.gnu.org/gnu/bison/bison-2.5.90.tar.gz.sig
  ftp://alpha.gnu.org/gnu/bison/bison-2.5.90.tar.xz.sig

Use a mirror for higher download bandwidth:
  http://www.gnu.org/order/ftp.html

[*] Use a .sig file to verify that the corresponding file (without the
.sig suffix) is intact.  First, be sure to download both the .sig file
and the corresponding tarball.  Then, run a command like this:

  gpg --verify bison-2.5.90.tar.gz.sig

If that command fails because you don't have the required public key,
then run this command to import it:

  gpg --keyserver keys.gnupg.net --recv-keys 0DDCAA3278D5264E

and rerun the 'gpg --verify' command.

This release was bootstrapped with the following tools:
  Autoconf 2.69
  Automake 1.12.1
  Flex 2.5.35
  Gettext 0.18.1
  Gnulib v0.0-7503-gbe2b039

NEWS

* Noteworthy changes in release 2.5.90 (2012-07-05) [beta]

** Future Changes

  The next major release of Bison will drop support for the following
  deprecated features.  Please report disagreements to bug-bison@gnu.org.

*** K&C parsers

  Support for generating parsers in K&R C will be removed.  Parsers
  generated for C support ISO C90, and are tested with ISO C99 and ISO C11
  compilers.

*** Features deprecated since Bison 1.875

  The definitions of yystype and yyltype will be removed; use YYSTYPE and
  YYLTYPE.

  YYPARSE_PARAM and YYLEX_PARAM, deprecated in favor of %parse-param and
  %lex-param, will no longer be supported.

  Support for the preprocessor symbol YYERROR_VERBOSE will be removed, use
  %error-verbose.

*** The generated header will be included (yacc.c)

  Instead of duplicating the content of the generated header (definition of
  YYSTYPE, yyparse declaration etc.), the generated parser will include it,
  as is already the case for GLR or C++ parsers.  This change is deferred
  because existing versions of ylwrap (e.g., Automake 1.12.1) do not support
  it.

** Generated Parser Headers

*** Guards (yacc.c, glr.c, glr.cc)

  The generated headers are now guarded, as is already the case for C++
  parsers (lalr1.cc).  For instance, with --defines=foo.h:

    #ifndef YY_FOO_H
    # define YY_FOO_H
    ...
    #endif /* !YY_FOO_H  */

*** New declarations (yacc.c, glr.c)

  The generated header now declares yydebug and yyparse.  Both honor
  --name-prefix=bar_, and yield

    int bar_parse (void);

  rather than

    #define yyparse bar_parse
    int yyparse (void);

  in order to facilitate the inclusion of several parser headers inside a
  single compilation unit.

*** Exported symbols in C++

  The symbols YYTOKEN_TABLE and YYERROR_VERBOSE, which were defined in the
  header, are removed, as they prevent the possibility of including several
  generated headers from a single compilation unit.

*** YYLSP_NEEDED

  For the same reasons, the undocumented and unused macro YYLSP_NEEDED is no
  longer defined.

** New %define variable: api.prefix

  Now that the generated headers are more complete and properly protected
  against multiple inclusions, constant names, such as YYSTYPE are a
  problem.  While yyparse and others are properly renamed by %name-prefix,
  YYSTYPE, YYDEBUG and others have never been affected by it.  Because it
  would introduce backward compatibility issues in projects not expecting
  YYSTYPE to be renamed, instead of changing the behavior of %name-prefix,
  it is deprecated in favor of a new %define variable: api.prefix.

  The following examples compares both:

    %name-prefix "bar_"               | %define api.prefix "bar_"
    %token <ival> FOO                   %token <ival> FOO
    %union { int ival; }                %union { int ival; }
    %%                                  %%
    exp: 'a';                           exp: 'a';

  bison generates:

    #ifndef BAR_FOO_H                   #ifndef BAR_FOO_H
    # define BAR_FOO_H                  # define BAR_FOO_H

    /* Enabling traces.  */             /* Enabling traces.  */
    # ifndef YYDEBUG                  | # ifndef BAR_DEBUG
                                      > #  if defined YYDEBUG
                                      > #   if YYDEBUG
                                      > #    define BAR_DEBUG 1
                                      > #   else
                                      > #    define BAR_DEBUG 0
                                      > #   endif
                                      > #  else
    #  define YYDEBUG 0               | #   define BAR_DEBUG 0
                                      > #  endif
    # endif                           | # endif

    # if YYDEBUG                      | # if BAR_DEBUG
    extern int bar_debug;               extern int bar_debug;
    # endif                             # endif

    /* Tokens.  */                      /* Tokens.  */
    # ifndef YYTOKENTYPE              | # ifndef BAR_TOKENTYPE
    #  define YYTOKENTYPE             | #  define BAR_TOKENTYPE
       enum yytokentype {             |    enum bar_tokentype {
         FOO = 258                           FOO = 258
       };                                  };
    # endif                             # endif

    #if ! defined YYSTYPE \           | #if ! defined BAR_STYPE \
     && ! defined YYSTYPE_IS_DECLARED |  && ! defined BAR_STYPE_IS_DECLARED
    typedef union YYSTYPE             | typedef union BAR_STYPE
    {                                   {
     int ival;                           int ival;
    } YYSTYPE;                        | } BAR_STYPE;
    # define YYSTYPE_IS_DECLARED 1    | # define BAR_STYPE_IS_DECLARED 1
    #endif                              #endif

    extern YYSTYPE bar_lval;          | extern BAR_STYPE bar_lval;

    int bar_parse (void);               int bar_parse (void);

    #endif /* !BAR_FOO_H  */            #endif /* !BAR_FOO_H  */



From MAILER-DAEMON Thu Jul 19 10:38:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Srrru-000519-Vh
	for mharc-bug-bison@gnu.org; Thu, 19 Jul 2012 10:38:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41799)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Srrro-00050o-Gg
	for bug-bison@gnu.org; Thu, 19 Jul 2012 10:38:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Srrri-0001CA-GV
	for bug-bison@gnu.org; Thu, 19 Jul 2012 10:38:12 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:49582
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SrrrR-0000vw-RY; Thu, 19 Jul 2012 10:37:50 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SrrrP-0001JF-VN; Thu, 19 Jul 2012 16:37:47 +0200
Content-Type: text/plain; charset=us-ascii
Subject: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
From: Akim Demaille <akim@lrde.epita.fr>
Date: Thu, 19 Jul 2012 16:37:47 +0200
Content-Transfer-Encoding: 7bit
Message-Id: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
To: GNU Announcements List <info-gnu@gnu.org>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: coordinator@translationproject.org, Bison Help <help-bison@gnu.org>,
	Bison Bugs <bug-bison@gnu.org>, Bison Patches <bison-patches@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Bison Bugs <bug-bison@gnu.org>
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 14:38:17 -0000

Bison 2.6 is born, the parents are well, and happy.

In this release, a special emphasis was put on producing more
complete, and more usable, parser headers.

Here are the compressed sources:
  ftp://ftp.gnu.org/gnu/bison/bison-2.6.tar.gz   (2.9MB)
  ftp://ftp.gnu.org/gnu/bison/bison-2.6.tar.xz   (1.6MB)

Here are the GPG detached signatures[*]:
  ftp://ftp.gnu.org/gnu/bison/bison-2.6.tar.gz.sig
  ftp://ftp.gnu.org/gnu/bison/bison-2.6.tar.xz.sig

Use a mirror for higher download bandwidth:
  http://www.gnu.org/order/ftp.html

[*] Use a .sig file to verify that the corresponding file (without the
.sig suffix) is intact.  First, be sure to download both the .sig file
and the corresponding tarball.  Then, run a command like this:

  gpg --verify bison-2.6.tar.gz.sig

If that command fails because you don't have the required public key,
then run this command to import it:

  gpg --keyserver keys.gnupg.net --recv-keys 0DDCAA3278D5264E

and rerun the 'gpg --verify' command.

This release was bootstrapped with the following tools:
  Autoconf 2.69
  Automake 1.12.2
  Flex 2.5.35
  Gettext 0.18.1
  Gnulib v0.0-7534-gcabce6b

NEWS

* Noteworthy changes in release 2.6 (2012-07-19) [stable]

** Future Changes

  The next major release of Bison will drop support for the following
  deprecated features.  Please report disagreements to bug-bison@gnu.org.

*** K&C parsers

  Support for generating parsers in K&R C will be removed.  Parsers
  generated for C support ISO C90, and are tested with ISO C99 and ISO C11
  compilers.

*** Features deprecated since Bison 1.875

  The definitions of yystype and yyltype will be removed; use YYSTYPE and
  YYLTYPE.

  YYPARSE_PARAM and YYLEX_PARAM, deprecated in favor of %parse-param and
  %lex-param, will no longer be supported.

  Support for the preprocessor symbol YYERROR_VERBOSE will be removed, use
  %error-verbose.

*** The generated header will be included (yacc.c)

  Instead of duplicating the content of the generated header (definition of
  YYSTYPE, yyparse declaration etc.), the generated parser will include it,
  as is already the case for GLR or C++ parsers.  This change is deferred
  because existing versions of ylwrap (e.g., Automake 1.12.1) do not support
  it.

** Generated Parser Headers

*** Guards (yacc.c, glr.c, glr.cc)

  The generated headers are now guarded, as is already the case for C++
  parsers (lalr1.cc).  For instance, with --defines=foo.h:

    #ifndef YY_FOO_H
    # define YY_FOO_H
    ...
    #endif /* !YY_FOO_H  */

*** New declarations (yacc.c, glr.c)

  The generated header now declares yydebug and yyparse.  Both honor
  --name-prefix=bar_, and yield

    int bar_parse (void);

  rather than

    #define yyparse bar_parse
    int yyparse (void);

  in order to facilitate the inclusion of several parser headers inside a
  single compilation unit.

*** Exported symbols in C++

  The symbols YYTOKEN_TABLE and YYERROR_VERBOSE, which were defined in the
  header, are removed, as they prevent the possibility of including several
  generated headers from a single compilation unit.

*** YYLSP_NEEDED

  For the same reasons, the undocumented and unused macro YYLSP_NEEDED is no
  longer defined.

** New %define variable: api.prefix

  Now that the generated headers are more complete and properly protected
  against multiple inclusions, constant names, such as YYSTYPE are a
  problem.  While yyparse and others are properly renamed by %name-prefix,
  YYSTYPE, YYDEBUG and others have never been affected by it.  Because it
  would introduce backward compatibility issues in projects not expecting
  YYSTYPE to be renamed, instead of changing the behavior of %name-prefix,
  it is deprecated in favor of a new %define variable: api.prefix.

  The following examples compares both:

    %name-prefix "bar_"               | %define api.prefix "bar_"
    %token <ival> FOO                   %token <ival> FOO
    %union { int ival; }                %union { int ival; }
    %%                                  %%
    exp: 'a';                           exp: 'a';

  bison generates:

    #ifndef BAR_FOO_H                   #ifndef BAR_FOO_H
    # define BAR_FOO_H                  # define BAR_FOO_H

    /* Enabling traces.  */             /* Enabling traces.  */
    # ifndef YYDEBUG                  | # ifndef BAR_DEBUG
                                      > #  if defined YYDEBUG
                                      > #   if YYDEBUG
                                      > #    define BAR_DEBUG 1
                                      > #   else
                                      > #    define BAR_DEBUG 0
                                      > #   endif
                                      > #  else
    #  define YYDEBUG 0               | #   define BAR_DEBUG 0
                                      > #  endif
    # endif                           | # endif

    # if YYDEBUG                      | # if BAR_DEBUG
    extern int bar_debug;               extern int bar_debug;
    # endif                             # endif

    /* Tokens.  */                      /* Tokens.  */
    # ifndef YYTOKENTYPE              | # ifndef BAR_TOKENTYPE
    #  define YYTOKENTYPE             | #  define BAR_TOKENTYPE
       enum yytokentype {             |    enum bar_tokentype {
         FOO = 258                           FOO = 258
       };                                  };
    # endif                             # endif

    #if ! defined YYSTYPE \           | #if ! defined BAR_STYPE \
     && ! defined YYSTYPE_IS_DECLARED |  && ! defined BAR_STYPE_IS_DECLARED
    typedef union YYSTYPE             | typedef union BAR_STYPE
    {                                   {
     int ival;                           int ival;
    } YYSTYPE;                        | } BAR_STYPE;
    # define YYSTYPE_IS_DECLARED 1    | # define BAR_STYPE_IS_DECLARED 1
    #endif                              #endif

    extern YYSTYPE bar_lval;          | extern BAR_STYPE bar_lval;

    int bar_parse (void);               int bar_parse (void);

    #endif /* !BAR_FOO_H  */            #endif /* !BAR_FOO_H  */



From MAILER-DAEMON Thu Jul 19 12:57:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Sru2Q-00037I-VD
	for mharc-bug-bison@gnu.org; Thu, 19 Jul 2012 12:57:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32857)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Sru2H-00033z-NF
	for bug-bison@gnu.org; Thu, 19 Jul 2012 12:57:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Sru2A-00044m-0K
	for bug-bison@gnu.org; Thu, 19 Jul 2012 12:57:09 -0400
Received: from smtp-out11.han.skanova.net ([195.67.226.200]:34353)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Sru28-00043U-QR
	for bug-bison@gnu.org; Thu, 19 Jul 2012 12:57:01 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out11.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FA80EAF0186FC52 for bug-bison@gnu.org;
	Thu, 19 Jul 2012 18:56:58 +0200
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Apple Message framework v1278)
Subject: Re: bison-2.6 released [stable]
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
Date: Thu, 19 Jul 2012 18:56:57 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <FCAB5C73-EA60-47C1-9464-35AFD0380CDA@telia.com>
References: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
To: Bison Bugs <bug-bison@gnu.org>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.200
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 16:57:17 -0000

On 19 Jul 2012, at 16:37, Akim Demaille wrote:

> Bison 2.6 is born, the parents are well, and happy.

I ran this on Mac OS X 10.7.4 where using the system compiler clang =
(llvm-gcc whic is pointe to by /usr/bin/gcc is now deprecated) supplied =
by Xcode 4.3.3, and I go the strange warning below by the following =
command sequence:

Build without the source tree using
$ tar -xf bison-2.6.tar.xz=20
$ mkdir build-2.6
$ cd build-2.6/
$ export CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++
$ ../bison-2.6/configure=20
$ make

Then start a new shell where CC and CXX are not defined, in which 'make =
check' produces the first warnings below.

After that, in the original shell CC are defined, 'make check' produces =
the second warnings and  ending with '0 tests were successful.

Hans



---- 'make check' with CC and CXX undefined ----
Simple GLR C++ Calculator.

212: Calculator %skeleton "glr.cc" %defines %locations ok
213: Calculator %language "C++" %glr-parser %defines %locations  ok
214: Calculator %language "C++" %glr-parser %defines %locations %define =
location_type Span ok
215: Calculator %language "C++" %glr-parser %defines %locations =
%error-verbose %name-prefix "calc" %verbose %yacc ok
216: Calculator %language "C++" %glr-parser %defines %locations =
%error-verbose %define api.prefix "calc" %verbose =
%yacc/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/216/test=
-source: line 1284: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/216/status: =
No such file or directory
testsuite: WARNING: unable to parse test group: 216
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/216/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/216/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/216/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/217/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/217/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 217
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/217/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/217/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/217/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/218/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/218/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 218
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/218/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/218/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/218/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/219/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/219/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 219
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/219/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/219/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/219/fail: =
No such file or directory
 FAILED ()
220: Calculator %language "C++" %glr-parser %defines %locations =
%pure-parser %error-verbose %debug %name-prefix "calc" %verbose %yacc =
%parse-param {semantic_value *result} %parse-param {int *count} ok
221: Calculator %language "C++" %glr-parser %defines %locations =
%pure-parser %error-verbose %debug %define api.prefix "calc" %verbose =
%yacc %parse-param {semantic_value *result} %parse-param {int *count} ok
...
## ------------- ##
## Test results. ##
## ------------- ##

308 tests were successful.
7 tests were skipped.
----

---- 'make check' with CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++ ----
...
C++ Features.

265: Doxygen Public Documentation                    skipped =
(c++.at:102)
266: Doxygen Private Documentation                   skipped =
(c++.at:103)
267: Relative namespace references                   ok
268: Absolute namespace references                  =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/test-sour=
ce: line 1157: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/status: =
No such file or directory
testsuite: WARNING: unable to parse test group: 268
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/269/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/269/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 269
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/269/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/269/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/269/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/270/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/270/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 270
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/270/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/270/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/270/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/271/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/271/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 271
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/271/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/271/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/271/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/272/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/272/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 272
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/272/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/272/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/272/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/273/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/273/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 273
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/273/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/273/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/273/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/274/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/274/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 274
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/274/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/274/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/274/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/275/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/275/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 275
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/275/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/275/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/275/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/276/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/276/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 276
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/276/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/276/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/276/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/277/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/277/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 277
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/277/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/277/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/277/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/278/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/278/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 278
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/278/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/278/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/278/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/279/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/279/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 279
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/279/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/279/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/279/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/280/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/280/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 280
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/280/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/280/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/280/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/281/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/281/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 281
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/281/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/281/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/281/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/282/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/282/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 282
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/282/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/282/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/282/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/283/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/283/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 283
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/283/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/283/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/283/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/284/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/284/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 284
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/284/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/284/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/284/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/285/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/285/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 285
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/285/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/285/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/285/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/286/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/286/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 286
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/286/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/286/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/286/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/287/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/287/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 287
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/287/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/287/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/287/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/288/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/288/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 288
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/288/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/288/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/288/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/289/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/289/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 289
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/289/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/289/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/289/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/290/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/290/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 290
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/290/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/290/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/290/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/291/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/291/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 291
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/291/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/291/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/291/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/292/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/292/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 292
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/292/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/292/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/292/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/293/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/293/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 293
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/293/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/293/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/293/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/294/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/294/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 294
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/294/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/294/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/294/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/295/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/295/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 295
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/295/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/295/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/295/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/296/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/296/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 296
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/296/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/296/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/296/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/297/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/297/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 297
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/297/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/297/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/297/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/298/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/298/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 298
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/298/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/298/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/298/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/299/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/299/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 299
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/299/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/299/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/299/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/300/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/300/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 300
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/300/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/300/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/300/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/301/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/301/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 301
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/301/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/301/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/301/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/302/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/302/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 302
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/302/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/302/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/302/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/303/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/303/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 303
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/303/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/303/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/303/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/304/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/304/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 304
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/304/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/304/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/304/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/305/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/305/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 305
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/305/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/305/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/305/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/306/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/306/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 306
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/306/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/306/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/306/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/307/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/307/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 307
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/307/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/307/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/307/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/308/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/308/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 308
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/308/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/308/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/308/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/309/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/309/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 309
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/309/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/309/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/309/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/310/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/310/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 310
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/310/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/310/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/310/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/311/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/311/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 311
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/311/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/311/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/311/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/312/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/312/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 312
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/312/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/312/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/312/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/313/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/313/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 313
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/313/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/313/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/313/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/314/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/314/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 314
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/314/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/314/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/314/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 1939: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/315/status: =
No such file or directory
../../bison-2.6/tests/testsuite: line 1753: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/315/test-sour=
ce: No such file or directory
testsuite: WARNING: unable to parse test group: 315
testsuite: WARNING: A failure happened in a test group before any test =
could be
testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/315/check-lin=
e: No such file or directory
cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/315/check-lin=
e: No such file or directory
../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/315/fail: =
No such file or directory
 FAILED ()
../../bison-2.6/tests/testsuite: line 2209: cd: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups: No such =
file or directory

## ------------- ##
## Test results. ##
## ------------- ##

0 tests were successful.
----



From MAILER-DAEMON Thu Jul 19 14:26:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SrvQb-0001F4-VA
	for mharc-bug-bison@gnu.org; Thu, 19 Jul 2012 14:26:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34213)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SruTe-0007HQ-7v
	for bug-bison@gnu.org; Thu, 19 Jul 2012 13:25:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SruTc-0004tg-98
	for bug-bison@gnu.org; Thu, 19 Jul 2012 13:25:26 -0400
Received: from cs-smtp-1.stanford.edu ([171.64.64.25]:56079)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SruTc-0004t3-3P
	for bug-bison@gnu.org; Thu, 19 Jul 2012 13:25:24 -0400
Received: from 107-0-204-137-ip-static.hfc.comcastbusiness.net
	([107.0.204.137] helo=blp.benpfaff.org)
	by cs-smtp-1.Stanford.EDU with esmtpsa (TLSv1:AES128-SHA:128)
	(Exim 4.76) (envelope-from <blp@cs.stanford.edu>) id 1SruTY-0003og-CZ
	for bug-bison@gnu.org; Thu, 19 Jul 2012 10:25:20 -0700
From: Ben Pfaff <blp@cs.stanford.edu>
To: Bison Bugs <bug-bison@gnu.org>
Subject: Re: bison-2.6 released [stable]
References: <mailman.5172.1342714284.855.info-gnu@gnu.org>
Date: Thu, 19 Jul 2012 10:25:19 -0700
In-Reply-To: <mailman.5172.1342714284.855.info-gnu@gnu.org> (Akim Demaille's
	message of "Thu, 19 Jul 2012 16:37:47 +0200")
Message-ID: <87eho7hdds.fsf@blp.benpfaff.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Scan-Signature: f033b90f7cba6c0793427b12797f2d01
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.64.64.25
X-Mailman-Approved-At: Thu, 19 Jul 2012 14:26:20 -0400
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: blp@cs.stanford.edu
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 17:25:27 -0000

Thanks for the new release, and the announcement!

I noticed one small typo in the announcement:
> *** K&C parsers
should be:
> *** K&R C parsers

Thanks,

Ben.


From MAILER-DAEMON Fri Jul 20 03:58:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ss86r-0000r2-9y
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 03:58:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36792)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss86j-0000q6-By
	for bug-bison@gnu.org; Fri, 20 Jul 2012 03:58:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss86Y-00042u-Ts
	for bug-bison@gnu.org; Fri, 20 Jul 2012 03:58:41 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:34606
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss86Y-00042X-L8
	for bug-bison@gnu.org; Fri, 20 Jul 2012 03:58:30 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Ss86X-0007jr-1h; Fri, 20 Jul 2012 09:58:29 +0200
Subject: Re: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_05A8B94A-33C0-4F34-B1B4-8C8B034AB8A3"
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <FCAB5C73-EA60-47C1-9464-35AFD0380CDA@telia.com>
Date: Fri, 20 Jul 2012 09:58:31 +0200
Message-Id: <3022973B-E183-4A34-ADA6-D12133375729@lrde.epita.fr>
References: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
	<FCAB5C73-EA60-47C1-9464-35AFD0380CDA@telia.com>
To: Hans Aberg <haberg-1@telia.com>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 07:58:47 -0000


--Apple-Mail=_05A8B94A-33C0-4F34-B1B4-8C8B034AB8A3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Hi Hans,

Thanks for trying it.

Le 19 juil. 2012 =E0 18:56, Hans Aberg a =E9crit :

> On 19 Jul 2012, at 16:37, Akim Demaille wrote:
>=20
>> Bison 2.6 is born, the parents are well, and happy.
>=20
> I ran this on Mac OS X 10.7.4 where using the system compiler clang =
(llvm-gcc whic is pointe to by /usr/bin/gcc is now deprecated) supplied =
by Xcode 4.3.3, and I go the strange warning below by the following =
command sequence:
>=20
> Build without the source tree using
> $ tar -xf bison-2.6.tar.xz=20
> $ mkdir build-2.6
> $ cd build-2.6/
> $ export CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++
> $ ../bison-2.6/configure=20
> $ make
>=20
> Then start a new shell where CC and CXX are not defined, in which =
'make check' produces the first warnings below.
>=20
> After that, in the original shell CC are defined, 'make check' =
produces the second warnings and  ending with '0 tests were successful.

I cannot reproduce it following your script.  BTW, I believe the
mkdir is useless, and ./configure would suffice: you seem to build
in place.

Given the nature of the messages:

> 268: Absolute namespace references                  =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/test-sour=
ce: line 1157: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/status: =
No such file or directory
> testsuite: WARNING: unable to parse test group: 268
> testsuite: WARNING: A failure happened in a test group before any test =
could be
> testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
> testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
> ../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/check-lin=
e: No such file or directory
> cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/check-lin=
e: No such file or directory
> ../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/fail: =
No such file or directory
> FAILED ()

I wonder if you did not have say two "make check" running concurrently?
Maybe one of them, for some unknown reason, rewrote "testsuite" while
the other one was running it?

What's the result of "wc tests/testsuite"?  I have

  164175  551986 5095566 tests/testsuite

If that's not the error, I would need something more deterministic to
reproduce it, e.g., some modification of the hans.sh script I attached,
that shows the error.


--Apple-Mail=_05A8B94A-33C0-4F34-B1B4-8C8B034AB8A3
Content-Disposition: attachment;
	filename=hans.sh
Content-Type: application/octet-stream;
	name="hans.sh"
Content-Transfer-Encoding: 7bit

#! /bin/sh
set -ex
cd /tmp
rm -rf bison-2.6
wget http://ftp.gnu.org/gnu/bison/bison-2.6.tar.xz
tar xf bison-2.6.tar.xz
cd bison-2.6
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
./configure
make
unset CC
unset CXX
make check

--Apple-Mail=_05A8B94A-33C0-4F34-B1B4-8C8B034AB8A3--


From MAILER-DAEMON Fri Jul 20 04:03:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ss8Bo-0001K8-4s
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 04:03:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36665)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss8Bh-0001J6-5i
	for bug-bison@gnu.org; Fri, 20 Jul 2012 04:03:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss8Bd-0005Nn-08
	for bug-bison@gnu.org; Fri, 20 Jul 2012 04:03:49 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:54191
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss8Bc-0005Nj-QL
	for bug-bison@gnu.org; Fri, 20 Jul 2012 04:03:44 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Ss8Bb-0007y8-58; Fri, 20 Jul 2012 10:03:43 +0200
Subject: Re: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <87eho7hdds.fsf@blp.benpfaff.org>
Date: Fri, 20 Jul 2012 10:03:45 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <E1203EA1-AFEB-4DF3-9B78-904DA7A2FE9A@lrde.epita.fr>
References: <mailman.5172.1342714284.855.info-gnu@gnu.org>
	<87eho7hdds.fsf@blp.benpfaff.org>
To: blp@cs.stanford.edu
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 08:03:55 -0000


Le 19 juil. 2012 =E0 19:25, Ben Pfaff a =E9crit :

> Thanks for the new release, and the announcement!
>=20
> I noticed one small typo in the announcement:
>> *** K&C parsers
> should be:
>> *** K&R C parsers

$(*#%!!!  How could I have missed this :(  Thanks a lot!

Hey, that's your first appearance in Bison's THANKS :)
Should I use blp@cs.stanford.edu?  Or blp@gnu.org?



From MAILER-DAEMON Fri Jul 20 04:54:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ss8yr-0008Ix-D9
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 04:54:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39724)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Ss8yl-0008HP-Ur
	for bug-bison@gnu.org; Fri, 20 Jul 2012 04:54:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Ss8yg-00010y-5V
	for bug-bison@gnu.org; Fri, 20 Jul 2012 04:54:31 -0400
Received: from smtp-out21.han.skanova.net ([195.67.226.208]:33636)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Ss8yf-00010j-Qy
	for bug-bison@gnu.org; Fri, 20 Jul 2012 04:54:26 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FD624AF00BCE7FE; Fri, 20 Jul 2012 10:53:53 +0200
Subject: Re: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <3022973B-E183-4A34-ADA6-D12133375729@lrde.epita.fr>
Date: Fri, 20 Jul 2012 10:53:56 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <EFFEF891-FBA4-4627-B48F-A7884DA54E5D@telia.com>
References: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
	<FCAB5C73-EA60-47C1-9464-35AFD0380CDA@telia.com>
	<3022973B-E183-4A34-ADA6-D12133375729@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.208
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 08:54:36 -0000

On 20 Jul 2012, at 09:58, Akim Demaille wrote:

> Thanks for trying it.

You are welcome. I thought I'd check clang, as the LLVM-GCC that is =
pointed to by /usr/local/gcc is very slow, and will be removed in a =
future Xcode release I think.

> Le 19 juil. 2012 =E0 18:56, Hans Aberg a =E9crit :
>=20
>> On 19 Jul 2012, at 16:37, Akim Demaille wrote:
>>=20
>>> Bison 2.6 is born, the parents are well, and happy.
>>=20
>> I ran this on Mac OS X 10.7.4 where using the system compiler clang =
(llvm-gcc whic is pointe to by /usr/bin/gcc is now deprecated) supplied =
by Xcode 4.3.3, and I go the strange warning below by the following =
command sequence:
>>=20
>> Build without the source tree using
>> $ tar -xf bison-2.6.tar.xz=20
>> $ mkdir build-2.6
>> $ cd build-2.6/
>> $ export CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++
>> $ ../bison-2.6/configure=20
>> $ make
>>=20
>> Then start a new shell where CC and CXX are not defined, in which =
'make check' produces the first warnings below.
>>=20
>> After that, in the original shell CC are defined, 'make check' =
produces the second warnings and  ending with '0 tests were successful.
>=20
> I cannot reproduce it following your script.  BTW, I believe the
> mkdir is useless, and ./configure would suffice: you seem to build
> in place.

It is required when building GCC, and the developers get quite upset =
when people still try to use ./configure. So I wanted to try it out, =
even though it is not a requirement for Bison.

> Given the nature of the messages:
>=20
>> 268: Absolute namespace references                  =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/test-sour=
ce: line 1157: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/status: =
No such file or directory
>> testsuite: WARNING: unable to parse test group: 268
>> testsuite: WARNING: A failure happened in a test group before any =
test could be
>> testsuite: WARNING: run. This means that test suite is improperly =
designed.  Please
>> testsuite: WARNING: report this failure to <bug-bison@gnu.org>.
>> ../../bison-2.6/tests/testsuite: line 1984: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/check-lin=
e: No such file or directory
>> cat: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/check-lin=
e: No such file or directory
>> ../../bison-2.6/tests/testsuite: line 2021: =
/usr/local/src/bison/build-2.6/tests/testsuite.dir/at-groups/268/fail: =
No such file or directory
>> FAILED ()
>=20
> I wonder if you did not have say two "make check" running =
concurrently?
> Maybe one of them, for some unknown reason, rewrote "testsuite" while
> the other one was running it?

I reran it now from one shell and it passed:
## ------------- ##
## Test results. ##
## ------------- ##

308 tests were successful.
7 tests were skipped.


> What's the result of "wc tests/testsuite"?  I have
>=20
>  164175  551986 5095566 tests/testsuite

In this test, I got:
  $ wc tests/testsuite.log=20
     517    4004   34775 tests/testsuite.log

Returning to the stuff above: on Mac OS X, in Terminal, after 'make' and =
'make pdf', I created a new Tab before doing 'make check', which creates =
a new shell from scratch, though set to the same directory. But then the =
CC and CXX variables are undefined in this new shell. I then saw the =
first set of warnings I posted. Then I started another 'make check' in =
the original directory, with CC and CXX, that did indeed run =
concurrently with the first one, but my assumption was that because of =
the delay, it should not interfere.

Hans





From MAILER-DAEMON Fri Jul 20 05:03:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ss97P-0000a1-7R
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 05:03:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52191)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss97L-0000ZF-Rq
	for bug-bison@gnu.org; Fri, 20 Jul 2012 05:03:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss97G-0003OA-3h
	for bug-bison@gnu.org; Fri, 20 Jul 2012 05:03:23 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:36010
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Ss97F-0003O5-LP
	for bug-bison@gnu.org; Fri, 20 Jul 2012 05:03:18 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Ss97E-0001wq-IY; Fri, 20 Jul 2012 11:03:16 +0200
Subject: Re: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <EFFEF891-FBA4-4627-B48F-A7884DA54E5D@telia.com>
Date: Fri, 20 Jul 2012 11:03:18 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <099D9CAE-36BE-4BDA-B36E-2810DE8BA725@lrde.epita.fr>
References: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
	<FCAB5C73-EA60-47C1-9464-35AFD0380CDA@telia.com>
	<3022973B-E183-4A34-ADA6-D12133375729@lrde.epita.fr>
	<EFFEF891-FBA4-4627-B48F-A7884DA54E5D@telia.com>
To: Hans Aberg <haberg-1@telia.com>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 09:03:25 -0000


Le 20 juil. 2012 =E0 10:53, Hans Aberg a =E9crit :

>>> On 19 Jul 2012, at 16:37, Akim Demaille wrote:
>>>=20
>>>> Bison 2.6 is born, the parents are well, and happy.
>>>=20
>>> I ran this on Mac OS X 10.7.4 where using the system compiler clang =
(llvm-gcc whic is pointe to by /usr/bin/gcc is now deprecated) supplied =
by Xcode 4.3.3, and I go the strange warning below by the following =
command sequence:
>>>=20
>>> Build without the source tree using
>>> $ tar -xf bison-2.6.tar.xz=20
>>> $ mkdir build-2.6
>>> $ cd build-2.6/
>>> $ export CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++
>>> $ ../bison-2.6/configure=20
>>> $ make
>>>=20
>>> Then start a new shell where CC and CXX are not defined, in which =
'make check' produces the first warnings below.
>>>=20
>>> After that, in the original shell CC are defined, 'make check' =
produces the second warnings and  ending with '0 tests were successful.
>>=20
>> I cannot reproduce it following your script.  BTW, I believe the
>> mkdir is useless, and ./configure would suffice: you seem to build
>> in place.
>=20
> It is required when building GCC, and the developers get quite upset =
when people still try to use ./configure. So I wanted to try it out, =
even though it is not a requirement for Bison.

I am all in favor on making a VPATH build.  My point is
different: you *seem* to be making a VPATH build, but you
are not:

$ tar -xf bison-2.6.tar.xz=20
creates bison-2.6

$ mkdir build-2.6
probably issues an error such as
mkdir: bison-2.6: File exists

$ cd build-2.6/
enters the directory where the sources are.

If you want to make a VPATH build, you must use some other
name than bison-2.6 for your build tree.


>> What's the result of "wc tests/testsuite"?  I have
>>=20
>> 164175  551986 5095566 tests/testsuite
>=20
> In this test, I got:
>  $ wc tests/testsuite.log=20
>     517    4004   34775 tests/testsuite.log

I really mean testsuite, not testsuite.log.  But, as you
report below, the issue is just that two make checks were
stepping on each other's toes.

> Returning to the stuff above: on Mac OS X, in Terminal, after 'make' =
and 'make pdf', I created a new Tab before doing 'make check', which =
creates a new shell from scratch, though set to the same directory. But =
then the CC and CXX variables are undefined in this new shell. I then =
saw the first set of warnings I posted. Then I started another 'make =
check' in the original directory, with CC and CXX, that did indeed run =
concurrently with the first one, but my assumption was that because of =
the delay, it should not interfere.

Never run two make check concurrently.  Maybe Autotest
should provide some explicit warnings about this, indeed.



From MAILER-DAEMON Fri Jul 20 06:50:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsAnE-0004eR-2i
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 06:50:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42129)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SsAn4-0004cX-ID
	for bug-bison@gnu.org; Fri, 20 Jul 2012 06:50:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SsAmy-0000b5-E8
	for bug-bison@gnu.org; Fri, 20 Jul 2012 06:50:34 -0400
Received: from smtp-out12.han.skanova.net ([195.67.226.212]:33529)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SsAmy-0000ai-47
	for bug-bison@gnu.org; Fri, 20 Jul 2012 06:50:28 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out12.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FAE31D900F08675; Fri, 20 Jul 2012 12:49:55 +0200
Subject: Re: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <099D9CAE-36BE-4BDA-B36E-2810DE8BA725@lrde.epita.fr>
Date: Fri, 20 Jul 2012 12:49:58 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <DA820D68-D451-45E2-B29F-FED987B3FDA1@telia.com>
References: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
	<FCAB5C73-EA60-47C1-9464-35AFD0380CDA@telia.com>
	<3022973B-E183-4A34-ADA6-D12133375729@lrde.epita.fr>
	<EFFEF891-FBA4-4627-B48F-A7884DA54E5D@telia.com>
	<099D9CAE-36BE-4BDA-B36E-2810DE8BA725@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.212
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 10:50:40 -0000

On 20 Jul 2012, at 11:03, Akim Demaille wrote:

> Le 20 juil. 2012 =E0 10:53, Hans Aberg a =E9crit :
>=20
>>>> On 19 Jul 2012, at 16:37, Akim Demaille wrote:
>>>>=20
>>>>> Bison 2.6 is born, the parents are well, and happy.
>>>>=20
>>>> I ran this on Mac OS X 10.7.4 where using the system compiler clang =
(llvm-gcc whic is pointe to by /usr/bin/gcc is now deprecated) supplied =
by Xcode 4.3.3, and I go the strange warning below by the following =
command sequence:
>>>>=20
>>>> Build without the source tree using
>>>> $ tar -xf bison-2.6.tar.xz=20
>>>> $ mkdir build-2.6
>>>> $ cd build-2.6/
>>>> $ export CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++
>>>> $ ../bison-2.6/configure=20
>>>> $ make
>>>>=20
>>>> Then start a new shell where CC and CXX are not defined, in which =
'make check' produces the first warnings below.
>>>>=20
>>>> After that, in the original shell CC are defined, 'make check' =
produces the second warnings and  ending with '0 tests were successful.
>>>=20
>>> I cannot reproduce it following your script.  BTW, I believe the
>>> mkdir is useless, and ./configure would suffice: you seem to build
>>> in place.
>>=20
>> It is required when building GCC, and the developers get quite upset =
when people still try to use ./configure. So I wanted to try it out, =
even though it is not a requirement for Bison.
>=20
> I am all in favor on making a VPATH build.  My point is
> different: you *seem* to be making a VPATH build, but you
> are not:
>=20
> $ tar -xf bison-2.6.tar.xz=20
> creates bison-2.6
>=20
> $ mkdir build-2.6
> probably issues an error such as
> mkdir: bison-2.6: File exists

Hm, "build-2.6" and "bison-2.6" are different names. So it creates a new =
directory. I just put the suffix "-2.6" to indicate which build it is.

> $ cd build-2.6/
> enters the directory where the sources are.

So does no enter bison-2.6, but build-2.6. :-)

> If you want to make a VPATH build, you must use some other
> name than bison-2.6 for your build tree.

:-)

>>> What's the result of "wc tests/testsuite"?  I have
>>>=20
>>> 164175  551986 5095566 tests/testsuite
>>=20
>> In this test, I got:
>> $ wc tests/testsuite.log=20
>>    517    4004   34775 tests/testsuite.log
>=20
> I really mean testsuite, not testsuite.log.  But, as you
> report below, the issue is just that two make checks were
> stepping on each other's toes.

$ wc tests/testsuite
wc: tests/testsuite: open: No such file or directory

$ cd ../bison-2.6
$ wc tests/testsuite
  164175  551986 5095566 tests/testsuite

>> Returning to the stuff above: on Mac OS X, in Terminal, after 'make' =
and 'make pdf', I created a new Tab before doing 'make check', which =
creates a new shell from scratch, though set to the same directory. But =
then the CC and CXX variables are undefined in this new shell. I then =
saw the first set of warnings I posted. Then I started another 'make =
check' in the original directory, with CC and CXX, that did indeed run =
concurrently with the first one, but my assumption was that because of =
the delay, it should not interfere.
>=20
> Never run two make check concurrently.  Maybe Autotest
> should provide some explicit warnings about this, indeed.

That is my thought, too. However, there the first set of warnings were =
produced before the concurrency, so it may have something to do with the =
'export CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++' not properly written =
into 'make check'.

Hans






From MAILER-DAEMON Fri Jul 20 07:21:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsBHJ-00057q-0o
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 07:21:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44660)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SsBHD-000568-Pw
	for bug-bison@gnu.org; Fri, 20 Jul 2012 07:21:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SsBHC-0000F3-Uv
	for bug-bison@gnu.org; Fri, 20 Jul 2012 07:21:43 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:56514
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SsBHC-0000Ev-Ox
	for bug-bison@gnu.org; Fri, 20 Jul 2012 07:21:42 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SsBHB-0007Ew-1Z; Fri, 20 Jul 2012 13:21:41 +0200
Subject: Re: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <DA820D68-D451-45E2-B29F-FED987B3FDA1@telia.com>
Date: Fri, 20 Jul 2012 13:21:43 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <A788B7C0-FADB-4DCE-AE47-EDD893283039@lrde.epita.fr>
References: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
	<FCAB5C73-EA60-47C1-9464-35AFD0380CDA@telia.com>
	<3022973B-E183-4A34-ADA6-D12133375729@lrde.epita.fr>
	<EFFEF891-FBA4-4627-B48F-A7884DA54E5D@telia.com>
	<099D9CAE-36BE-4BDA-B36E-2810DE8BA725@lrde.epita.fr>
	<DA820D68-D451-45E2-B29F-FED987B3FDA1@telia.com>
To: Hans Aberg <haberg-1@telia.com>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 11:21:47 -0000


Le 20 juil. 2012 =E0 12:49, Hans Aberg a =E9crit :

> Hm, "build-2.6" and "bison-2.6" are different names. So it creates a =
new directory. I just put the suffix "-2.6" to indicate which build it =
is.

Doh!  Sorry, you are right, of course.

>> Never run two make check concurrently.  Maybe Autotest
>> should provide some explicit warnings about this, indeed.
>=20
> That is my thought, too. However, there the first set of warnings were =
produced before the concurrency, so it may have something to do with the =
'export CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++' not properly written =
into 'make check'.

It should not be a problem.  And I couldn't reproduce it.



From MAILER-DAEMON Fri Jul 20 08:15:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsC6x-0001fO-24
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 08:15:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52023)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SsC6r-0001bG-OW
	for bug-bison@gnu.org; Fri, 20 Jul 2012 08:15:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SsC6q-0007MO-Mt
	for bug-bison@gnu.org; Fri, 20 Jul 2012 08:15:05 -0400
Received: from smtp-out12.han.skanova.net ([195.67.226.212]:37031)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SsC6q-0007K3-D5
	for bug-bison@gnu.org; Fri, 20 Jul 2012 08:15:04 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out12.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FAE31D900F0BA89; Fri, 20 Jul 2012 14:14:32 +0200
Subject: Re: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <A788B7C0-FADB-4DCE-AE47-EDD893283039@lrde.epita.fr>
Date: Fri, 20 Jul 2012 14:14:34 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <9F11711F-2A87-40E8-BADD-7805BE40B94F@telia.com>
References: <B881AF8C-3187-4371-91FE-67A39D055E1C@lrde.epita.fr>
	<FCAB5C73-EA60-47C1-9464-35AFD0380CDA@telia.com>
	<3022973B-E183-4A34-ADA6-D12133375729@lrde.epita.fr>
	<EFFEF891-FBA4-4627-B48F-A7884DA54E5D@telia.com>
	<099D9CAE-36BE-4BDA-B36E-2810DE8BA725@lrde.epita.fr>
	<DA820D68-D451-45E2-B29F-FED987B3FDA1@telia.com>
	<A788B7C0-FADB-4DCE-AE47-EDD893283039@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.212
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 12:15:09 -0000

On 20 Jul 2012, at 13:21, Akim Demaille wrote:

> Le 20 juil. 2012 =E0 12:49, Hans Aberg a =E9crit :
>=20
>> Hm, "build-2.6" and "bison-2.6" are different names. So it creates a =
new directory. I just put the suffix "-2.6" to indicate which build it =
is.
>=20
> Doh!  Sorry, you are right, of course.

Sometimes I try several builds, for example, different compilers or =
versions, which is why I prefer some suffix.

>>> Never run two make check concurrently.  Maybe Autotest
>>> should provide some explicit warnings about this, indeed.
>>=20
>> That is my thought, too. However, there the first set of warnings =
were produced before the concurrency, so it may have something to do =
with the 'export CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++' not =
properly written into 'make check'.
>=20
> It should not be a problem.  And I couldn't reproduce it.

Strangely, I could not reproduce it either. I did exclude 'sudo make =
install', though. I leave it for now, but if I see it again, I'll report =
back.

Hans





From MAILER-DAEMON Fri Jul 20 10:15:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsDzZ-00084y-Vs
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 10:15:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45125)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SsDzT-00083L-0s
	for bug-bison@gnu.org; Fri, 20 Jul 2012 10:15:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SsDzO-0000y7-Rf
	for bug-bison@gnu.org; Fri, 20 Jul 2012 10:15:34 -0400
Received: from cs-smtp-3.stanford.edu ([171.64.64.27]:39254)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SsDzO-0000xK-Lg
	for bug-bison@gnu.org; Fri, 20 Jul 2012 10:15:30 -0400
Received: from [76.14.48.202] (helo=blp.benpfaff.org)
	by cs-smtp-3.Stanford.EDU with esmtpsa (TLSv1:AES128-SHA:128)
	(Exim 4.76) (envelope-from <blp@cs.stanford.edu>)
	id 1SsDzK-0001Ad-FX; Fri, 20 Jul 2012 07:15:26 -0700
From: Ben Pfaff <blp@cs.stanford.edu>
To: Akim Demaille <akim@lrde.epita.fr>
Subject: Re: bison-2.6 released [stable]
References: <mailman.5172.1342714284.855.info-gnu@gnu.org>
	<87eho7hdds.fsf@blp.benpfaff.org>
	<E1203EA1-AFEB-4DF3-9B78-904DA7A2FE9A@lrde.epita.fr>
Date: Fri, 20 Jul 2012 07:15:24 -0700
In-Reply-To: <E1203EA1-AFEB-4DF3-9B78-904DA7A2FE9A@lrde.epita.fr> (Akim
	Demaille's message of "Fri, 20 Jul 2012 10:03:45 +0200")
Message-ID: <87fw8mfrib.fsf@blp.benpfaff.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Scan-Signature: 1ac10746c7c53704f2760f232822cede
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.64.64.27
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: blp@cs.stanford.edu
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 14:15:40 -0000

Akim Demaille <akim@lrde.epita.fr> writes:

> Hey, that's your first appearance in Bison's THANKS :)
> Should I use blp@cs.stanford.edu?  Or blp@gnu.org?

Either one is fine, but I usually use blp@cs.stanford.edu.


From MAILER-DAEMON Fri Jul 20 11:07:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsEnE-00009P-Js
	for mharc-bug-bison@gnu.org; Fri, 20 Jul 2012 11:07:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38176)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SsEn7-00008R-Jb
	for bug-bison@gnu.org; Fri, 20 Jul 2012 11:06:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SsEn1-0008UK-Er
	for bug-bison@gnu.org; Fri, 20 Jul 2012 11:06:53 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:43234
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SsEn1-0008Ow-8w
	for bug-bison@gnu.org; Fri, 20 Jul 2012 11:06:47 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SsEmU-0007Sf-13; Fri, 20 Jul 2012 17:06:14 +0200
Subject: Re: bison-2.6 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <87fw8mfrib.fsf@blp.benpfaff.org>
Date: Fri, 20 Jul 2012 17:06:16 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <65E4CFC7-2B9E-4B3B-9203-219FCA0BFB01@lrde.epita.fr>
References: <mailman.5172.1342714284.855.info-gnu@gnu.org>
	<87eho7hdds.fsf@blp.benpfaff.org>
	<E1203EA1-AFEB-4DF3-9B78-904DA7A2FE9A@lrde.epita.fr>
	<87fw8mfrib.fsf@blp.benpfaff.org>
To: blp@cs.stanford.edu
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 15:06:59 -0000


Le 20 juil. 2012 =E0 16:15, Ben Pfaff a =E9crit :

> Akim Demaille <akim@lrde.epita.fr> writes:
>=20
>> Hey, that's your first appearance in Bison's THANKS :)
>> Should I use blp@cs.stanford.edu?  Or blp@gnu.org?
>=20
> Either one is fine, but I usually use blp@cs.stanford.edu.

I installed this.  Thanks again!

commit aaf6103699d055b5404eff3b1eb70c2427de6530
Author: Akim Demaille <akim@lrde.epita.fr>
Date:   Fri Jul 20 10:00:51 2012 +0200

    news: fix typo.
   =20
    * NEWS: here.
    Reported by Ben Pfaff.

diff --git a/NEWS b/NEWS
index be9ed7c..53ae964 100644
--- a/NEWS
+++ b/NEWS
@@ -10,7 +10,7 @@ GNU Bison NEWS
   The next major release of Bison will drop support for the following
   deprecated features.  Please report disagreements to =
bug-bison@gnu.org.
=20
-*** K&C parsers
+*** K&R C parsers
=20
   Support for generating parsers in K&R C will be removed.  Parsers
   generated for C support ISO C90, and are tested with ISO C99 and ISO =
C11
diff --git a/THANKS b/THANKS
index 284c5a9..75037b1 100644
--- a/THANKS
+++ b/THANKS
@@ -13,6 +13,7 @@ Anthony Heading           ajrh@ajrh.net
 Arnold Robbins            arnold@skeeve.com
 Art Haas                  ahaas@neosoft.com
 Baron Schwartz            baron@sequent.org
+Ben Pfaff                 blp@cs.stanford.edu
 Benoit Perrot             benoit.perrot@epita.fr
 Bernd Kiefer              kiefer@dfki.de
 Bert Deknuydt             Bert.Deknuydt@esat.kuleuven.ac.be



From MAILER-DAEMON Mon Jul 30 05:59:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svml2-00044e-BL
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 05:59:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54656)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Svmku-00042f-QY
	for bug-bison@gnu.org; Mon, 30 Jul 2012 05:59:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Svmkt-0007IR-Gs
	for bug-bison@gnu.org; Mon, 30 Jul 2012 05:59:16 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:39873
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Svmkt-0007Da-7q
	for bug-bison@gnu.org; Mon, 30 Jul 2012 05:59:15 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>) id 1Svmk3-0006Kq-AA
	for bug-bison@gnu.org; Mon, 30 Jul 2012 11:58:23 +0200
From: Akim Demaille <akim@lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: bison-2.6.1 released [stable]
Date: Mon, 30 Jul 2012 11:58:09 +0200
Message-Id: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
To: Bison Bugs <bug-bison@gnu.org>
Mime-Version: 1.0 (Apple Message framework v1278)
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 09:59:22 -0000

Since summer is the traditional period for the "Running of the Bulls"
festivals in Spain and South of France, we are happy to contribute yet
another running Bison in the streets.

This version fixes a nasty Bison bug, sort of a horse-fly, whose bite
makes Bison run in dangerous ways...

Here are the compressed sources:
  ftp://ftp.gnu.org/gnu/bison/bison-2.6.1.tar.gz   (2.9MB)
  ftp://ftp.gnu.org/gnu/bison/bison-2.6.1.tar.xz   (1.6MB)

Here are the GPG detached signatures[*]:
  ftp://ftp.gnu.org/gnu/bison/bison-2.6.1.tar.gz.sig
  ftp://ftp.gnu.org/gnu/bison/bison-2.6.1.tar.xz.sig

Use a mirror for higher download bandwidth:
  http://www.gnu.org/order/ftp.html

[*] Use a .sig file to verify that the corresponding file (without the
.sig suffix) is intact.  First, be sure to download both the .sig file
and the corresponding tarball.  Then, run a command like this:

  gpg --verify bison-2.6.1.tar.gz.sig

If that command fails because you don't have the required public key,
then run this command to import it:

  gpg --keyserver keys.gnupg.net --recv-keys 0DDCAA3278D5264E

and rerun the 'gpg --verify' command.

This release was bootstrapped with the following tools:
  Autoconf 2.69
  Automake 1.12.2
  Flex 2.5.36
  Gettext 0.18.1
  Gnulib v0.0-7549-ged4e07a

NEWS

* Noteworthy changes in release 2.6.1 (2012-07-30) [stable]

 Bison no longer executes user-specified M4 code when processing a grammar.

** Future Changes

  In addition to the removal of the features announced in Bison 2.6, the
  next major release will remove the "Temporary hack for adding a semicolon
  to the user action", as announced in the release 2.5.  Instead of:

    exp: exp "+" exp { $$ = $1 + $3 };

  write:

    exp: exp "+" exp { $$ = $1 + $3; };

** Bug fixes

*** Type names are now properly escaped.

*** glr.cc: set_debug_level and debug_level work as expected.

*** Stray @ or $ in actions

  While Bison used to warn about stray $ or @ in action rules, it did not
  for other actions such as printers, destructors, or initial actions.  It
  now does.

** Type names in actions

  For consistency with rule actions, it is now possible to qualify $$ by a
  type-name in destructors, printers, and initial actions.  For instance:

    %printer { fprintf (yyo, "(%d, %f)", $<ival>$, $<fval>$); } <*> <>;

  will display two values for each typed and untyped symbol (provided
  that YYSTYPE has both "ival" and "fval" fields).




From MAILER-DAEMON Mon Jul 30 07:02:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svnju-0004eg-Pf
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 07:02:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39460)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svnjk-0004eV-TR
	for bug-bison@gnu.org; Mon, 30 Jul 2012 07:02:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svnjg-0006zB-1L
	for bug-bison@gnu.org; Mon, 30 Jul 2012 07:02:08 -0400
Received: from smtp-out12.han.skanova.net ([195.67.226.212]:40606)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svnjf-0006v2-M0
	for bug-bison@gnu.org; Mon, 30 Jul 2012 07:02:03 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out12.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FAE31D901061EEF; Mon, 30 Jul 2012 13:01:16 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=us-ascii
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
Date: Mon, 30 Jul 2012 13:01:18 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.212
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 11:02:18 -0000

On 30 Jul 2012, at 11:58, Akim Demaille wrote:

> Since summer is the traditional period for the "Running of the Bulls"
> festivals in Spain and South of France, we are happy to contribute yet
> another running Bison in the streets.

There is no post on the Bison Help list; is that a bug? :-)

> This version fixes a nasty Bison bug, sort of a horse-fly, whose bite
> makes Bison run in dangerous ways...

FYI, there are compiler errors when compiling on Mac OS X 10.7 using =
Xcode 4.4 using
  $ export CC=3D'xcrun clang' CXX=3D'xcrun clang++'

These are the cc and c++ compilers on 10.8; gcc -> llvm-gcc is in effect =
deprecated, only kept for legacy.

Hans




From MAILER-DAEMON Mon Jul 30 07:37:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvoHV-0001k2-Jf
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 07:37:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36594)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvoHP-0001jg-QW
	for bug-bison@gnu.org; Mon, 30 Jul 2012 07:37:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvoHL-0002gZ-6u
	for bug-bison@gnu.org; Mon, 30 Jul 2012 07:36:55 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:40109
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvoHL-0002gG-14
	for bug-bison@gnu.org; Mon, 30 Jul 2012 07:36:51 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SvoHJ-00024D-Cw; Mon, 30 Jul 2012 13:36:49 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
Date: Mon, 30 Jul 2012 13:36:34 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
To: Hans Aberg <haberg-1@telia.com>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 11:37:00 -0000


Le 30 juil. 2012 =E0 13:01, Hans Aberg a =E9crit :

> On 30 Jul 2012, at 11:58, Akim Demaille wrote:
>=20
>> Since summer is the traditional period for the "Running of the Bulls"
>> festivals in Spain and South of France, we are happy to contribute =
yet
>> another running Bison in the streets.
>=20
> There is no post on the Bison Help list; is that a bug? :-)

Nope, I'm just waiting for early bug reports, then I'll
send the message more widely :)

>> This version fixes a nasty Bison bug, sort of a horse-fly, whose bite
>> makes Bison run in dangerous ways...
>=20
> FYI, there are compiler errors when compiling on Mac OS X 10.7 using =
Xcode 4.4 using
>  $ export CC=3D'xcrun clang' CXX=3D'xcrun clang++'
>=20
> These are the cc and c++ compilers on 10.8; gcc -> llvm-gcc is in =
effect deprecated, only kept for legacy.

Thanks Hans!

The warnings, I guess, are mostly in lib/, right?  There
are many of them, and they don't really matter.



From MAILER-DAEMON Mon Jul 30 08:04:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvoiO-0000Nr-7h
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 08:04:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51709)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SvoiC-0000MO-Ig
	for bug-bison@gnu.org; Mon, 30 Jul 2012 08:04:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svoi7-0004lR-Dd
	for bug-bison@gnu.org; Mon, 30 Jul 2012 08:04:36 -0400
Received: from smtp-out21.han.skanova.net ([195.67.226.208]:48116)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svoi7-0004lE-3C
	for bug-bison@gnu.org; Mon, 30 Jul 2012 08:04:31 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FD624AF00DD89DB; Mon, 30 Jul 2012 14:03:42 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
Date: Mon, 30 Jul 2012 14:03:44 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.208
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 12:04:46 -0000

On 30 Jul 2012, at 13:36, Akim Demaille wrote:

>>> This version fixes a nasty Bison bug, sort of a horse-fly, whose =
bite
>>> makes Bison run in dangerous ways...
>>=20
>> FYI, there are compiler errors when compiling on Mac OS X 10.7 using =
Xcode 4.4 using
>> $ export CC=3D'xcrun clang' CXX=3D'xcrun clang++'
>>=20
>> These are the cc and c++ compilers on 10.8; gcc -> llvm-gcc is in =
effect deprecated, only kept for legacy.
>=20
> Thanks Hans!

You are welcome.

> The warnings, I guess, are mostly in lib/, right?  There
> are many of them, and they don't really matter.

There were errors: it did not complete compilation.

Hans


----
$ make
make  all-recursive
Making all in build-aux
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in runtime-po
make[2]: Nothing to be done for `all'.
Making all in lib
  GEN      alloca.h
...
  GEN      wctype.h
make  all-am
  CC       main.o
...
  CC       error.o
../../bison-2.6.1/lib/error.c:381:12: warning: data argument not used by =
format string [-Wformat-extra-args]
           file_name, line_number);
           ^
1 warning generated.
  CC       fpending.o
...
  CC       stpcpy.o
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected parameter =
declarator
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:63: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                              ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:63: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                              ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:54: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                     ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:27: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
                          ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:4: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
   ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:100:4: note: expanded from macro 'stpcpy'
   ? __builtin___stpcpy_chk (dest, src, __darwin_obsz (dest))           =
\
   ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:3: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
  ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: conflicting types for =
'__builtin_object_size'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:32: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
/usr/include/secure/_string.h:61:56: note: '__builtin_object_size' is a =
builtin with type 'unsigned long (const void *, int)'
  return __builtin___memcpy_chk (__dest, __src, __len, =
__darwin_obsz0(__dest));
                                                       ^
/usr/include/secure/_common.h:38:32: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: definition of builtin =
function '__builtin_object_size'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:32: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
../../bison-2.6.1/lib/stpcpy.c:39:28: error: use of undeclared =
identifier 'src'
  register const char *s =3D src;
                           ^
7 errors generated.
make[3]: *** [stpcpy.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
----



From MAILER-DAEMON Mon Jul 30 09:04:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvpeX-0006kS-3L
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 09:04:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43665)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvpeO-0006iS-0f
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:04:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvpeE-00018M-HX
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:04:43 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:45583
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvpeE-000188-BH
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:04:34 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SvpeD-0005n8-Cc; Mon, 30 Jul 2012 15:04:33 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
Date: Mon, 30 Jul 2012 15:04:19 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
To: Hans Aberg <haberg-1@telia.com>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 13:04:51 -0000


Le 30 juil. 2012 =E0 14:03, Hans Aberg a =E9crit :

> There were errors: it did not complete compilation.

Ah.  What's --version of these compilers?  I have tons of
warnings, but no errors.

>  CC       stpcpy.o
> ../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected parameter =
declarator
> __stpcpy (char *dest, const char *src)
> ^

What the heck???  The lines are:

34 /* Copy SRC to DEST, returning the address of the terminating '\0' in =
DEST.  */
35 char *
36 __stpcpy (char *dest, const char *src)
37 {

So really, I fail to see what could be wrong here.  I guess
the issue is elsewhere.  Maybe stpcpy is already defined as
a macro elsewhere.

Could you investigate this?  For instance run "make V=3D1" to
get the compilation for this file, and try to run the same
command, but replacing -c by -E to get the result from the
preprocessor.

> ../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
> # define __stpcpy stpcpy
>                  ^
> /usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
>  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                             =
  \
>    ^

Ah, ok, forget it, the message says it: this is indeed a macro.

So, in stpcpy.c, if you replace

#undef __stpcpy
#ifdef _LIBC
# undef stpcpy
#endif

by

#undef __stpcpy
#undef stpcpy

I guess it works?  I would also need config.log please.




From MAILER-DAEMON Mon Jul 30 09:19:32 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svpsi-0001K5-Q0
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 09:19:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54625)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svpsc-0001IO-PS
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:19:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SvpsT-0007kS-CO
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:19:26 -0400
Received: from smtp-out12.han.skanova.net ([195.67.226.212]:46233)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SvpsT-0007kH-2q
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:19:17 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out12.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FAE31D901068D35; Mon, 30 Jul 2012 15:18:30 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
Date: Mon, 30 Jul 2012 15:18:33 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <E5FF568D-4B6C-4530-B87E-0258AB4F17A3@telia.com>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.212
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 13:19:31 -0000


On 30 Jul 2012, at 15:04, Akim Demaille wrote:

> Le 30 juil. 2012 =E0 14:03, Hans Aberg a =E9crit :
>=20
>> There were errors: it did not complete compilation.
>=20
> Ah.  What's --version of these compilers?  I have tons of
> warnings, but no errors.

It compiles and passes 'make check' using SVN clang version 3.2 (trunk =
160173). The compiler 'xcrun clang' is 'Apple clang version 4.0 =
(tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)', an inhouse tweak.

So apparently, it is due to a bad Apple. :-)

>> CC       stpcpy.o
>> ../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected parameter =
declarator
>> __stpcpy (char *dest, const char *src)
>> ^
>=20
> What the heck??? =20
...
> Could you investigate this? =20

I might, but it may not be worth the effort. There is problem compiling =
GC, from git, too using this compiler, on 10.8. I'm using 10.7.

Hans





From MAILER-DAEMON Mon Jul 30 09:25:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svpyl-0002ZQ-6j
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 09:25:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44390)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Svpya-0002Y2-Gw
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:25:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvpyQ-0001z9-FV
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:25:36 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:46440
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvpyQ-0001yu-9o
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:25:26 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SvpyP-0006l2-FK; Mon, 30 Jul 2012 15:25:25 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <E5FF568D-4B6C-4530-B87E-0258AB4F17A3@telia.com>
Date: Mon, 30 Jul 2012 15:25:12 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <BFD1AEC3-BC07-4C41-B083-9BF573FB275E@lrde.epita.fr>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
	<E5FF568D-4B6C-4530-B87E-0258AB4F17A3@telia.com>
To: Hans Aberg <haberg-1@telia.com>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 13:25:45 -0000


Le 30 juil. 2012 =E0 15:18, Hans Aberg a =E9crit :

>> Could you investigate this? =20
>=20
> I might, but it may not be worth the effort. There is problem =
compiling GC, from git, too using this compiler, on 10.8. I'm using =
10.7.

OK, but i'd like to have config.log please.  The one which
fails.  Thanks in advance!



From MAILER-DAEMON Mon Jul 30 09:27:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svq04-0002bU-D7
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 09:27:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44606)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svpzt-0002bH-Ak
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:27:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svpzn-0002Sc-Nz
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:26:57 -0400
Received: from smtp-out21.han.skanova.net ([195.67.226.208]:35069)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svpzn-0002SS-9f
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:26:51 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FD624AF00DDE5AA; Mon, 30 Jul 2012 15:26:04 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
Date: Mon, 30 Jul 2012 15:26:07 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <47F68444-5A0F-4DE1-8306-BE8352A7B359@telia.com>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.208
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 13:27:07 -0000


On 30 Jul 2012, at 15:04, Akim Demaille wrote:

> Could you investigate this?  For instance run "make V=3D1" to
> get the compilation for this file, and try to run the same
> command, but replacing -c by -E to get the result from the
> preprocessor.

It might be a mismatch of headers, as there is '-I/usr/local/include' in =
the compile command, whereas
$ xcrun -f clang
=
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc=
hain/usr/bin/clang

And the directory .../usr/ here has its own include/.

Hans


----
$ make V=3D1
make  all-recursive
Making all in build-aux
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in runtime-po
make[2]: Nothing to be done for `all'.
Making all in lib
make  all-am
xcrun clang  -I. -I../../bison-2.6.1/lib  -I../intl -I/usr/local/include =
 -g -O2 -MT stpcpy.o -MD -MP -MF .deps/stpcpy.Tpo -c -o stpcpy.o =
../../bison-2.6.1/lib/stpcpy.c
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected parameter =
declarator
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:63: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                              ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:63: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                              ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:54: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                     ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:27: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
                          ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:4: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
   ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:100:4: note: expanded from macro 'stpcpy'
   ? __builtin___stpcpy_chk (dest, src, __darwin_obsz (dest))           =
\
   ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:3: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
  ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: conflicting types for =
'__builtin_object_size'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:32: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
/usr/include/secure/_string.h:61:56: note: '__builtin_object_size' is a =
builtin with type 'unsigned long (const void *, int)'
  return __builtin___memcpy_chk (__dest, __src, __len, =
__darwin_obsz0(__dest));
                                                       ^
/usr/include/secure/_common.h:38:32: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: definition of builtin =
function '__builtin_object_size'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro =
'__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) !=3D (size_t) -1)                              =
 \
    ^
/usr/include/secure/_common.h:38:32: note: expanded from macro =
'__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
../../bison-2.6.1/lib/stpcpy.c:39:28: error: use of undeclared =
identifier 'src'
  register const char *s =3D src;
                           ^
7 errors generated.
make[3]: *** [stpcpy.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
----



From MAILER-DAEMON Mon Jul 30 09:28:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svq1m-0002k5-IR
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 09:28:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44906)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svq1b-0002fJ-VP
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:28:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svq1L-00039G-Fi
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:28:43 -0400
Received: from smtp-out21.han.skanova.net ([195.67.226.208]:35880)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svq1L-000399-4y
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:28:27 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FD624AF00DDE76B; Mon, 30 Jul 2012 15:27:41 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <BFD1AEC3-BC07-4C41-B083-9BF573FB275E@lrde.epita.fr>
Date: Mon, 30 Jul 2012 15:27:43 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <CD9F0C0B-4E89-4A14-BC57-6FE2C5C5B7AC@telia.com>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
	<E5FF568D-4B6C-4530-B87E-0258AB4F17A3@telia.com>
	<BFD1AEC3-BC07-4C41-B083-9BF573FB275E@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.208
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 13:28:53 -0000


On 30 Jul 2012, at 15:25, Akim Demaille wrote:

>=20
> Le 30 juil. 2012 =E0 15:18, Hans Aberg a =E9crit :
>=20
>>> Could you investigate this? =20
>>=20
>> I might, but it may not be worth the effort. There is problem =
compiling GC, from git, too using this compiler, on 10.8. I'm using =
10.7.
>=20
> OK, but i'd like to have config.log please.  The one which
> fails.  Thanks in advance!

Sure. I'll send it separately.

Hans




From MAILER-DAEMON Mon Jul 30 09:53:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvqPs-0006As-Rj
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 09:53:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37140)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvqPn-0005uv-9R
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:53:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvqPm-0003v2-6f
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:53:43 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:46948
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvqPm-0003ux-0j
	for bug-bison@gnu.org; Mon, 30 Jul 2012 09:53:42 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SvqPk-000835-CV; Mon, 30 Jul 2012 15:53:40 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=windows-1252
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <CD9F0C0B-4E89-4A14-BC57-6FE2C5C5B7AC@telia.com>
Date: Mon, 30 Jul 2012 15:53:27 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <CB7947FC-1377-4E6E-89BA-A42A4843F8E4@lrde.epita.fr>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
	<E5FF568D-4B6C-4530-B87E-0258AB4F17A3@telia.com>
	<BFD1AEC3-BC07-4C41-B083-9BF573FB275E@lrde.epita.fr>
	<CD9F0C0B-4E89-4A14-BC57-6FE2C5C5B7AC@telia.com>
To: Hans Aberg <haberg-1@telia.com>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 13:53:48 -0000


Le 30 juil. 2012 =E0 15:27, Hans Aberg a =E9crit :

>=20
> On 30 Jul 2012, at 15:25, Akim Demaille wrote:
>=20
>>=20
>> Le 30 juil. 2012 =E0 15:18, Hans Aberg a =E9crit :
>>=20
>>>> Could you investigate this? =20
>>>=20
>>> I might, but it may not be worth the effort. There is problem =
compiling GC, from git, too using this compiler, on 10.8. I'm using =
10.7.
>>=20
>> OK, but i'd like to have config.log please.  The one which
>> fails.  Thanks in advance!
>=20
> Sure. I'll send it separately.

Actually it would be nice to keep it public, for future references.

I see this:

configure:19039: checking whether stpcpy is declared without a macro
configure:19057: xcrun clang -c -g -O2  conftest.c >&5
configure:19057: $? =3D 0
configure:19065: result: yes

for some reason it first believed that the function is
not a macro, but it is=85

Ideas would be most welcome :)




From MAILER-DAEMON Mon Jul 30 10:08:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svqe9-0004vy-Lp
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 10:08:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59285)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svqe4-0004uc-7a
	for bug-bison@gnu.org; Mon, 30 Jul 2012 10:08:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svqdx-00026C-TF
	for bug-bison@gnu.org; Mon, 30 Jul 2012 10:08:28 -0400
Received: from smtp-out11.han.skanova.net ([195.67.226.200]:38274)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svqdx-000260-Ia
	for bug-bison@gnu.org; Mon, 30 Jul 2012 10:08:21 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out11.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FA80EAF01AA2233; Mon, 30 Jul 2012 16:07:34 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=windows-1252
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <CB7947FC-1377-4E6E-89BA-A42A4843F8E4@lrde.epita.fr>
Date: Mon, 30 Jul 2012 16:07:37 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <94570386-A434-4D9F-94E7-BE92D93B70F5@telia.com>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
	<E5FF568D-4B6C-4530-B87E-0258AB4F17A3@telia.com>
	<BFD1AEC3-BC07-4C41-B083-9BF573FB275E@lrde.epita.fr>
	<CD9F0C0B-4E89-4A14-BC57-6FE2C5C5B7AC@telia.com>
	<CB7947FC-1377-4E6E-89BA-A42A4843F8E4@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.200
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 14:08:32 -0000

On 30 Jul 2012, at 15:53, Akim Demaille wrote:

> Le 30 juil. 2012 =E0 15:27, Hans Aberg a =E9crit :
>=20
>> On 30 Jul 2012, at 15:25, Akim Demaille wrote:
>>=20
>>> Le 30 juil. 2012 =E0 15:18, Hans Aberg a =E9crit :
>>>=20
>>>>> Could you investigate this? =20
>>>>=20
>>>> I might, but it may not be worth the effort. There is problem =
compiling GC, from git, too using this compiler, on 10.8. I'm using =
10.7.
>>>=20
>>> OK, but i'd like to have config.log please.  The one which
>>> fails.  Thanks in advance!
>>=20
>> Sure. I'll send it separately.
>=20
> Actually it would be nice to keep it public, for future references.

It is > 1 MB, which to some is still too large on a public list. Perhaps =
better with some archive.

> I see this:
>=20
> configure:19039: checking whether stpcpy is declared without a macro
> configure:19057: xcrun clang -c -g -O2  conftest.c >&5
> configure:19057: $? =3D 0
> configure:19065: result: yes
>=20
> for some reason it first believed that the function is
> not a macro, but it is=85
>=20
> Ideas would be most welcome :)

It seems conftest.c is a file that is erased.

Hans





From MAILER-DAEMON Mon Jul 30 10:18:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svqnd-0007d1-0e
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 10:18:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50148)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvqnX-0007bN-5O
	for bug-bison@gnu.org; Mon, 30 Jul 2012 10:18:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvqnR-0005w0-2q
	for bug-bison@gnu.org; Mon, 30 Jul 2012 10:18:15 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:42283
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1SvqnQ-0005vd-Sr
	for bug-bison@gnu.org; Mon, 30 Jul 2012 10:18:09 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1SvqnK-0000cV-2L; Mon, 30 Jul 2012 16:18:02 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <47F68444-5A0F-4DE1-8306-BE8352A7B359@telia.com>
Date: Mon, 30 Jul 2012 16:17:50 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <F6B7E969-41A3-46C9-BE0A-5116290B4254@lrde.epita.fr>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
	<47F68444-5A0F-4DE1-8306-BE8352A7B359@telia.com>
To: Hans Aberg <haberg-1@telia.com>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 14:18:19 -0000


Le 30 juil. 2012 =E0 15:26, Hans Aberg a =E9crit :

>=20
> On 30 Jul 2012, at 15:04, Akim Demaille wrote:
>=20
>> Could you investigate this?  For instance run "make V=3D1" to
>> get the compilation for this file, and try to run the same
>> command, but replacing -c by -E to get the result from the
>> preprocessor.
>=20
> It might be a mismatch of headers, as there is '-I/usr/local/include' =
in the compile command, whereas
> $ xcrun -f clang
> =
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc=
hain/usr/bin/clang
>=20
> And the directory .../usr/ here has its own include/.


According to your config.log, it is probably where your
gettext is installed.  And I don't think there are includes
there that try to define stpcpy.



From MAILER-DAEMON Mon Jul 30 11:05:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvrX7-0007im-GA
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 11:05:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39570)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SvrWw-0007hw-Rt
	for bug-bison@gnu.org; Mon, 30 Jul 2012 11:05:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SvrWv-0007eb-U4
	for bug-bison@gnu.org; Mon, 30 Jul 2012 11:05:10 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:46306)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SvrWv-0007d2-O6
	for bug-bison@gnu.org; Mon, 30 Jul 2012 11:05:09 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 2B43D39E8008;
	Mon, 30 Jul 2012 08:05:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id NOrZL-qriK6o; Mon, 30 Jul 2012 08:05:07 -0700 (PDT)
Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 9F7A439E8007;
	Mon, 30 Jul 2012 08:05:07 -0700 (PDT)
Message-ID: <5016A2A3.80006@cs.ucla.edu>
Date: Mon, 30 Jul 2012 08:05:07 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version: 1.0
To: Akim Demaille <akim@lrde.epita.fr>
Subject: bison-2.6.1 doesn't build on Solaris 8
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
In-Reply-To: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 15:05:20 -0000

My first attempt to build on Solaris failed as follows:

...
configure: error: Flex is required

Why is 'flex' required to build Bison?  Shouldn't 'flex' be run
by the maintainer who generates the Bison tarball?


From MAILER-DAEMON Mon Jul 30 11:37:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svs2d-0000ry-B6
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 11:37:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50206)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Svs2X-0000j7-KR
	for bug-bison@gnu.org; Mon, 30 Jul 2012 11:37:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Svs2W-0005Tc-NX
	for bug-bison@gnu.org; Mon, 30 Jul 2012 11:37:49 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:36877
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Svs2W-0005TB-I8
	for bug-bison@gnu.org; Mon, 30 Jul 2012 11:37:48 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Svs2P-0003zO-JZ; Mon, 30 Jul 2012 17:37:41 +0200
Subject: Re: bison-2.6.1 doesn't build on Solaris 8
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <5016A2A3.80006@cs.ucla.edu>
Date: Mon, 30 Jul 2012 17:37:31 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <A803EA15-B14E-4903-A0AF-7A23B29BE913@lrde.epita.fr>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<5016A2A3.80006@cs.ucla.edu>
To: Paul Eggert <eggert@cs.ucla.edu>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 15:37:53 -0000


Le 30 juil. 2012 =E0 17:05, Paul Eggert a =E9crit :

> My first attempt to build on Solaris failed as follows:
>=20
> ...
> configure: error: Flex is required
>=20
> Why is 'flex' required to build Bison?  Shouldn't 'flex' be run
> by the maintainer who generates the Bison tarball?

Hi Paul,

We actually need flex, not lex, so I had to strengthen
the configure test.  And I might have made it an error
unnecessarily.  Yet, because I want to extract the examples,
and run them, on the user side, I feel anyway more comfortable
with requiring Flex.

Do you think this is really an issue?  I figured that someone
installing Bison is very likely to have Flex.



From MAILER-DAEMON Mon Jul 30 12:10:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvsY9-0005oQ-Dd
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 12:10:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52295)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SvsY7-0005ic-0D
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:10:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SvsY2-0003GP-RO
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:10:26 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:49455)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SvsY2-0003GC-LS
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:10:22 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id BE094A60006;
	Mon, 30 Jul 2012 09:10:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id JgOorbKVWOKX; Mon, 30 Jul 2012 09:10:20 -0700 (PDT)
Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 1D19FA60003;
	Mon, 30 Jul 2012 09:10:20 -0700 (PDT)
Message-ID: <5016B1EC.7030000@cs.ucla.edu>
Date: Mon, 30 Jul 2012 09:10:20 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version: 1.0
To: Akim Demaille <akim@lrde.epita.fr>
Subject: Re: bison-2.6.1 doesn't build on Solaris 8
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<5016A2A3.80006@cs.ucla.edu>
	<A803EA15-B14E-4903-A0AF-7A23B29BE913@lrde.epita.fr>
In-Reply-To: <A803EA15-B14E-4903-A0AF-7A23B29BE913@lrde.epita.fr>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 16:10:27 -0000

On 07/30/2012 08:37 AM, Akim Demaille wrote:
> Do you think this is really an issue?  I figured that someone
> installing Bison is very likely to have Flex.

That's more likely than not these days, yes, but still,
it's not a good sign that this failure occurred the first
time I tried to install Bison.

If it's just examples, then it'd be better if Bison's
'configure' merely issued a warning and then didn't
run the example code on the user side?   Are these
examples extracted from the manual? if so, they can
be done by the person making the tarball too.  The
general idea is to do as much as possible before
generating the tarball, as this makes things easier
on the installer.

Also, suppose some day Flex requires Bison?  :-)



From MAILER-DAEMON Mon Jul 30 12:11:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvsYk-000628-Ie
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 12:11:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52491)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SvsYf-00061h-2H
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:11:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SvsYa-0003V0-51
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:11:00 -0400
Received: from smtp-out12.han.skanova.net ([195.67.226.212]:35174)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1SvsYZ-0003UM-RJ
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:10:56 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out12.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FAE31D9010708D6; Mon, 30 Jul 2012 18:10:08 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <F6B7E969-41A3-46C9-BE0A-5116290B4254@lrde.epita.fr>
Date: Mon, 30 Jul 2012 18:10:06 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <CF8865E4-D1A2-4CEB-85D8-2C5639770B00@telia.com>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
	<47F68444-5A0F-4DE1-8306-BE8352A7B359@telia.com>
	<F6B7E969-41A3-46C9-BE0A-5116290B4254@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.212
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 16:11:05 -0000

On 30 Jul 2012, at 16:17, Akim Demaille wrote:

> Le 30 juil. 2012 =E0 15:26, Hans Aberg a =E9crit :
>=20
>> On 30 Jul 2012, at 15:04, Akim Demaille wrote:
>>=20
>>> Could you investigate this?  For instance run "make V=3D1" to
>>> get the compilation for this file, and try to run the same
>>> command, but replacing -c by -E to get the result from the
>>> preprocessor.
>>=20
>> It might be a mismatch of headers, as there is '-I/usr/local/include' =
in the compile command, whereas
>> $ xcrun -f clang
>> =
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc=
hain/usr/bin/clang
>>=20
>> And the directory .../usr/ here has its own include/.
>=20
> According to your config.log, it is probably where your
> gettext is installed. =20

Wich is /usr/local/bin/gettext

> And I don't think there are includes
> there that try to define stpcpy.

No, there aren't. It's getting complicate, with a number of usr/ =
locations.

Hans





From MAILER-DAEMON Mon Jul 30 12:18:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvsgD-0000pH-2e
	for mharc-bug-bison@gnu.org; Mon, 30 Jul 2012 12:18:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50286)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svsg6-0000oh-Ah
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:18:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svsg0-0006u8-Jj
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:18:42 -0400
Received: from smtp-out12.han.skanova.net ([195.67.226.212]:38020)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <haberg-1@telia.com>) id 1Svsg0-0006u0-9u
	for bug-bison@gnu.org; Mon, 30 Jul 2012 12:18:36 -0400
Received: from [10.0.1.2] (217.210.127.13) by smtp-out12.han.skanova.net
	(8.5.133) (authenticated as u26619196)
	id 4FAE31D901070D55; Mon, 30 Jul 2012 18:17:49 +0200
Subject: Re: bison-2.6.1 released [stable]
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=windows-1252
From: Hans Aberg <haberg-1@telia.com>
In-Reply-To: <9ECB36E3-C981-43B9-BC7A-3251CB3628EF@lrde.epita.fr>
Date: Mon, 30 Jul 2012 18:17:48 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <0648D0C1-D33E-4345-92D1-7753285D3657@telia.com>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<3FEA96A9-9C00-4E00-B579-8E6A1247213A@telia.com>
	<5C4FBD52-7DD3-4214-A45E-48FED4C4F795@lrde.epita.fr>
	<6254CAB2-E0CC-43B7-8DCF-62588A168CDF@telia.com>
	<B2AEC97D-456F-4A69-9B58-99A5427A40D3@lrde.epita.fr>
	<E5FF568D-4B6C-4530-B87E-0258AB4F17A3@telia.com>
	<BFD1AEC3-BC07-4C41-B083-9BF573FB275E@lrde.epita.fr>
	<CD9F0C0B-4E89-4A14-BC57-6FE2C5C5B7AC@telia.com>
	<CB7947FC-1377-4E6E-89BA-A42A4843F8E4@lrde.epita.fr>
	<9ECB36E3-C981-43B9-BC7A-3251CB3628EF@lrde.epita.fr>
To: Akim Demaille <akim@lrde.epita.fr>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.67.226.212
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 16:18:48 -0000

On 30 Jul 2012, at 17:52, Akim Demaille wrote:

> Le 30 juil. 2012 =E0 15:53, Akim Demaille a =E9crit :
>=20
>> Actually it would be nice to keep it public, for future references.
>=20
> FTR, the most important part:
>=20
> configure:29879: checking for stpcpy
> configure:29879: xcrun clang -o conftest -g -O2   conftest.c  >&5
> conftest.c:456:6: warning: incompatible redeclaration of library =
function 'stpcpy'
> char stpcpy ();
>     ^
> conftest.c:456:6: note: 'stpcpy' is a builtin with type 'char *(char =
*, const char *)'
> 1 warning generated.
> dsymutil(44363,0x7fff7eaf2960) malloc: *** error for object =
0x10fb0a5c0: incorrect checksum for freed object - object was probably =
modified after being freed.
> *** set a breakpoint in malloc_error_break to debug

I have seen this before, one can set breakpoint and debug in Xcode. Some =
searches suggest that an object may have bee freed twice.

> clang: error: unable to execute command: Abort trap: 6
> clang: error: dsymutil command failed due to signal (use -v to see =
invocation)
> clang: note: diagnostic msg: Please submit a bug report to =
http://developer.apple.com/bugreporter/ and include command line =
arguments and all diagnostic information.
...
> I cannot reproduce your problem (error for object 0x10fb0a5c0: =
incorrect
> checksum for freed).

It may be a compiler bug. Hard to catch, and to get fixed.

Hans




From MAILER-DAEMON Tue Jul 31 06:01:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Sw9GR-0003le-G3
	for mharc-bug-bison@gnu.org; Tue, 31 Jul 2012 06:01:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42458)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Sw9GL-0003lJ-Er
	for bug-bison@gnu.org; Tue, 31 Jul 2012 06:01:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Sw9GA-0003xi-EL
	for bug-bison@gnu.org; Tue, 31 Jul 2012 06:01:13 -0400
Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:34474
	helo=kualalumpur.lrde.epita.fr)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akim@lrde.epita.fr>) id 1Sw9GA-0003Yk-8b
	for bug-bison@gnu.org; Tue, 31 Jul 2012 06:01:02 -0400
Received: from erebus.lrde.epita.fr ([192.168.101.165])
	by kualalumpur.lrde.epita.fr with esmtpsa
	(TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63)
	(envelope-from <akim@lrde.epita.fr>)
	id 1Sw9FN-0003IB-U8; Tue, 31 Jul 2012 12:00:13 +0200
Subject: Re: bison-2.6.1 doesn't build on Solaris 8
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=iso-8859-1
From: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <5016B1EC.7030000@cs.ucla.edu>
Date: Tue, 31 Jul 2012 12:00:02 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <0169466D-1ADD-4275-A372-CE53D3B36ABB@lrde.epita.fr>
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<5016A2A3.80006@cs.ucla.edu>
	<A803EA15-B14E-4903-A0AF-7A23B29BE913@lrde.epita.fr>
	<5016B1EC.7030000@cs.ucla.edu>
To: Paul Eggert <eggert@cs.ucla.edu>
X-Mailer: Apple Mail (2.1278)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 163.5.55.1
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Jul 2012 10:01:18 -0000

Hi Paul,

Le 30 juil. 2012 =E0 18:10, Paul Eggert a =E9crit :

> On 07/30/2012 08:37 AM, Akim Demaille wrote:
>> Do you think this is really an issue?  I figured that someone
>> installing Bison is very likely to have Flex.
>=20
> That's more likely than not these days, yes, but still,
> it's not a good sign that this failure occurred the first
> time I tried to install Bison.

Sorry about that :/

> If it's just examples, then it'd be better if Bison's
> 'configure' merely issued a warning and then didn't
> run the example code on the user side?

The point is to install them, they're part of the documentation.

> Are these
> examples extracted from the manual? if so, they can
> be done by the person making the tarball too.

Yes, they are, but really, I've lost hours fighting
issues in srcdir vs builddir, and I am not willing to spend
again some time on this now.  Updating in srcdir is too
messy.

So there would be two kinds of tarballs: those made with
Flex, and those without.

>  The
> general idea is to do as much as possible before
> generating the tarball, as this makes things easier
> on the installer.
>=20
> Also, suppose some day Flex requires Bison?  :-)

I understand this, but I see no simple means to achieve
this, especially in master.  If there's strong resistance
agains that, I'll spend some time on this, but currently,
I am really eager to finish what was started years ago
and finally release C++ with variants, renamed %define
variables etc.



From MAILER-DAEMON Tue Jul 31 11:44:05 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SwEc9-00018D-Ku
	for mharc-bug-bison@gnu.org; Tue, 31 Jul 2012 11:44:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47369)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SwEc2-0000oU-TA
	for bug-bison@gnu.org; Tue, 31 Jul 2012 11:44:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SwEbx-0003uw-36
	for bug-bison@gnu.org; Tue, 31 Jul 2012 11:43:58 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:43302)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SwEbw-0003ug-Qs
	for bug-bison@gnu.org; Tue, 31 Jul 2012 11:43:53 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 0F7E0A60007;
	Tue, 31 Jul 2012 08:43:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 5y6pxM3I1YzL; Tue, 31 Jul 2012 08:43:51 -0700 (PDT)
Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id A19D039E8007;
	Tue, 31 Jul 2012 08:43:51 -0700 (PDT)
Message-ID: <5017FD37.5090606@cs.ucla.edu>
Date: Tue, 31 Jul 2012 08:43:51 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version: 1.0
To: Akim Demaille <akim@lrde.epita.fr>
Subject: Re: bison-2.6.1 doesn't build on Solaris 8
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<5016A2A3.80006@cs.ucla.edu>
	<A803EA15-B14E-4903-A0AF-7A23B29BE913@lrde.epita.fr>
	<5016B1EC.7030000@cs.ucla.edu>
	<0169466D-1ADD-4275-A372-CE53D3B36ABB@lrde.epita.fr>
In-Reply-To: <0169466D-1ADD-4275-A372-CE53D3B36ABB@lrde.epita.fr>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Jul 2012 15:44:03 -0000

On 07/31/2012 03:00 AM, Akim Demaille wrote:
> So there would be two kinds of tarballs: those made with
> Flex, and those without.

Sorry, I wasn't clear enough.  It's fine to require
the *maintainer* to have 'flex', so there would be only
one tarball, one with all the examples extracted from
the manual nicely.  The point is that there should be no
need to require that the *builder* must have 'flex'.

If you're too busy for this I could take a crack at it.
Alas, the git master doesn't build for me.  When I
try to check it out and run './bootstrap' (this is
on Fedora 15, by the way, not Solaris) it fails
with the tail end of the log being as follows:

prefix=lib/
running: AUTOPOINT=true LIBTOOLIZE=true  autoreconf --verbose --install --no-recursive -I m4 
autoreconf: Entering directory `.'
autoreconf: running: true
autoreconf: running: aclocal -I m4 -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/eggert/opt/Linux-x86_64/autoconf-2.69/bin/autoconf --include=m4
configure.ac:125: error: possibly undefined macro: AC_PROG_GNU_M4
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /home/eggert/opt/Linux-x86_64/autoconf-2.69/bin/autoconf failed with exit status: 1
./bootstrap: autoreconf failed



From MAILER-DAEMON Tue Jul 31 11:52:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SwEkB-00059X-2l
	for mharc-bug-bison@gnu.org; Tue, 31 Jul 2012 11:52:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44070)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SwEk5-0004uR-9N
	for bug-bison@gnu.org; Tue, 31 Jul 2012 11:52:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SwEk3-0007QE-Gf
	for bug-bison@gnu.org; Tue, 31 Jul 2012 11:52:17 -0400
Received: from mail-bk0-f41.google.com ([209.85.214.41]:56171)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SwEk3-0007Pv-9J
	for bug-bison@gnu.org; Tue, 31 Jul 2012 11:52:15 -0400
Received: by bkcjc3 with SMTP id jc3so3146104bkc.0
	for <bug-bison@gnu.org>; Tue, 31 Jul 2012 08:52:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:mime-version:to:cc:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	bh=/cqzjIQJcF3/I2wch8oIAE2w8ggFdmR+wOKQA5itXsY=;
	b=IGa5qpRuM8YQCM5YWfAB2D0RF8messi7GecQQxd7795U8pOuuYjSY/kHojT3Xb+nqD
	Xc7sCZAfrrTyr8XrMEh7UdS0YKIIzJ4pR4u9981QWr64fFTJ9MVjnk73hXoYsuEzRcCX
	9FU39UlcLKXEoOyG5N8D+m4hEzZWsjeYCSQQTDqN2qbganOHdMiP1w1acTVdWKeZqW0x
	jZS5Q64ajDfBVAX1G6ij6MYrm0yKk9bJrrUT/N1cE/5dZHFLR0WhsEEuU1qOB3aUl2r8
	DXviOJU8gRr8r/3oKUWr4XuG4yzbtNcN/bVSKzaGheoylA+W/R5Q7ELp3yjUezuvYW74
	G/iw==
Received: by 10.205.135.6 with SMTP id ie6mr5419196bkc.139.1343749934150;
	Tue, 31 Jul 2012 08:52:14 -0700 (PDT)
Received: from [192.168.178.21]
	(host152-95-dynamic.2-87-r.retail.telecomitalia.it. [87.2.95.152])
	by mx.google.com with ESMTPS id n17sm355084bks.6.2012.07.31.08.52.12
	(version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 08:52:13 -0700 (PDT)
Message-ID: <5017FF25.4030503@gmail.com>
Date: Tue, 31 Jul 2012 17:52:05 +0200
From: Stefano Lattarini <stefano.lattarini@gmail.com>
MIME-Version: 1.0
To: Paul Eggert <eggert@cs.ucla.edu>
Subject: Re: bison-2.6.1 doesn't build on Solaris 8
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<5016A2A3.80006@cs.ucla.edu>
	<A803EA15-B14E-4903-A0AF-7A23B29BE913@lrde.epita.fr>
	<5016B1EC.7030000@cs.ucla.edu>
	<0169466D-1ADD-4275-A372-CE53D3B36ABB@lrde.epita.fr>
	<5017FD37.5090606@cs.ucla.edu>
In-Reply-To: <5017FD37.5090606@cs.ucla.edu>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Cc: Akim Demaille <akim@lrde.epita.fr>, Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Jul 2012 15:52:21 -0000

Hi Paul.

On 07/31/2012 05:43 PM, Paul Eggert wrote:
>
> Alas, the git master doesn't build for me.  When I
> try to check it out and run './bootstrap' (this is
> on Fedora 15, by the way, not Solaris) it fails
> with the tail end of the log being as follows:
> 
> prefix=lib/
> running: AUTOPOINT=true LIBTOOLIZE=true  autoreconf --verbose --install --no-recursive -I m4 
> autoreconf: Entering directory `.'
> autoreconf: running: true
> autoreconf: running: aclocal -I m4 -I m4
> autoreconf: configure.ac: tracing
> autoreconf: configure.ac: not using Libtool
> autoreconf: running: /home/eggert/opt/Linux-x86_64/autoconf-2.69/bin/autoconf --include=m4
> configure.ac:125: error: possibly undefined macro: AC_PROG_GNU_M4
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> autoreconf: /home/eggert/opt/Linux-x86_64/autoconf-2.69/bin/autoconf failed with exit status: 1
> ./bootstrap: autoreconf failed
> 
> 
This used to happen to me as well.  You should run "git submodule init" and/or
"git submodule update" explicitly after the first clone of the Bison repo.

HTH,
  Stefano


From MAILER-DAEMON Tue Jul 31 12:58:09 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SwFlp-0006Bb-15
	for mharc-bug-bison@gnu.org; Tue, 31 Jul 2012 12:58:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60696)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SwFlm-00069u-Fc
	for bug-bison@gnu.org; Tue, 31 Jul 2012 12:58:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SwFll-0006PY-GC
	for bug-bison@gnu.org; Tue, 31 Jul 2012 12:58:06 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:47501)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SwFll-0006PP-AF
	for bug-bison@gnu.org; Tue, 31 Jul 2012 12:58:05 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 2BDC4A60009;
	Tue, 31 Jul 2012 09:58:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id teAZLROftUza; Tue, 31 Jul 2012 09:58:03 -0700 (PDT)
Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C0B05A60008;
	Tue, 31 Jul 2012 09:58:03 -0700 (PDT)
Message-ID: <50180E9C.3010606@cs.ucla.edu>
Date: Tue, 31 Jul 2012 09:58:04 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version: 1.0
To: Stefano Lattarini <stefano.lattarini@gmail.com>
Subject: Re: bison-2.6.1 doesn't build on Solaris 8
References: <1610AD40-F625-49A3-8BF2-AF8147AD2945@lrde.epita.fr>
	<5016A2A3.80006@cs.ucla.edu>
	<A803EA15-B14E-4903-A0AF-7A23B29BE913@lrde.epita.fr>
	<5016B1EC.7030000@cs.ucla.edu>
	<0169466D-1ADD-4275-A372-CE53D3B36ABB@lrde.epita.fr>
	<5017FD37.5090606@cs.ucla.edu> <5017FF25.4030503@gmail.com>
In-Reply-To: <5017FF25.4030503@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Akim Demaille <akim@lrde.epita.fr>, Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Jul 2012 16:58:07 -0000

On 07/31/2012 08:52 AM, Stefano Lattarini wrote:

> This used to happen to me as well.  You should run "git submodule init" and/or
> "git submodule update" explicitly after the first clone of the Bison repo.

Thanks, that's in README-hacking but I missed it.
The actual command is "git submodule update --init".

I looked into the problem a bit, and I'm afraid that
the current build scheme for Bison is so complicated
that I'm reluctant to mess with this.  Oh well.


