gcc/ChangeLog:
* diagnostic.h (diagnostic_override_option_index): Convert from
macro to inline function.
From-SVN: r247665
+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.
/* 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);