From de35dd590c99b1dce0a507349c8006100fce7c15 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 2 Feb 2006 05:27:35 +0000 Subject: [PATCH] * data/lalr1.cc (yytranslate_): No longer inline. --- ChangeLog | 6 ++++++ data/lalr1.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 91ab95de..880b95ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,12 @@ Work around portability problems summarized by Nelson H. F. Beebe in . + * 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)". + * lib/bbitset.h (struct bitset_vtable): Rename members not, and, or, xor to not_, and_, or_, and xor_, respectively. This works around a bug in GCC 3.4.3 on Irix 6.5, which apparently has a diff --git a/data/lalr1.cc b/data/lalr1.cc index 594465c0..d8782fae 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -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. -- 2.47.2