@@ -962,6 +962,7 @@ extern tree build_real_imag_expr (location_t, enum tree_code, tree);
extern tree build_unary_op (location_t, enum tree_code, tree, bool);
extern tree build_binary_op (location_t, enum tree_code, tree, tree, int);
extern tree perform_integral_promotions (tree);
+extern bool char_type_p (tree);
/* These functions must be defined by each front-end which implements
a variant of the C language. They are used by port files. */
@@ -44,6 +44,7 @@ along with GCC; see the file COPYING3. If not see
#include "gimplify.h"
#include "tree-inline.h"
#include "omp-general.h"
+#include "c-family/c-common.h"
#include "c-family/c-objc.h"
#include "c-family/c-ubsan.h"
#include "cilk.h"
@@ -3605,7 +3606,7 @@ parser_build_unary_op (location_t loc, enum tree_code code, struct c_expr arg)
/* Returns true if TYPE is a character type, *not* including wchar_t. */
-static bool
+bool
char_type_p (tree type)
{
return (type == char_type_node
@@ -6928,7 +6928,6 @@ extern bool cv_qualified_p (const_tree);
extern tree cv_unqualified (tree);
extern special_function_kind special_function_p (const_tree);
extern int count_trees (tree);
-extern int char_type_p (tree);
extern void verify_stmt_tree (tree);
extern linkage_kind decl_linkage (tree);
extern duration_kind decl_storage_duration (tree);
@@ -4855,7 +4855,7 @@ special_function_p (const_tree decl)
/* Returns nonzero if TYPE is a character type, including wchar_t. */
-int
+bool
char_type_p (tree type)
{
return (same_type_p (type, char_type_node)
--
2.7.1