mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
traces: improve logs
* src/lalr.c: Move logs to a better place to understand the chronology of events. * src/symlist.c (symbol_list_syms_print): Don't dump core on type elements.
This commit is contained in:
@@ -398,10 +398,7 @@ build_relations (void)
|
||||
|
||||
relation_transpose (&includes, ngotos);
|
||||
if (trace_flag & trace_automaton)
|
||||
{
|
||||
lookback_print (stderr);
|
||||
relation_print ("includes", includes, ngotos, goto_print, stderr);
|
||||
}
|
||||
relation_print ("includes", includes, ngotos, goto_print, stderr);
|
||||
}
|
||||
|
||||
/* Compute FOLLOWS from INCLUDES, and free INCLUDES. */
|
||||
@@ -420,6 +417,9 @@ compute_follows (void)
|
||||
static void
|
||||
compute_lookahead_tokens (void)
|
||||
{
|
||||
if (trace_flag & trace_automaton)
|
||||
lookback_print (stderr);
|
||||
|
||||
for (size_t i = 0; i < nLA; ++i)
|
||||
for (goto_list *sp = lookback[i]; sp; sp = sp->next)
|
||||
bitset_or (LA[i], LA[i], goto_follows[sp->value]);
|
||||
|
||||
Reference in New Issue
Block a user