(error): Set it.
(main): Test it and return FATAL_EXIT_CODE if it is set.
From-SVN: r2934
for this machine description. */
int have_constraints;
+
+/* Nonzero if some error has occurred. We will make all errors fatal, but
+ might as well continue until we see all of them. */
+
+static int have_error;
\f
static void
output_prologue ()
fprintf (stderr, "genoutput: ");
fprintf (stderr, s, a1, a2);
fprintf (stderr, "\n");
+
+ have_error = 1;
}
\f
int
output_epilogue ();
fflush (stdout);
- exit (ferror (stdout) != 0 ? FATAL_EXIT_CODE : SUCCESS_EXIT_CODE);
+ exit (ferror (stdout) != 0 || have_error
+ ? FATAL_EXIT_CODE : SUCCESS_EXIT_CODE);
+
/* NOTREACHED */
return 0;
}