Commit 62a77bdf by David Malcolm Committed by David Malcolm

Convert diagnostic_override_option_index from macro to inline function

gcc/ChangeLog:
	* diagnostic.h (diagnostic_override_option_index): Convert from
	macro to inline function.

From-SVN: r247665
parent 26d5ed6c
2017-05-05 David Malcolm <dmalcolm@redhat.com>
* diagnostic.h (diagnostic_override_option_index): Convert from
macro to inline function.
2017-05-05 David Malcolm <dmalcolm@redhat.com>
* diagnostic.c (last_module_changed_p): New function.
(set_last_module): New function.
(diagnostic_report_current_module): Convert macro usage to
......
......@@ -270,8 +270,12 @@ extern diagnostic_context *global_dc;
/* Override the option index to be used for reporting a
diagnostic. */
#define diagnostic_override_option_index(DI, OPTIDX) \
((DI)->option_index = (OPTIDX))
static inline void
diagnostic_override_option_index (diagnostic_info *info, int optidx)
{
info->option_index = optidx;
}
/* Diagnostic related functions. */
extern void diagnostic_initialize (diagnostic_context *, int);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment