diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index d3cc02b..43a6bc3 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3482,7 +3482,7 @@ cxx_init_decl_processing (void) vtbl_type_node = build_cplus_array_type (vtable_entry_type, NULL_TREE); layout_type (vtbl_type_node); - vtbl_type_node = build_qualified_type (vtbl_type_node, TYPE_QUAL_CONST); + vtbl_type_node = cp_build_qualified_type (vtbl_type_node, TYPE_QUAL_CONST); record_builtin_type (RID_MAX, NULL, vtbl_type_node); vtbl_ptr_type_node = build_pointer_type (vtable_entry_type); layout_type (vtbl_ptr_type_node); @@ -3580,7 +3580,7 @@ cp_fname_init (const char* name, tree *type_p) init = build_string (length + 1, name); } - type = build_qualified_type (char_type_node, TYPE_QUAL_CONST); + type = cp_build_qualified_type (char_type_node, TYPE_QUAL_CONST); type = build_cplus_array_type (type, domain); *type_p = type; @@ -4320,7 +4320,7 @@ start_decl (const cp_declarator *declarator, /* This is a const variable with implicit 'static'. Set DECL_THIS_STATIC so we can tell it from variables that are !TREE_PUBLIC because of the anonymous namespace. */ - gcc_assert (cp_type_readonly (TREE_TYPE (decl))); + gcc_assert (CP_TYPE_CONST_P (TREE_TYPE (decl))); DECL_THIS_STATIC (decl) = 1; } @@ -8078,8 +8078,8 @@ grokdeclarator (const cp_declarator *declarator, if (long_p && !longlong && TYPE_MAIN_VARIANT (type) == double_type_node) { long_p = false; - type = build_qualified_type (long_double_type_node, - cp_type_quals (type)); + type = cp_build_qualified_type (long_double_type_node, + cp_type_quals (type)); } /* Check all other uses of type modifiers. */ |