Lines Matching defs:type
1 /* Language-level data type conversion for GNU C.
65 converted to type TYPE. The TREE_TYPE of the value
71 convert (tree type, tree expr)
74 enum tree_code code = TREE_CODE (type);
77 if (type == error_mark_node
83 = targetm.invalid_conversion (TREE_TYPE (expr), type)))
89 if (type == TREE_TYPE (expr))
92 if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (TREE_TYPE (expr)))
93 return fold_convert (type, expr);
102 return fold_convert (type, e);
104 return fold (convert_to_integer (type, e));
106 return fold_convert (type, c_objc_common_truthvalue_conversion (expr));
108 return fold (convert_to_pointer (type, e));
111 return fold (convert_to_block_pointer (type, e));
114 return fold (convert_to_real (type, e));
116 return fold (convert_to_complex (type, e));
118 return fold (convert_to_vector (type, e));
120 && lang_hooks.types_compatible_p (type, TREE_TYPE (expr)))
123 error ("conversion to non-scalar type requested");