X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/cd08e51edafa326fd8a6327f0b659fdbceb24dda..d1a1114f7f257f89887ea5825ba0d896dfaa747b:/src/main.c?ds=sidebyside diff --git a/src/main.c b/src/main.c index e634f310..b5a8e001 100644 --- a/src/main.c +++ b/src/main.c @@ -51,8 +51,8 @@ main (int argc, char *argv[]) { program_name = argv[0]; setlocale (LC_ALL, ""); - bindtextdomain (PACKAGE, LOCALEDIR); - textdomain (PACKAGE); + (void) bindtextdomain (PACKAGE, LOCALEDIR); + (void) textdomain (PACKAGE); getargs (argc, argv); @@ -108,6 +108,14 @@ main (int argc, char *argv[]) conflicts_print (); timevar_pop (TV_CONFLICTS); + /* Compute the parser tables. */ + timevar_push (TV_ACTIONS); + tables_generate (); + timevar_pop (TV_ACTIONS); + + grammar_rules_never_reduced_report + (_("rule never reduced because of conflicts")); + /* Output file names. */ compute_output_file_names (); @@ -119,11 +127,6 @@ main (int argc, char *argv[]) timevar_pop (TV_REPORT); } - /* Stop if there were errors, to avoid trashing previous output - files. */ - if (complain_message_count) - exit (1); - /* Output the VCG graph. */ if (graph_flag) { @@ -132,10 +135,10 @@ main (int argc, char *argv[]) timevar_pop (TV_GRAPH); } - /* Compute the parser tables. */ - timevar_push (TV_ACTIONS); - tables_generate (); - timevar_pop (TV_ACTIONS); + /* Stop if there were errors, to avoid trashing previous output + files. */ + if (complain_message_count) + exit (1); /* Lookaheads are no longer needed. */ timevar_push (TV_FREE);