diff options
author | Jason Merrill <jason@redhat.com> | 2010-05-19 17:02:27 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-05-19 17:02:27 -0400 |
commit | a3360e778c64ee78b08272b4474d0d707061a1c1 (patch) | |
tree | d2b59673b254491d2a8bacc1360f3025eb0c68ad /gcc/cp/decl.c | |
parent | a0685b7311e693f8b0ed709ae0727af294a6a72b (diff) | |
download | gcc-a3360e778c64ee78b08272b4474d0d707061a1c1.zip gcc-a3360e778c64ee78b08272b4474d0d707061a1c1.tar.gz gcc-a3360e778c64ee78b08272b4474d0d707061a1c1.tar.bz2 |
call.c (reference_binding): Use cp_build_qualified_type_real and cp_type_quals consistently.
* call.c (reference_binding): Use cp_build_qualified_type_real
and cp_type_quals consistently.
(add_function_candidate): Likewise.
(build_conditional_expr): Likewise.
(convert_like_real): Likewise.
(type_passed_as): Likewise.
* class.c (add_method): Likewise.
(same_signature_p): Likewise.
(layout_class_type): Likewise.
* decl.c (cxx_init_decl_processing): Likewise.
(cp_fname_init): Likewise.
(grokdeclarator): Likewise.
* decl2.c (cp_reconstruct_complex_type): Likewise.
* init.c (build_new_1): Likewise.
* method.c (do_build_copy_constructor): Likewise.
(implicitly_declare_fn): Likewise.
* pt.c (tsubst_aggr_type): Likewise.
(tsubst): Likewise.
* rtti.c (init_rtti_processing): Likewise.
(build_headof): Likewise.
(build_dynamic_cast_1): Likewise.
(tinfo_base_init): Likewise.
(emit_support_tinfos): Likewise.
* semantics.c (capture_decltype): Likewise.
* tree.c (cv_unqualified): Likewise.
* typeck.c (composite_pointer_type): Likewise.
(string_conv_p): Likewise.
* mangle.c (write_CV_qualifiers_for_type): Tweak.
* call.c (initialize_reference): Use CP_TYPE_CONST_P.
* decl.c (start_decl): Likewise.
* semantics.c (finish_compound_literal): Likewise.
* typeck.c (check_return_expr): Use CP_TYPE_VOLATILE_P.
(cp_type_readonly): Remove.
* cp-tree.h: Remove declaration.
From-SVN: r159599
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. */ |