aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/ChangeLog9
-rw-r--r--gcc/c/c-decl.c2
-rw-r--r--gcc/c/c-objc-common.c3
3 files changed, 12 insertions, 2 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index b3e499e..d459dc4 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,12 @@
+2018-08-27 David Malcolm <dmalcolm@redhat.com>
+
+ PR 87091
+ * c-decl.c (implicitly_declare): Update call to
+ maybe_add_include_fixit to suggest overriding the location, as it
+ is for a note.
+ * c-objc-common.c (c_tree_printer): Update for conversion of
+ show_caret_p to a tri-state.
+
2018-08-27 Martin Liska <mliska@suse.cz>
* c-decl.c (locate_old_decl): Use new function
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c
index 80647ee..feafc02 100644
--- a/gcc/c/c-decl.c
+++ b/gcc/c/c-decl.c
@@ -3446,7 +3446,7 @@ implicitly_declare (location_t loc, tree functionid)
if (header != NULL && warned)
{
rich_location richloc (line_table, loc);
- maybe_add_include_fixit (&richloc, header);
+ maybe_add_include_fixit (&richloc, header, true);
inform (&richloc,
"include %qs or provide a declaration of %qD",
header, decl);
diff --git a/gcc/c/c-objc-common.c b/gcc/c/c-objc-common.c
index 238af19..12e777a 100644
--- a/gcc/c/c-objc-common.c
+++ b/gcc/c/c-objc-common.c
@@ -161,7 +161,8 @@ c_tree_printer (pretty_printer *pp, text_info *text, const char *spec,
{
t = va_arg (*text->args_ptr, tree);
if (set_locus)
- text->set_location (0, DECL_SOURCE_LOCATION (t), true);
+ text->set_location (0, DECL_SOURCE_LOCATION (t),
+ SHOW_RANGE_WITH_CARET);
}
switch (*spec)