diff options
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 62bffd2..36f4a1c 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -772,6 +772,13 @@ public: 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; @@ -828,10 +835,10 @@ private: 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; @@ -841,9 +848,9 @@ public: /* True if permerrors are warnings. */ bool m_permissive; - /* The index of the option to associate with turning permerrors into - warnings. */ - int m_opt_permissive; + /* The option to associate with turning permerrors into warnings, + if any. */ + diagnostic_option_id m_opt_permissive; /* True if errors are fatal. */ bool m_fatal_errors; @@ -1042,13 +1049,6 @@ diagnostic_text_finalizer (diagnostic_context *context) #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. */ |