+2018-07-20 David Malcolm <dmalcolm@redhat.com>
+
+ * pretty-print.c (text_info::set_location): Remove redundant
+ "line_table" parameter from call to rich_location::set_range.
+
2018-07-20 Martin Sebor <msebor@redhat.com>
PR middle-end/82063
+2018-07-20 David Malcolm <dmalcolm@redhat.com>
+
+ * c-common.c (c_cpp_error): Remove redundant "line_table"
+ parameter from call to rich_location::set_range.
+ (maybe_suggest_missing_token_insertion): Likewise.
+
2018-07-20 Martin Sebor <msebor@redhat.com>
PR middle-end/82063
gcc_unreachable ();
}
if (done_lexing)
- richloc->set_range (line_table, 0, input_location, true);
+ richloc->set_range (0, input_location, true);
diagnostic_set_info_translated (&diagnostic, msg, ap,
richloc, dlevel);
diagnostic_override_option_index (&diagnostic,
location_t hint_loc = hint->get_start_loc ();
location_t old_loc = richloc->get_loc ();
- richloc->set_range (line_table, 0, hint_loc, true);
+ richloc->set_range (0, hint_loc, true);
richloc->add_range (old_loc, false);
}
}
text_info::set_location (unsigned int idx, location_t loc, bool show_caret_p)
{
gcc_checking_assert (m_richloc);
- m_richloc->set_range (line_table, idx, loc, show_caret_p);
+ m_richloc->set_range (idx, loc, show_caret_p);
}
location_t
+2018-07-20 David Malcolm <dmalcolm@redhat.com>
+
+ * include/line-map.h (rich_location::set_range): Remove redundant
+ line_maps * parameter.
+ * line-map.c (rich_location::set_range): Likewise.
+
2018-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR 69558
add_range (source_location loc, bool show_caret_p);
void
- set_range (line_maps *set, unsigned int idx, source_location loc,
- bool show_caret_p);
+ set_range (unsigned int idx, source_location loc, bool show_caret_p);
unsigned int get_num_locations () const { return m_ranges.count (); }
- the "%C" and "%L" format codes in the Fortran frontend. */
void
-rich_location::set_range (line_maps * /*set*/, unsigned int idx,
- source_location loc, bool show_caret_p)
+rich_location::set_range (unsigned int idx, source_location loc,
+ bool show_caret_p)
{
/* We can either overwrite an existing range, or add one exactly
on the end of the array. */