bison-patches
[Top][All Lists]
Advanced

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

patch for g++ 3.4.3 on Darwin 7.9.0


From: Paul Eggert
Subject: patch for g++ 3.4.3 on Darwin 7.9.0
Date: Wed, 01 Feb 2006 21:31:26 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

I installed this to quiet an older GCC warning.  I'm not a C++ expert
and I'm sure there's a nicer and more-efficient workaround somehow....

2006-02-01  Paul Eggert  <address@hidden>

        Work around portability problems summarized by Nelson H. F. Beebe in
        <http://lists.gnu.org/archive/html/bug-bison/2005-09/msg00021.html>.

        * data/lalr1.cc (yytranslate_): No longer inline, to work around a
        porting problem to g++ 3.4.3 on Darwin 7.9.0, where g++ complained
        "warning: sorry: semantics of inline function static data `const
        unsigned char translate_table[262]' are wrong (you'll wind up with
        multiple copies)".

--- lalr1.cc.~1.122.~   2006-01-23 00:39:52.000000000 -0800
+++ lalr1.cc    2006-02-01 21:12:45.000000000 -0800
@@ -248,7 +248,7 @@ b4_error_verbose_if([, int tok])[);
 #endif
 
     /// Convert a scanner token number to a symbol number.
-    inline token_number_type yytranslate_ (int token);
+    token_number_type yytranslate_ (int token);
 
     /// \brief Reclaim the memory associated to a symbol.
     /// \param yymsg        Why this token is reclaimed.




reply via email to

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