Home
last modified time | relevance | path

Searched refs:same_type_p (Results 1 – 25 of 43) sorted by relevance

12

/netbsd/src/external/gpl3/gcc/dist/gcc/cp/
Dtypeck.cc359 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_long_unsigned_type_node) in cp_common_type()
360 || same_type_p (TYPE_MAIN_VARIANT (t2), long_long_unsigned_type_node)) in cp_common_type()
373 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_long_integer_type_node) in cp_common_type()
374 || same_type_p (TYPE_MAIN_VARIANT (t2), long_long_integer_type_node)) in cp_common_type()
383 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_unsigned_type_node) in cp_common_type()
384 || same_type_p (TYPE_MAIN_VARIANT (t2), long_unsigned_type_node)) in cp_common_type()
387 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_integer_type_node) in cp_common_type()
388 || same_type_p (TYPE_MAIN_VARIANT (t2), long_integer_type_node)) in cp_common_type()
402 && (same_type_p (TYPE_MAIN_VARIANT (t1), int_n_trees[i].signed_type) in cp_common_type()
403 || same_type_p (TYPE_MAIN_VARIANT (t2), int_n_trees[i].signed_type) in cp_common_type()
[all …]
Dfriend.cc115 if (same_type_p (supplicant, type)) in is_friend()
125 same_type_p (supplicant, t)) in is_friend()
329 if (!friend_depth && same_type_p (type, friend_type)) in make_friend_class()
462 if (same_type_p (probe, friend_type)) in make_friend_class()
Dcvt.cc146 same_p = same_type_p (TYPE_MAIN_VARIANT (intype_class), in cp_convert_to_pointer()
299 if (!same_type_p (TREE_TYPE (TREE_TYPE (expr)), in convert_to_pointer_force()
612 && same_type_p (TYPE_PTRMEM_CLASS_TYPE (type), in cp_fold_convert()
752 if (same_type_p (type, etype)) in ocp_convert()
2024 gcc_assert (!same_type_p (type, expr_type)); in can_convert_qual()
2034 return (same_type_p (TYPE_PTRMEM_CLASS_TYPE (type), in can_convert_qual()
2054 if (same_type_p (type, expr_type)) in perform_qualification_conversions()
2091 && same_type_p (to, tx_unsafe_fn_variant (from))); in can_convert_tx_safety()
2111 return same_type_p (to, v); in noexcept_conv_p()
2149 if (same_type_p (ft, ot) in strip_fnptr_conv()
Dcall.cc262 return same_type_p (TYPE_MAIN_VARIANT (basetype), TYPE_MAIN_VARIANT (name)); in check_dtor_name()
1300 if (same_type_p (from, to)) in standard_conversion()
1378 if (same_type_p (fbase, tbase)) in standard_conversion()
1413 if (same_type_p (from, to)) in standard_conversion()
1451 if (!same_type_p (fbase, tbase) && !DERIVED_FROM_P (fbase, tbase)) in standard_conversion()
1456 if (same_type_p (tstat, fstat) in standard_conversion()
1462 if (!same_type_p (fbase, tbase)) in standard_conversion()
1533 if ((same_type_p (to, type_promotes_to (from)) in standard_conversion()
1534 || (underlying_type && same_type_p (to, underlying_type))) in standard_conversion()
2709 && same_type_p (type_promotes_to (type), type)) in promoted_arithmetic_type_p()
[all …]
Dtypeck2.cc294 && same_type_p (ptype, current_class_type)) in cxx_incomplete_type_inform()
1013 if ((same_type_p (ftype, long_double_type_node) in check_narrowing()
1014 && (same_type_p (type, double_type_node) in check_narrowing()
1015 || same_type_p (type, float_type_node))) in check_narrowing()
1016 || (same_type_p (ftype, double_type_node) in check_narrowing()
1017 && same_type_p (type, float_type_node)) in check_narrowing()
2204 if (!same_type_p (ctype, objtype)) in build_m_component_ref()
2513 if (same_type_p (TREE_VALUE (probe), spec)) in add_exception_specifier()
2584 if (same_type_p (TREE_VALUE (probe), spec)) in merge_exception_specifiers()
Dtree.cc3907 && !same_type_p (TREE_TYPE (t1), TREE_TYPE (t2))) in cp_tree_equal()
3943 if (!same_type_p (TREE_TYPE (t1), TREE_TYPE (t2)) in cp_tree_equal()
4031 if (same_type_p (TREE_TYPE (t1), TREE_TYPE (t2))) in cp_tree_equal()
4067 && same_type_p (TREE_TYPE (TEMPLATE_PARM_DECL (t1)), in cp_tree_equal()
4115 return same_type_p (o1, o2); in cp_tree_equal()
4141 return same_type_p (PTRMEM_CST_CLASS (t1), PTRMEM_CST_CLASS (t2)); in cp_tree_equal()
4158 return same_type_p (TRAIT_EXPR_TYPE1 (t1), TRAIT_EXPR_TYPE1 (t2)) in cp_tree_equal()
4181 if (!same_type_p (TREE_TYPE (t1), TREE_TYPE (t2))) in cp_tree_equal()
4248 return same_type_p (t1, t2); in cp_tree_equal()
5699 return (same_type_p (type, char_type_node) in char_type_p()
[all …]
Dsearch.cc177 if (same_type_p (t, base)) in accessible_base_p()
416 && same_type_p (DECL_CONTEXT (current_function_decl), in current_scope()
419 && same_type_p (DECL_FRIEND_CONTEXT (current_function_decl), in current_scope()
1939 if (same_type_p (base_return, over_return)) in check_final_overrider()
2330 if (same_type_p (to_type, TREE_TYPE (probe))) in check_hidden_convs()
2362 if (same_type_p (to_type, TREE_TYPE (other))) in check_hidden_convs()
Ddecl2.cc188 if (same_type_p (new_ret, TREE_TYPE (fntype))) in change_return_type()
801 if (same_type_p (TREE_TYPE (TREE_TYPE (function)), in check_classfn()
1944 if (!same_type_p (TREE_TYPE (type), ptr_type_node)) in coerce_new_type()
1965 if (!same_type_p (TREE_VALUE (args), size_type_node)) in coerce_new_type()
2002 if (!same_type_p (TREE_TYPE (type), void_type_node)) in coerce_delete_type()
2030 || !same_type_p (TREE_VALUE (args), ptrtype)) in coerce_delete_type()
3015 if (same_type_p (TREE_TYPE (t), nlt)) in constrain_class_visibility()
3050 if (same_type_p (TREE_TYPE (t), nlt)) in constrain_class_visibility()
3564 if (!same_type_p (TREE_TYPE (guard_value), TREE_TYPE (guard))) in get_guard_cond()
3572 if (!same_type_p (TREE_TYPE (guard_value), TREE_TYPE (guard))) in get_guard_cond()
[all …]
Dexpr.cc50 while (!same_type_p (DECL_CONTEXT (member), in cplus_expand_constant()
Dname-lookup.cc729 && same_type_p (TREE_TYPE (value), TREE_TYPE (new_val)))) in add_value()
753 || !same_type_p (TREE_TYPE (type), TREE_TYPE (new_type))) in add_type()
1724 if (same_type_p (DECL_CONV_FN_TYPE (*iter), type)) in extract_conversion_operator()
2619 || same_type_p (TREE_TYPE (target_decl), in supplement_binding()
2635 && (same_type_p (TREE_TYPE (target_decl), TREE_TYPE (target_bval)) in supplement_binding()
2767 if (!same_type_p (TREE_TYPE (TREE_TYPE (one)), in matching_fn_p()
2896 if (same_type_p (TREE_TYPE (old), TREE_TYPE (decl))) in update_binding()
3240 && same_type_p (TREE_TYPE (old), TREE_TYPE (decl))) in check_local_shadow()
5028 || !same_type_p (current_class_type, t)) in push_scope()
5404 if (TYPE_P (scope) && same_type_p (scope, current_class_type)) in push_class_level_binding()
[all …]
Dclass.cc1096 && !same_type_p (TREE_TYPE (fn_type), TREE_TYPE (method_type))) in add_method()
1340 && same_type_p (USING_DECL_SCOPE (d), USING_DECL_SCOPE (decl))) in maybe_push_used_methods()
2354 if (!same_type_p (TREE_TYPE (vtable), atype)) in layout_vtable_decl()
2383 && same_type_p (DECL_CONV_FN_TYPE (fndecl), in same_signature_p()
4042 if (same_type_p (TREE_VALUE (t), type)) in check_subobject_offset()
5122 gcc_checking_assert (same_type_p (TREE_VALUE (decl_parms), in adjust_clone_args()
5857 && same_type_p (TREE_VALUE (second_parm), size_type_node)) in type_requires_array_cookie()
7602 && same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (x)), t)) in finish_struct_1()
7805 if (f && same_type_p (TREE_TYPE (f), size_type_node)) in finish_struct()
8208 if (same_type_p (c, t)) in currently_open_class()
[all …]
Ddecl.cc1039 if (same_type_p (r1, r2)) in decls_match()
1094 types_match = same_type_p (TREE_TYPE (newres), TREE_TYPE (oldres)); in decls_match()
1448 && same_type_p (TREE_TYPE (TREE_TYPE (newdecl)), in duplicate_function_template_decls()
1645 if (! same_type_p (TREE_VALUE (t1), TREE_VALUE (t2))) in duplicate_decls()
2472 if (! same_type_p (newtype, oldtype) in duplicate_decls()
3130 if (same_type_p (TREE_TYPE (newdecl), TREE_TYPE (olddecl))) in redeclaration_error_message()
5687 if (!same_type_p (DECL_CONTEXT (field), context)) in start_decl()
6570 if (!same_type_p (TREE_TYPE (value), type)) in reshape_init_vector()
10526 if (!same_type_p (TREE_TYPE (TREE_TYPE (decl)), in grokfndecl()
12353 && !same_type_p (TYPE_MAIN_VARIANT (type), wchar_type_node))) in grokdeclarator()
[all …]
Dmangle.cc270 && same_type_p (TREE_PURPOSE (NODE1), TREE_PURPOSE (NODE2))) \
457 && same_type_p (node, candidate))); in add_substitution()
698 && same_type_p (type, candidate)) in find_substitution()
3645 gcc_assert (!same_type_p (TREE_TYPE (value), boolean_type_node) in write_template_arg_literal()
Dpt.cc1500 if (!same_type_p (TREE_TYPE (decl_type), TREE_TYPE (friend_type))) in is_specialization_of_friend()
2291 if (!same_type_p (TREE_VALUE (fn_arg_types), in determine_specialization()
2323 if (!same_type_p (TREE_TYPE (TREE_TYPE (decl)), in determine_specialization()
2404 if (!same_type_p (TREE_TYPE (TREE_TYPE (decl)), in determine_specialization()
3372 else if (!same_type_p (TREE_TYPE (parm1), TREE_TYPE (parm2))) in comp_template_parms()
3430 if (!same_type_p (TREE_TYPE (decl1), TREE_TYPE (decl2))) in template_parameters_equivalent_p()
4572 || !same_type_p (type, TREE_TYPE (TEMPLATE_PARM_DESCENDANTS (index)))) in reduce_template_parm_level()
5029 if (same_type_p (type, TREE_TYPE (orig_type))) in maybe_update_decl_type()
5577 ? same_type_p (DECL_CONTEXT (decl), current_class_type) in check_default_tmpl_args()
5579 ? same_type_p (DECL_FRIEND_CONTEXT (decl), current_class_type) in check_default_tmpl_args()
[all …]
Dcoroutines.cc1062 if (same_type_p (susp_return_type, void_type_node)) in build_co_await()
1064 else if (same_type_p (susp_return_type, boolean_type_node)) in build_co_await()
4762 gcc_checking_assert (same_type_p (fn_return_type, TREE_TYPE (grooaf))); in morph_fn_to_coro()
5006 else if (same_type_p (gro_type, fn_return_type)) in morph_fn_to_coro()
5100 if (same_type_p (gro_type, fn_return_type)) in morph_fn_to_coro()
Derror.cc539 else if (same_type_p (t, TREE_TYPE (decl))) in dump_type()
2513 else if (!same_type_p (TREE_TYPE (t), in dump_expr()
2601 && same_type_p (TREE_TYPE (optype), in dump_expr()
2615 else if (!same_type_p (TREE_TYPE (op), TREE_TYPE (t))) in dump_expr()
Dinit.cc1505 && same_type_p (TREE_PURPOSE (mem_inits), current_class_type)) in emit_mem_initializers()
1872 || same_type_p (basetype, current_class_type)) in expand_member_init()
2008 from_array = (itype && same_type_p (TREE_TYPE (init), in build_aggr_init()
4598 bool digested = same_type_p (atype, TREE_TYPE (init)); in build_vec_init()
DChangeLog-19993312 * typeck.c (common_type): Use same_type_p, not pointer equality,
4148 (standard_conversion): Use same_type_p. Don't build BASE_CONVs
4530 * decl2.c (import_export_decl): Use same_type_p, rather than
4953 same_type_p for pmf bits. Don't use build_binary_op to compare
4977 * typeck.c (string_conv_p): Use same_type_p to check whether we
5660 * cvt.c (convert_pointer_to_real): Use same_type_p.
5661 * typeck.c (comp_target_types): Use same_type_p.
6036 * decl.c (duplicate_decls): Use same_type_p.
6038 same_type_p. Don't try to handle repeats. Return success.
6041 (check_ktype): Use same_type_p.
[all …]
Dconstraint.cc2976 if (!same_type_p (TREE_TYPE (result), boolean_type_node)) in satisfy_atom()
3755 if (!same_type_p (TREE_TYPE (result), boolean_type_node)) in diagnose_atomic_constraint()
Dmethod.cc1176 && !same_type_p (TREE_TYPE (TREE_TYPE (fn)), boolean_type_node)) in early_check_defaulted_comparison()
3257 if (!same_type_p (TREE_TYPE (TREE_TYPE (fn)), in defaulted_late_check()
Dsemantics.cc3716 if (same_type_p (type, TREE_TYPE (specs)) in fixup_template_type()
4243 gcc_assert (same_type_p (scope, TREE_OPERAND (decl, 0))); in finish_id_expression_1()
5935 if (same_type_p (TREE_TYPE (argtype), type)) in omp_reduction_lookup()
6351 bool need_static_cast = !same_type_p (type, atype); in finish_omp_reduction_clause()
11529 if (same_type_p (base, derived)) in pointer_interconvertible_base_of_p()
11978 return same_type_p (type1, type2); in trait_expr_value()
Dmodule.cc10358 (same_type_p (match_mergeable_specialization (false, entry), in key_mergeable()
10373 ? same_type_p (TREE_TYPE (decl), in key_mergeable()
10607 || same_type_p (key.ret, fndecl_declared_return_type (m_inner))) in check_mergeable_decl()
11007 else if (!same_type_p (d_ret, e_ret)) in is_matching_decl()
11024 if (!same_type_p (TREE_VALUE (d_args), TREE_VALUE (e_args))) in is_matching_decl()
11065 || !same_type_p (DECL_ORIGINAL_TYPE (d_inner), in is_matching_decl()
Dconstexpr.cc1570 if (same_type_p (TREE_TYPE (temp), type)) in adjust_temp_type()
3370 && same_type_p (DECL_CONTEXT (lmem), in cxx_eval_binary_expression()
6393 if (!lval && ctx->ctor && same_type_p (TREE_TYPE (ctx->ctor), type)) in lookup_placeholder()
DChangeLog-20031354 (compparms): Reverse the arguments of same_type_p.
1950 * call.c (standard_conversion): Use same_type_p, not pointer
3751 * mangle.c (find_substitution): Don't pass a non-type to same_type_p
4460 * decl.c (start_function): Use same_type_p to check return type
6074 (currently_open_class): Use same_type_p, not pointer equality.
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dtree-loop-distribution.cc2938 bool same_type_p = true; in finalize_partitions() local
2942 same_type_p &= (type == partition->type); in finalize_partitions()
2956 if ((same_type_p && num_builtin == 0 in finalize_partitions()

12