[Top][All Lists]

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

Re: problem with installation on cray x1e system

From: Paul Eggert
Subject: Re: problem with installation on cray x1e system
Date: Wed, 12 Jul 2006 11:03:55 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Thanks for reporting that, though as Hans Aberg notes it's better to
report bugs to address@hidden  I installed the following patch.
By the way, I suggest you use Bison 2.3 rather than 2.1, as it should
be a bit more reliable.

2006-07-12  Paul Eggert  <address@hidden>

        * data/lalr1.cc (YYCDEBUG): Use 'if (yydebug_) (*yycdebug_)'
        rather than a for-loop that declares a local bool variable.  This
        should work around a compatibility problem with a Cray x1e C++
        compiler reported by Hung Nguyen in
        The for-loop was introduced in the 2004-11-17 change but I don't
        know why it was needed.

--- data/lalr1.cc       9 Jul 2006 20:36:33 -0000       1.137
+++ data/lalr1.cc       12 Jul 2006 18:00:15 -0000
@@ -336,9 +336,7 @@ b4_defines_if([
 #define YYUSE(e) ((void) (e))
 /* A pseudo ostream that takes yydebug_ into account.  */
-# define YYCDEBUG                                                      \
-  for (bool yydebugcond_ = yydebug_; yydebugcond_; yydebugcond_ = false)       
-    (*yycdebug_)
+# define YYCDEBUG if (yydebug_) (*yycdebug_)
 /* Enable debugging if requested.  */

reply via email to

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