From d208f6e63a7ae80cdaf89b492b1c4f98a996cd4f Mon Sep 17 00:00:00 2001 From: dmalcolm Date: Wed, 20 Jul 2016 13:42:51 +0000 Subject: C: convert return type of lookup_name_fuzzy from tree to const char * gcc/c-family/ChangeLog: * c-common.h (lookup_name_fuzzy): Convert return type from tree to const char *. gcc/c/ChangeLog: * c-decl.c (implicit_decl_warning): Update for conversion of return type of lookup_name_fuzzy to const char *. (undeclared_variable): Likewise. (lookup_name_fuzzy): Convert return type from tree to const char *. * c-parser.c (c_parser_declaration_or_fndef): Update for conversion of return type of lookup_name_fuzzy to const char *. (c_parser_parameter_declaration): Likewise. gcc/ChangeLog: * gcc-rich-location.c (gcc_rich_location::add_fixit_misspelled_id): New overload, taking a const char *. * gcc-rich-location.h (gcc_rich_location::add_fixit_misspelled_id): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238517 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/gcc-rich-location.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/gcc-rich-location.h') diff --git a/gcc/gcc-rich-location.h b/gcc/gcc-rich-location.h index 9c8a7904c15..aa69b2eff14 100644 --- a/gcc/gcc-rich-location.h +++ b/gcc/gcc-rich-location.h @@ -45,6 +45,8 @@ class gcc_rich_location : public rich_location void add_fixit_misspelled_id (location_t misspelled_token_loc, tree hint_id); + void add_fixit_misspelled_id (location_t misspelled_token_loc, + const char *hint); }; #endif /* GCC_RICH_LOCATION_H */ -- cgit v1.2.1