bool supports_fnotice_on_stderr_p () const;
+ /* Raise SIGABRT on any diagnostic of severity DK_ERROR or higher. */
+ void
+ set_abort_on_error (bool val)
+ {
+ m_abort_on_error = val;
+ }
+
private:
void error_recursion () ATTRIBUTE_NORETURN;
each diagnostic, if known. */
bool m_show_option_requested;
-public:
/* True if we should raise a SIGABRT on errors. */
bool m_abort_on_error;
+public:
/* True if we should show the column number on diagnostics. */
bool m_show_column;
#define diagnostic_context_auxiliary_data(DC) (DC)->m_client_aux_data
#define diagnostic_info_auxiliary_data(DI) (DI)->x_data
-/* Raise SIGABRT on any diagnostic of severity DK_ERROR or higher. */
-inline void
-diagnostic_abort_on_error (diagnostic_context *context)
-{
- context->m_abort_on_error = true;
-}
-
/* This diagnostic_context is used by front-ends that directly output
diagnostic messages without going through `error', `warning',
and similar functions. */
"setting core file size limit to maximum: %m");
}
#endif
- diagnostic_abort_on_error (dc);
+ dc->set_abort_on_error (true);
}
/* Parse a -d<ARG> command line switch for OPTS, location LOC,