Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/usr.bin/gcc/gcc/cp/
Dfriend.c77 && same_type_p (TREE_TYPE (supplicant),
108 same_type_p (supplicant, t))
229 else if (same_type_p (type, friend_type))
273 same_type_p (TREE_VALUE (classes), friend_type)))
Dtypeck.c404 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_long_unsigned_type_node)
405 || same_type_p (TYPE_MAIN_VARIANT (t2), long_long_unsigned_type_node))
418 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_long_integer_type_node)
419 || same_type_p (TYPE_MAIN_VARIANT (t2), long_long_integer_type_node))
428 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_unsigned_type_node)
429 || same_type_p (TYPE_MAIN_VARIANT (t2), long_unsigned_type_node))
432 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_integer_type_node)
433 || same_type_p (TYPE_MAIN_VARIANT (t2), long_integer_type_node))
447 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_double_type_node)
448 || same_type_p (TYPE_MAIN_VARIANT (t2), long_double_type_node))
[all …]
Dtree.c99 same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (ref)),
1532 if (same_type_p (elem, BINFO_TYPE (TREE_VEC_ELT (vec, i))))
1609 if (!(same_type_p (TREE_TYPE (t1), TREE_TYPE (t2))
1671 && same_type_p (TREE_TYPE (TEMPLATE_PARM_DECL (t1)),
1679 return same_type_p (TREE_OPERAND (t1, 0), TREE_OPERAND (t2, 0));
1686 && same_type_p (PTRMEM_CST_CLASS (t1), PTRMEM_CST_CLASS (t2)));
1714 return same_type_p (t1, t2) ? 1 : 0;
1846 && same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (current_class_ref)),
2474 return (same_type_p (type, char_type_node)
2475 || same_type_p (type, unsigned_char_type_node)
[all …]
Dcall.c805 if (same_type_p (from, to))
881 if (same_type_p (from, to))
906 || !same_type_p (TREE_TYPE (fromfn), TREE_TYPE (tofn))
976 return (same_type_p (t1, t2)
1696 && same_type_p (type_promotes_to (type), type))
2087 if (type2 && !same_type_p (type1, type2)
2373 if (arg_types && same_type_p (TYPE_MAIN_VARIANT (TREE_VALUE (arg_types)),
3154 if (!same_type_p (TYPE_MAIN_VARIANT (t1),
3283 else if (!same_type_p (arg2_type, arg3_type)
3317 if (!same_type_p (TREE_TYPE (arg2), arg3_type))
[all …]
Dsearch.c188 if (same_type_p (BINFO_TYPE (binfo), base))
581 && same_type_p (DECL_CONTEXT (current_function_decl), in current_scope()
584 && same_type_p (DECL_FRIEND_CONTEXT (current_function_decl), in current_scope()
1338 if (!same_type_p (type, lfi->type)
1695 && same_type_p (DECL_CONV_FN_TYPE (fn), type)) in lookup_conversion_operator()
2002 if (same_type_p (brettype, drettype))
2045 if (same_type_p (base_return, over_return))
2450 && same_type_p (BINFO_TYPE (binfo), base))
2676 && !(!same_type_p (type, current_class_type)
2868 if (same_type_p (TREE_TYPE (name),
[all …]
Dclass.c280 ? same_type_p (BINFO_TYPE (binfo), probe)
282 ? same_type_p (BINFO_TYPE (d_binfo), probe)
416 if (!same_type_p (expr_type, BINFO_TYPE (base))) in convert_to_base_statically()
984 || same_type_p (TREE_TYPE (TREE_TYPE (fn)),
1084 if (same_type_p (TREE_TYPE (field), TREE_TYPE (x)))
1414 my_friendly_assert (same_type_p (BINFO_TYPE (to), BINFO_TYPE (from)),
1688 && same_type_p (BINFO_TYPE (base_vbase),
2175 if (!same_type_p (TREE_TYPE (vtable), atype))
2210 && same_type_p (DECL_CONV_FN_TYPE (fndecl),
2231 if (same_type_p (TREE_TYPE (base), TREE_TYPE (binfo)) in dfs_base_derived_from()
[all …]
Dmangle.c232 && same_type_p (TREE_PURPOSE (NODE1), TREE_PURPOSE (NODE2)))\
367 && same_type_p (node, candidate)))
521 && same_type_p (TREE_VEC_ELT (args, 0), char_type_node)
551 && same_type_p (TREE_VEC_ELT (args, 0), char_type_node)
593 && same_type_p (type, candidate))
2106 if (same_type_p (type, boolean_type_node))
Dcvt.c158 same_p = same_type_p (TYPE_MAIN_VARIANT (intype_class),
328 if (!same_type_p (TREE_TYPE (TREE_TYPE (expr)),
642 if (same_type_p (type, TREE_TYPE (e)))
Dpt.c1183 && !same_type_p (TREE_VALUE (fn_arg_types),
1234 if (!same_type_p (TREE_TYPE (TREE_TYPE (decl)),
1960 else if (!same_type_p (TREE_TYPE (parm1), TREE_TYPE (parm2)))
2559 && same_type_p (DECL_CONTEXT (decl), current_class_type))
2561 && same_type_p (DECL_FRIEND_CONTEXT (decl),
3248 my_friendly_assert (same_type_p (type, TREE_TYPE (expr)),
3314 my_friendly_assert (same_type_p (type_referred_to,
3328 if (!same_type_p (TYPE_MAIN_VARIANT (expr_type),
3358 if (!same_type_p (type, expr_type))
3372 my_friendly_assert (same_type_p (type, TREE_TYPE (expr)),
[all …]
Dinit.c604 !same_type_p (field_type, t); in sort_mem_initializers()
637 if (same_type_p (last_field_type, field_type)) in sort_mem_initializers()
646 if (same_type_p (last_field_type, t)) in sort_mem_initializers()
654 if (same_type_p (field_type, t)) in sort_mem_initializers()
1121 init && same_type_p (TREE_TYPE (init),
2245 && same_type_p (TREE_TYPE (TREE_VALUE (placement)),
Ddecl2.c736 if (same_type_p (TREE_TYPE (TREE_TYPE (function)),
1496 if (!same_type_p (TREE_TYPE (type), ptr_type_node))
1500 || !same_type_p (TREE_VALUE (args), size_type_node))
1531 if (!same_type_p (TREE_TYPE (type), void_type_node))
1535 || !same_type_p (TREE_VALUE (args), ptr_type_node))
2115 if (!same_type_p (TREE_TYPE (guard_value), TREE_TYPE (guard)))
2132 if (!same_type_p (TREE_TYPE (guard_init), TREE_TYPE (guard)))
4648 if (oldtype && *newtype && !same_type_p (oldtype, *newtype))
/openbsd/src/gnu/gcc/gcc/cp/
Dfriend.c81 if (same_type_p (supplicant, type)) in is_friend()
91 same_type_p (supplicant, t)) in is_friend()
254 else if (same_type_p (type, friend_type)) in make_friend_class()
375 if (same_type_p (probe, friend_type)) in make_friend_class()
Dtypeck.c332 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_long_unsigned_type_node) in type_after_usual_arithmetic_conversions()
333 || same_type_p (TYPE_MAIN_VARIANT (t2), long_long_unsigned_type_node)) in type_after_usual_arithmetic_conversions()
346 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_long_integer_type_node) in type_after_usual_arithmetic_conversions()
347 || same_type_p (TYPE_MAIN_VARIANT (t2), long_long_integer_type_node)) in type_after_usual_arithmetic_conversions()
356 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_unsigned_type_node) in type_after_usual_arithmetic_conversions()
357 || same_type_p (TYPE_MAIN_VARIANT (t2), long_unsigned_type_node)) in type_after_usual_arithmetic_conversions()
360 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_integer_type_node) in type_after_usual_arithmetic_conversions()
361 || same_type_p (TYPE_MAIN_VARIANT (t2), long_integer_type_node)) in type_after_usual_arithmetic_conversions()
375 if (same_type_p (TYPE_MAIN_VARIANT (t1), long_double_type_node) in type_after_usual_arithmetic_conversions()
376 || same_type_p (TYPE_MAIN_VARIANT (t2), long_double_type_node)) in type_after_usual_arithmetic_conversions()
[all …]
Dcall.c239 return same_type_p (TYPE_MAIN_VARIANT (basetype), TYPE_MAIN_VARIANT (name)); in check_dtor_name()
657 if (same_type_p (from, to)) in standard_conversion()
711 else if (!same_type_p (fbase, tbase)) in standard_conversion()
760 if (same_type_p (from, to)) in standard_conversion()
790 || !same_type_p (TREE_TYPE (fromfn), TREE_TYPE (tofn)) in standard_conversion()
836 if (same_type_p (to, type_promotes_to (from)) in standard_conversion()
875 return (same_type_p (t1, t2) in reference_related_p()
1608 && same_type_p (type_promotes_to (type), type)) in promoted_arithmetic_type_p()
1992 if (type2 && !same_type_p (type1, type2) in add_builtin_candidate()
2268 if (arg_types && same_type_p (TYPE_MAIN_VARIANT (TREE_VALUE (arg_types)), in add_template_candidate_real()
[all …]
Dtree.c1474 if (!(same_type_p (TREE_TYPE (t1), TREE_TYPE (t2)) in cp_tree_equal()
1544 && same_type_p (TREE_TYPE (TEMPLATE_PARM_DECL (t1)), in cp_tree_equal()
1580 return same_type_p (o1, o2); in cp_tree_equal()
1591 return same_type_p (PTRMEM_CST_CLASS (t1), PTRMEM_CST_CLASS (t2)); in cp_tree_equal()
1621 return same_type_p (t1, t2); in cp_tree_equal()
1717 && same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (current_class_ref)), in maybe_dummy_object()
2180 return (same_type_p (type, char_type_node) in char_type_p()
2181 || same_type_p (type, unsigned_char_type_node) in char_type_p()
2182 || same_type_p (type, signed_char_type_node) in char_type_p()
2183 || same_type_p (type, wchar_type_node)); in char_type_p()
Dcvt.c145 same_p = same_type_p (TYPE_MAIN_VARIANT (intype_class), in cp_convert_to_pointer()
330 if (!same_type_p (TREE_TYPE (TREE_TYPE (expr)), in convert_to_pointer_force()
632 if (same_type_p (type, TREE_TYPE (e))) in ocp_convert()
649 gcc_assert (same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (e)), in ocp_convert()
1278 if (same_type_p (type, expr_type)) in perform_qualification_conversions()
1285 && same_type_p (TYPE_PTRMEM_CLASS_TYPE (type), in perform_qualification_conversions()
Dexpr.c57 while (!same_type_p (DECL_CONTEXT (member), in cplus_expand_constant()
Dsearch.c168 if (same_type_p (t, base)) in accessible_base_p()
518 && same_type_p (DECL_CONTEXT (current_function_decl), in current_scope()
521 && same_type_p (DECL_FRIEND_CONTEXT (current_function_decl), in current_scope()
1101 if (!same_type_p (type, lfi->type) in lookup_field_r()
1356 else if (same_type_p (DECL_CONV_FN_TYPE (fn), type)) in lookup_conversion_operator()
1822 if (same_type_p (base_return, over_return)) in check_final_overrider()
2172 if (same_type_p (to_type, TREE_TYPE (probe))) in check_hidden_convs()
2204 if (same_type_p (to_type, TREE_TYPE (other))) in check_hidden_convs()
Dcp-objcp-common.c182 && same_type_p (TREE_TYPE (x), TREE_TYPE (y))) in cxx_types_compatible_p()
Dmangle.c255 && same_type_p (TREE_PURPOSE (NODE1), TREE_PURPOSE (NODE2))) \
421 && same_type_p (node, candidate))); in add_substitution()
571 && same_type_p (TREE_VEC_ELT (args, 0), char_type_node) in find_substitution()
602 && same_type_p (TREE_VEC_ELT (args, 0), char_type_node) in find_substitution()
643 && same_type_p (type, candidate)) in find_substitution()
2253 gcc_assert (!same_type_p (TREE_TYPE (value), boolean_type_node) in write_template_arg_literal()
Ddecl2.c619 if (same_type_p (TREE_TYPE (TREE_TYPE (function)), in check_classfn()
1150 if (!same_type_p (TREE_TYPE (type), ptr_type_node)) in coerce_new_type()
1157 || !same_type_p (TREE_VALUE (args), size_type_node)) in coerce_new_type()
1188 if (!same_type_p (TREE_TYPE (type), void_type_node)) in coerce_delete_type()
1195 || !same_type_p (TREE_VALUE (args), ptr_type_node)) in coerce_delete_type()
2268 if (!same_type_p (TREE_TYPE (guard_value), TREE_TYPE (guard))) in get_guard_cond()
2274 if (!same_type_p (TREE_TYPE (guard_value), TREE_TYPE (guard))) in get_guard_cond()
2290 if (!same_type_p (TREE_TYPE (guard_init), TREE_TYPE (guard))) in set_guard()
Dtypeck2.c1250 if (!same_type_p (ctype, objtype)) in build_m_component_ref()
1415 if (same_type_p (TREE_VALUE (probe), spec)) in add_exception_specifier()
1451 if (same_type_p (TREE_VALUE (probe), spec)) in merge_exception_specifiers()
Dinit.c592 !same_type_p (field_type, t); in sort_mem_initializers()
625 if (same_type_p (last_field_type, field_type)) in sort_mem_initializers()
634 if (same_type_p (last_field_type, t)) in sort_mem_initializers()
642 if (same_type_p (field_type, t)) in sort_mem_initializers()
1123 itype && same_type_p (itype, in build_aggr_init()
Ddecl.c943 if (same_type_p (TREE_TYPE (f1), TREE_TYPE (f2))) in decls_match()
987 types_match = same_type_p (TREE_TYPE (DECL_TEMPLATE_RESULT (olddecl)), in decls_match()
1235 else if (! same_type_p (TREE_VALUE (t1), TREE_VALUE (t2))) in duplicate_decls()
1353 && same_type_p (TREE_TYPE (TREE_TYPE (newdecl)), in duplicate_decls()
1699 if (! same_type_p (newtype, oldtype) in duplicate_decls()
2085 if (same_type_p (TREE_TYPE (newdecl), TREE_TYPE (olddecl))) in redeclaration_error_message()
3930 if (!same_type_p (DECL_CONTEXT (field), context)) in start_decl()
4499 if (!same_type_p (TREE_TYPE (value), type)) in reshape_init_vector()
6275 && !same_type_p (TREE_TYPE (TREE_TYPE (decl)), in grokfndecl()
6890 if (type && !same_type_p (type, optype)) in check_special_function_return_type()
[all …]
Dpt.c1089 if (!same_type_p (TREE_TYPE (decl_type), TREE_TYPE (friend_type))) in is_specialization_of_friend()
1479 && !same_type_p (TREE_VALUE (fn_arg_types), in determine_specialization()
1559 if (!same_type_p (TREE_TYPE (TREE_TYPE (decl)), in determine_specialization()
2262 else if (!same_type_p (TREE_TYPE (parm1), TREE_TYPE (parm2))) in comp_template_parms()
2877 ? same_type_p (DECL_CONTEXT (decl), current_class_type) in check_default_tmpl_args()
2879 ? same_type_p (DECL_FRIEND_CONTEXT (decl), current_class_type) in check_default_tmpl_args()
3401 && !same_type_p (TREE_TYPE (tmpl_parm), TREE_TYPE (parm))))) in redeclare_class_template()
3829 if (!same_type_p (TREE_TYPE (expr), type)) in convert_nontype_argument()
3856 gcc_assert (same_type_p (type, TREE_TYPE (expr))); in convert_nontype_argument()
3936 && !same_type_p in coerce_template_template_parms()
[all …]

12