aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-common.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2018-07-20 21:39:14 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2018-07-20 21:39:14 +0000
commit181463c271fb920ca789d2e8bf41fa415be694a8 (patch)
tree702cb60181b1dcfe40bd02920c9fd5ef9833fc15 /gcc/c-family/c-common.c
parent0d7f90652080c42cddca6f9b68f6895218c70880 (diff)
downloadgcc-181463c271fb920ca789d2e8bf41fa415be694a8.zip
gcc-181463c271fb920ca789d2e8bf41fa415be694a8.tar.gz
gcc-181463c271fb920ca789d2e8bf41fa415be694a8.tar.bz2
libcpp: remove redundant parameter from rich_location::set_range
gcc/c-family/ChangeLog: * c-common.c (c_cpp_error): Remove redundant "line_table" parameter from call to rich_location::set_range. (maybe_suggest_missing_token_insertion): Likewise. gcc/ChangeLog: * pretty-print.c (text_info::set_location): Remove redundant "line_table" parameter from call to rich_location::set_range. libcpp/ChangeLog: * include/line-map.h (rich_location::set_range): Remove redundant line_maps * parameter. * line-map.c (rich_location::set_range): Likewise. From-SVN: r262913
Diffstat (limited to 'gcc/c-family/c-common.c')
-rw-r--r--gcc/c-family/c-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index f5e1111..422d668 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -6133,7 +6133,7 @@ c_cpp_error (cpp_reader *pfile ATTRIBUTE_UNUSED, int level, int reason,
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,
@@ -8174,7 +8174,7 @@ maybe_suggest_missing_token_insertion (rich_location *richloc,
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);
}
}