#include "config.h"#include "system.h"#include "rtl.h"#include "tree.h"#include "c-tree.h"#include "tm_p.h"#include "flags.h"#include "output.h"#include "expr.h"#include "toplev.h"#include "intl.h"#include "ggc.h"#include "target.h"

Go to the source code of this file.
| #define PUSH_SPELLING | ( | KIND, | |||
| VALUE, | |||||
| MEMBER | ) |
Value:
{ \
int depth = SPELLING_DEPTH (); \
\
if (depth >= spelling_size) \
{ \
spelling_size += 10; \
if (spelling_base == 0) \
spelling_base \
= (struct spelling *) xmalloc (spelling_size * sizeof (struct spelling)); \
else \
spelling_base \
= (struct spelling *) xrealloc (spelling_base, \
spelling_size * sizeof (struct spelling)); \
RESTORE_SPELLING_DEPTH (depth); \
} \
\
spelling->kind = (KIND); \
spelling->MEMBER = (VALUE); \
spelling++; \
}
Definition at line 4604 of file c-typeck.c.
Referenced by push_array_bounds(), push_member_name(), and push_string().
| #define RESTORE_SPELLING_DEPTH | ( | DEPTH | ) | (spelling = spelling_base + (DEPTH)) |
Definition at line 4599 of file c-typeck.c.
Referenced by pop_init_level(), process_init_element(), and start_init().
| #define SPELLING_BOUNDS 3 |
Definition at line 4589 of file c-typeck.c.
Referenced by print_spelling(), push_array_bounds(), and spelling_length().
| #define SPELLING_DEPTH | ( | ) | (spelling - spelling_base) |
Definition at line 4598 of file c-typeck.c.
Referenced by push_init_level(), and really_start_incremental_init().
| #define SPELLING_MEMBER 2 |
| #define SPELLING_STRING 1 |
Definition at line 5911 of file c-typeck.c.
References init_node::balance, bit_position(), bitpos(), ggc_alloc, init_node::left, NULL, p, init_node::parent, init_node::purpose, q, r, init_node::right, s, TREE_CODE, tree_int_cst_lt(), TREE_SIDE_EFFECTS, init_node::value, and warning_init().
Referenced by output_init_element(), set_nonincremental_init(), and set_nonincremental_init_from_string().
Definition at line 1243 of file c-typeck.c.
Referenced by build_array_ref(), build_new_op(), build_selector_reference(), build_typed_selector_reference(), build_vtable_entry_ref(), build_vtbl_ref_1(), c_parser_postfix_expression(), c_parser_postfix_expression_after_primary(), and grok_array_decl().
Definition at line 6992 of file c-typeck.c.
References add_stmt(), build_stmt(), default_function_array_conversion(), error(), IDENTIFIER_POINTER, lvalue_or_else(), NULL_TREE, RID_VOLATILE, ridpointers, STRIP_NOPS, tail, TREE_CHAIN, TREE_CODE, TREE_OPERAND, TREE_VALUE, and warning.
Referenced by c_parser_asm_statement().
Definition at line 1888 of file c-typeck.c.
References arg_list, binary_op_error(), build(), build1, build_pointer_type(), built_in_decls, c_common_signed_or_unsigned_type(), c_common_signed_type(), c_common_truthvalue_conversion(), c_tree_expr_nonnegative_p(), call(), common_type(), comp_target_types(), compare_tree_int(), COMPLETE_TYPE_P, COMPLEX_TYPE, convert(), default_conversion(), error(), error_mark_node, extra_warnings, fold(), get_narrower(), HOST_BITS_PER_WIDE_INT, host_integerp(), HOST_WIDE_INT, int_fits_type_p(), integer_all_onesp(), integer_type_node, integer_zerop(), NULL, NULL_TREE, pedantic, pedwarn(), pointer_diff(), pointer_int_sum(), ptr_type_node, result, shorten_compare(), skip_evaluation, STRIP_TYPE_NOPS, TARGET_64BIT, TREE_CODE, tree_cons, TREE_CONSTANT, TREE_INT_CST_LOW, tree_int_cst_sgn(), tree_low_cst(), TREE_OPERAND, TREE_SIDE_EFFECTS, TREE_TYPE, TREE_UNSIGNED, TYPE_MAIN_VARIANT, TYPE_MAX_VALUE, TYPE_PRECISION, TYPE_SIZE, val, VOID_TYPE_P, warn_div_by_zero, warn_float_equal, warn_sign_compare, and warning.
Referenced by build_array_ref(), build_enumerator(), build_modify_expr(), build_unary_op(), c_common_truthvalue_conversion(), cp_truthvalue_conversion(), expand_unordered_cmp(), parser_build_binary_op(), pointer_diff(), and pointer_int_sum().
Definition at line 3648 of file c-typeck.c.
Referenced by build_functional_cast(), build_objc_method_call(), build_ptrmemfunc(), build_selector(), build_static_cast(), build_typed_selector_reference(), build_vtable_entry_ref(), c_cast_expr(), cp_parser_cast_expression(), generate_classref_translation_entry(), generate_shared_structures(), and reparse_absdcl_as_casts().
Definition at line 1098 of file c-typeck.c.
Referenced by build_component_ref(), build_ivar_reference(), c_parser_postfix_expression(), c_parser_postfix_expression_after_primary(), get_super_receiver(), and synth_forward_declarations().
Definition at line 3582 of file c-typeck.c.
References internal_build_compound_expr(), and TRUE.
Referenced by build_compound_expr(), build_functional_cast(), build_modify_expr(), build_new_1(), build_vbase_delete(), build_vec_delete_1(), build_x_compound_expr(), c_parser_expression(), c_parser_initelt(), cxx_maybe_build_cleanup(), expand_static_init(), get_super_receiver(), grok_reference_init(), perform_member_init(), and store_init_value().
Definition at line 3402 of file c-typeck.c.
Referenced by build_array_ref(), build_class_member_access_expr(), build_modify_expr(), build_new_1(), build_new_op(), build_x_conditional_expr(), c_parser_conditional_expression(), get_member_function_from_ptrfunc(), rationalize_conditional_expr(), and unary_complex_lvalue().
Definition at line 1486 of file c-typeck.c.
Referenced by build_cdtor(), build_field_call(), build_function_call(), build_member_call(), build_module_descriptor(), build_new_1(), build_new_function_call(), build_objc_method_call(), build_object_call(), build_offset_ref_call_from_tree(), build_op_delete_call(), build_throw(), c_expand_builtin_fprintf(), c_expand_builtin_printf(), c_objc_common_finish_file(), c_parser_postfix_expression_after_primary(), do_allocate_exception(), do_begin_catch(), do_end_catch(), do_free_exception(), do_get_exception_ptr(), finish_call_expr(), finish_decl(), generate_ctor_or_dtor_function(), get_class_reference(), get_super_receiver(), register_dtor_fn(), and resolve_overloaded_builtin().
Definition at line 1187 of file c-typeck.c.
Referenced by build_array_ref(), build_base_path(), build_class_member_access_expr(), build_delete(), build_dummy_object(), build_field_call(), build_headof(), build_ivar_reference(), build_new_1(), build_new_op(), build_over_call(), build_reinterpret_cast(), build_reinterpret_cast_1(), build_simple_base_path(), build_throw(), build_typeid(), build_unary_op(), build_vec_delete(), build_vec_init(), build_vfn_ref(), build_x_arrow(), build_x_indirect_ref(), build_x_va_arg(), c_finish_omp_atomic(), c_parser_postfix_expression_after_primary(), c_parser_unary_expression(), convert_from_reference(), convert_like_real(), emit_mem_initializers(), expand_start_catch_block(), expand_virtual_init(), get_member_function_from_ptrfunc(), get_super_receiver(), get_tinfo_decl_dynamic(), get_typeid(), GTY(), resolve_offset_ref(), stabilize_expr(), start_function(), and start_preparsed_function().
Definition at line 3896 of file c-typeck.c.
Referenced by build_modify_expr(), build_new_1(), build_new_op(), build_unary_op(), build_vec_delete_1(), build_vec_init(), build_x_modify_expr(), c_expand_asm_operands(), c_finish_omp_atomic(), c_finish_omp_for(), c_parser_expr_no_commas(), c_parser_omp_for_loop(), do_build_assign_ref(), expand_start_catch_block(), expand_virtual_init(), finish_omp_for(), get_super_receiver(), get_temp_regvar(), perform_member_init(), and set_guard().
Definition at line 2748 of file c-typeck.c.
Referenced by add_objc_string(), array_to_pointer_conversion(), build_base_path(), build_category_initializer(), build_const_cast(), build_const_cast_1(), build_delete(), build_dispatch_table_initializer(), build_dynamic_cast_1(), build_method_call(), build_module_descriptor(), build_new_op(), build_objc_string_object(), build_offset_ref(), build_offset_ref_call_from_tree(), build_over_call(), build_protocol_expr(), build_protocol_initializer(), build_reinterpret_cast(), build_reinterpret_cast_1(), build_shared_structure_initializer(), build_this(), build_typed_selector_reference(), build_unary_op(), build_up_reference(), build_vbase_delete(), build_vec_delete(), build_vec_init(), build_vfn_ref(), build_vtable_entry_ref(), build_x_unary_op(), c_common_truthvalue_conversion(), c_finish_omp_atomic(), c_parser_postfix_expression_after_primary(), convert_like_real(), convert_nontype_argument(), convert_to_base_statically(), convert_to_reference(), cxx_maybe_build_cleanup(), decay_conversion(), default_function_array_conversion(), expand_tree_builtin(), expand_unordered_cmp(), finish_decl(), finish_for_cond(), finish_message_expr(), finish_while_stmt_cond(), function_to_pointer_conversion(), generate_protocol_list(), generate_protocols(), generate_shared_structures(), generate_static_references(), get_member_function_from_ptrfunc(), get_super_receiver(), get_tinfo_ptr(), GTY(), init_def_list(), init_module_descriptor(), init_objc_symtab(), initialize_handler_parm(), initialize_reference(), one_static_initialization_or_destruction(), parser_build_unary_op(), rationalize_conditional_expr(), register_dtor_fn(), resolve_address_of_overloaded_function(), resolve_offset_ref(), simplify_loop_decl_cond(), stabilize_expr(), start_static_initialization_or_destruction(), tinfo_base_init(), truthvalue_conversion(), and unary_complex_lvalue().
Definition at line 3874 of file c-typeck.c.
References build_c_cast(), groktypename(), TREE_CODE, and warn_strict_prototypes.
Referenced by c_parser_cast_expression().
Definition at line 4369 of file c-typeck.c.
References convert_for_assignment(), DECL_NAME, default_conversion(), integer_type_node, INTEGRAL_TYPE_P, PROMOTE_PROTOTYPES, ret, TREE_TYPE, TYPE_ARG_TYPES, and TYPE_PRECISION.
| void c_expand_asm_operands | ( | tree | string, | |
| tree | outputs, | |||
| tree | inputs, | |||
| tree | clobbers, | |||
| int | vol, | |||
| const char * | filename, | |||
| int | line | |||
| ) |
Definition at line 7063 of file c-typeck.c.
References alloca, build_modify_expr(), C_TYPE_FIELDS_READONLY, emit_queue(), error_mark_node, expand_asm_operands(), expand_expr(), EXPAND_NORMAL, free_temp_slots(), i, list_length(), NULL_RTX, o, readonly_warning(), tail, TREE_CHAIN, TREE_CODE, TREE_READONLY, TREE_TYPE, TREE_VALUE, and TYPE_READONLY.
Referenced by genrtl_asm_stmt().
Definition at line 7123 of file c-typeck.c.
References _, add_stmt(), build(), build_return_stmt(), convert(), convert_for_assignment(), current_function_decl, current_function_returns_null, current_function_returns_value, DECL_CONTEXT, DECL_EXTERNAL, DECL_RESULT, error_mark_node, flag_isoc99, NULL_TREE, pedantic, pedwarn(), pedwarn_c99(), POINTER_TYPE_P, TREE_CODE, TREE_CODE_CLASS, TREE_OPERAND, TREE_STATIC, TREE_THIS_VOLATILE, TREE_TYPE, warn_return_type, and warning.
Referenced by finish_function().
| void c_finish_case | ( | ) |
Definition at line 7309 of file c-typeck.c.
References c_switch::cases, cs, free(), c_switch::next, RECHAIN_STMTS, splay_tree_delete(), SWITCH_BODY, and c_switch::switch_stmt.
Referenced by c_parser_switch_statement().
Definition at line 115 of file c-typeck.c.
Referenced by build_component_ref(), and require_complete_type().
Definition at line 3315 of file c-typeck.c.
Referenced by array_to_pointer_conversion(), build_array_ref(), build_asm_expr(), build_unary_op(), convert_for_assignment(), default_function_array_conversion(), and grokdeclarator().
Definition at line 751 of file c-typeck.c.
References BITS_PER_UNIT, char_type_node, COMPLETE_OR_VOID_TYPE_P, error(), size_binop(), size_int, size_one_node, TREE_CODE, TYPE_PRECISION, and TYPE_SIZE_UNIT.
Referenced by build_unary_op(), and pointer_diff().
| int c_tree_expr_nonnegative_p | ( | tree | t | ) |
Definition at line 2641 of file c-typeck.c.
References COMPOUND_BODY, NULL_TREE, STMT_EXPR_STMT, TREE_CHAIN, TREE_CODE, tree_expr_nonnegative_p(), and TREE_OPERAND.
Referenced by build_binary_op(), and build_conditional_expr().
Definition at line 184 of file c-typeck.c.
Referenced by diagnose_arglist_conflict(), duplicate_decls(), grokdeclarator(), and type_lists_compatible_p().
Definition at line 222 of file c-typeck.c.
Referenced by build_binary_op(), build_conditional_expr(), common_type(), duplicate_decls(), expand_unordered_cmp(), get_computation_aff(), and shorten_compare().
Definition at line 593 of file c-typeck.c.
References comptypes(), objc_comptypes(), pedantic, pedwarn(), TREE_TYPE, TYPE_MAIN_VARIANT, and val.
Referenced by build_binary_op(), build_conditional_expr(), comp_cv_target_types(), comp_target_parms(), comp_target_types(), composite_pointer_type(), convert_for_assignment(), and convert_to_reference().
Definition at line 467 of file c-typeck.c.
Referenced by build_c_cast(), build_function_call(), build_op_delete_call(), build_reinterpret_cast_1(), c_parser_postfix_expression(), c_types_compatible_p(), check_ivars(), common_type(), comp_method_with_proto(), comp_proto_with_proto(), comp_target_types(), composite_type(), comptypes(), convert_for_assignment(), convert_to_reference(), decls_match(), diagnose_arglist_conflict(), diagnose_mismatched_decls(), digest_init(), duplicate_decls(), finish_message_expr(), function_types_compatible_p(), implicitly_declare(), instantiate_type(), merge_decls(), output_init_element(), ptr_reasonably_similar(), pushdecl(), start_function(), store_parm_decls(), store_parm_decls_oldstyle(), tagged_types_tu_compatible_p(), type_lists_compatible_p(), and validate_proto_after_old_defn().
Definition at line 1585 of file c-typeck.c.
References COMPLETE_TYPE_P, COMPLEX_TYPE, convert(), convert_for_assignment(), default_conversion(), default_function_array_conversion(), double_type_node, error(), float_type_node, IDENTIFIER_POINTER, int_fits_type_p(), integer_type_node, INTEGRAL_TYPE_P, nreverse(), NULL, NULL_TREE, PROMOTE_PROTOTYPES, require_complete_type(), result, TREE_CHAIN, TREE_CODE, tree_cons, TREE_OPERAND, TREE_TYPE, TREE_UNSIGNED, TREE_VALUE, TYPE_MAIN_VARIANT, TYPE_MAX_VALUE, TYPE_MIN_VALUE, TYPE_PRECISION, val, void_type_node, warn_conversion, warn_for_assignment(), and warn_traditional.
Referenced by build_function_call(), and build_function_call_real().
| static tree convert_for_assignment | ( | tree | type, | |
| tree | rhs, | |||
| const char * | errtype, | |||
| tree | fundecl, | |||
| tree | funname, | |||
| int | parmnum | |||
| ) | [static] |
Definition at line 4073 of file c-typeck.c.
References build1, build_pointer_type(), c_common_unsigned_type(), c_mark_addressable(), comp_target_types(), COMPLEX_TYPE, comptypes(), convert(), convert_and_check(), decl_constant_value_for_broken_optimization(), DECL_IN_SYSTEM_HEADER, default_conversion(), error(), error_mark_node, flag_objc, IDENTIFIER_POINTER, integer_zerop(), lvalue_p(), null_pointer_node, objc_comptypes(), objc_message_selector(), optimize, overflow_warning(), pedantic, pedwarn(), TREE_CHAIN, TREE_CODE, TREE_OPERAND, TREE_TYPE, TYPE_FIELDS, TYPE_MAIN_VARIANT, TYPE_QUALS, TYPE_TRANSPARENT_UNION, VOID_TYPE_P, warn_for_assignment(), and warning.
Referenced by build_modify_expr(), c_convert_parm_for_inlining(), c_expand_return(), c_finish_return(), convert_arguments(), convert_for_initialization(), and digest_init().
Definition at line 774 of file c-typeck.c.
Referenced by build_c_cast(), build_compound_expr(), build_enumerator(), build_reinterpret_cast(), check_bitfield_decl(), check_case_value(), check_format_arg(), compute_array_index_type(), convert(), convert_like_real(), convert_nontype_argument(), decay_conversion(), decl_constant_value_for_broken_optimization(), grokfield(), initialize_inlined_parameters(), ocp_convert(), tsubst(), and unify().
Definition at line 803 of file c-typeck.c.
References decl_constant_value(), DECL_MODE, and pedantic.
Referenced by convert_for_assignment(), default_conversion(), and digest_init().
Definition at line 921 of file c-typeck.c.
Referenced by altivec_resolve_overloaded_builtin(), build_addr_func(), build_array_ref(), build_binary_op(), build_c_cast(), build_conditional_expr(), build_enumerator(), build_expr_type_conversion(), build_function_call(), build_indirect_ref(), build_method_call(), build_modify_expr(), build_shared_structure_initializer(), build_unary_op(), build_vec_init(), build_x_arrow(), c_convert_parm_for_inlining(), c_expand_expr_stmt(), c_objc_common_truthvalue_conversion(), c_parser_binary_expression(), c_parser_conditional_expression(), c_process_expr_stmt(), c_start_case(), check_case_value(), convert_arg_to_ellipsis(), convert_arguments(), convert_for_arg_passing(), convert_for_assignment(), convert_for_initialization(), default_function_array_conversion(), finish_expr_stmt(), finish_switch_cond(), get_atexit_node(), grok_reference_init(), and output_init_element().
Definition at line 818 of file c-typeck.c.
References build(), build1, build_pointer_type(), build_unary_op(), c_build_qualified_type(), C_EXP_ORIGINAL_CODE, c_mark_addressable(), C_SET_EXP_ORIGINAL_CODE, convert(), DECL_P, default_conversion(), error_mark_node, flag_isoc99, IS_EXPR_CODE_CLASS, lvalue_p(), staticp, TREE_CODE, TREE_CODE_CLASS, TREE_CONSTANT, TREE_OPERAND, TREE_READONLY, TREE_SIDE_EFFECTS, TREE_THIS_VOLATILE, TREE_TYPE, TYPE_POINTER_TO, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE, and TYPE_QUALS.
Referenced by build_asm_expr(), build_asm_stmt(), build_c_cast(), build_compound_expr(), build_modify_expr(), c_parser_asm_operands(), c_parser_binary_expression(), c_parser_cast_expression(), c_parser_conditional_expression(), c_parser_expr_list(), c_parser_expr_no_commas(), c_parser_expression(), c_parser_expression_conv(), c_parser_initelt(), c_parser_initializer(), c_parser_initval(), c_parser_postfix_expression_after_primary(), c_parser_unary_expression(), convert_arguments(), default_conversion(), digest_init(), and internal_build_compound_expr().
Definition at line 4757 of file c-typeck.c.
References _, BITS_PER_UNIT, build_vector(), char_type_node, compare_tree_int(), COMPLETE_TYPE_P, COMPLEX_TYPE, COMPOUND_LITERAL_EXPR_DECL, comptypes(), convert_for_assignment(), decl_constant_value_for_broken_optimization(), DECL_INITIAL, default_function_array_conversion(), error_init(), error_mark_node, flag_isoc99, flag_pedantic_errors, fold(), initializer_constant_valid_p(), long_integer_type_node, NULL_TREE, optimize, pedantic, pedwarn_init(), signed_char_type_node, signed_wchar_type_node, TREE_CODE, TREE_CONSTANT, TREE_OPERAND, TREE_STRING_LENGTH, TREE_TYPE, TYPE_DOMAIN, TYPE_MAIN_VARIANT, TYPE_PRECISION, TYPE_SIZE, TYPE_SIZE_UNIT, unsigned_char_type_node, unsigned_wchar_type_node, valid_compound_expr_initializer(), and wchar_type_node.
Referenced by build_c_cast(), build_expr_from_tree(), build_new_1(), convert_default_arg(), convert_nontype_argument(), expand_default_init(), finish_compound_literal(), grokfield(), output_init_element(), process_init_constructor(), reparse_absdcl_as_casts(), store_init_value(), and tsubst_copy_and_build().
| void error_init | ( | char * | msgid | ) | const |
Definition at line 4707 of file c-typeck.c.
References _, alloca, error(), print_spelling(), and spelling_length().
Referenced by c_parser_omp_for_loop(), digest_init(), output_init_element(), pop_init_level(), process_init_element(), push_init_level(), set_designator(), set_init_index(), and set_init_label().
Definition at line 6247 of file c-typeck.c.
References bit_position(), bitpos(), init_node::left, p, init_node::purpose, init_node::right, set_nonincremental_init(), TREE_CODE, tree_int_cst_lt(), TREE_PURPOSE, TREE_VALUE, and init_node::value.
Referenced by push_init_level().
Definition at line 5195 of file c-typeck.c.
Referenced by c_parser_declaration_or_fndef(), and c_parser_postfix_expression_after_paren_type().
Definition at line 621 of file c-typeck.c.
References comptypes(), self_promoting_args_p(), TREE_TYPE, TYPE_ACTUAL_ARG_TYPES, TYPE_ARG_TYPES, type_lists_compatible_p(), and val.
Referenced by comptypes(), and comptypes_internal().
Definition at line 3589 of file c-typeck.c.
References build(), default_function_array_conversion(), extra_warnings, FALSE, integer_zerop(), non_lvalue(), pedantic, TREE_CHAIN, TREE_CODE, TREE_OPERAND, TREE_SIDE_EFFECTS, TREE_TYPE, TREE_VALUE, VOID_TYPE_P, warn_if_unused_value(), warn_unused_value, and warning.
Referenced by build_compound_expr(), and internal_build_compound_expr().
Definition at line 1008 of file c-typeck.c.
References DECL_NAME, half, NULL_TREE, top, TREE_CHAIN, TREE_CODE, tree_cons, TREE_TYPE, TYPE_FIELDS, and TYPE_LANG_SPECIFIC.
Referenced by build_component_ref(), build_field_ref(), build_get_class(), build_invokeinterface(), build_java_array_length_access(), build_java_arrayaccess(), build_known_method_ref(), build_member_call(), build_receiver_ref(), build_sender_ref(), build_static_field_ref(), compute_array_index_type(), do_decl_instantiation(), emit_init_test_initialization(), expand_java_field_op(), expand_member_init(), GTY(), invoke_build_dtable(), lookup_field(), lookup_nested_field(), make_typename_type(), make_unbound_class_template(), start_decl(), and tsubst_copy().
| int lvalue_or_else | ( | tree | ref, | |
| const char * | msgid | |||
| ) |
Definition at line 3209 of file c-typeck.c.
References error(), and lvalue_p().
Referenced by build_asm_expr(), build_asm_stmt(), build_modify_expr(), build_unary_op(), and finish_asm_stmt().
| static int lvalue_p | ( | tree | ref | ) |
Definition at line 3171 of file c-typeck.c.
Referenced by build_array_ref(), build_conditional_expr(), build_modify_expr(), build_new_1(), build_unary_op(), build_up_reference(), c_expand_expr_stmt(), c_process_expr_stmt(), convert_for_assignment(), convert_like_real(), convert_to_reference(), decay_conversion(), default_function_array_conversion(), finish_expr_stmt(), lvalue_or_else(), lvalue_p(), reference_binding(), and standard_conversion().
Definition at line 6310 of file c-typeck.c.
References add_pending_init(), bit_position(), bitpos(), bitsize_one_node, COMPLETE_TYPE_P, COMPOUND_LITERAL_EXPR_DECL, comptypes(), copy_node, DECL_C_BIT_FIELD, DECL_INITIAL, DECL_NAME, default_conversion(), digest_init(), error_init(), error_mark_node, flag_isoc99, initializer_constant_valid_p(), integer_zerop(), output_pending_init_elements(), pedwarn(), set_nonincremental_init(), size_binop(), TREE_CHAIN, TREE_CODE, tree_cons, TREE_CONSTANT, tree_int_cst_equal(), tree_int_cst_lt(), TREE_SIDE_EFFECTS, TREE_TYPE, TREE_VALUE, TYPE_MAIN_VARIANT, TYPE_SIZE, and warning_init().
Referenced by output_pending_init_elements(), and process_init_element().
| static void output_pending_init_elements | ( | int | all | ) | [static] |
Definition at line 6467 of file c-typeck.c.
References bit_position(), init_node::left, next, output_init_element(), init_node::parent, init_node::purpose, init_node::right, TREE_CODE, tree_int_cst_equal(), tree_int_cst_lt(), TREE_TYPE, and init_node::value.
Referenced by output_init_element(), and pop_init_level().
| static char* print_spelling PARAMS | ( | (char *) | ) | [static] |
| static int spelling_length PARAMS | ( | (void) | ) | [static, read] |
Definition at line 77 of file cplus-dem.c.
| static void push_array_bounds PARAMS | ( | (int) | ) | [static] |
| static void push_string PARAMS | ( | (const char *) | ) | [static] |
Definition at line 635 of file mips-tfile.c.
Definition at line 1768 of file c-typeck.c.
References build1, build_binary_op(), C_EXP_ORIGINAL_CODE, C_SET_EXP_ORIGINAL_CODE, error_mark_node, extra_warnings, IS_EXPR_CODE_CLASS, overflow_warning(), result, TREE_CODE, TREE_CODE_CLASS, TREE_CONSTANT, TREE_TYPE, unsigned_conversion_warning(), warn_parentheses, and warning.
Definition at line 3270 of file c-typeck.c.
References pedantic, and pedwarn().
Referenced by build_modify_expr(), build_unary_op(), and unary_complex_lvalue().
| void pedwarn_init | ( | char * | msgid | ) | const |
Definition at line 4723 of file c-typeck.c.
References _, alloca, pedwarn(), print_spelling(), and spelling_length().
Referenced by build_function_call(), digest_init(), maybe_warn_string_init(), pop_init_level(), and process_init_element().
Definition at line 2662 of file c-typeck.c.
References build(), build_binary_op(), c_size_in_bytes(), COMPLETE_OR_VOID_TYPE_P, convert(), error(), fold(), integer_zero_node, operand_equal_p(), pedantic, pedwarn(), ptrdiff_type_node, result, target_type(), TREE_CODE, TREE_CONSTANT, TREE_OPERAND, TREE_TYPE, and warn_pointer_arith.
Referenced by build_binary_op().
| tree pop_init_level | ( | int | implicit | ) | [read] |
Definition at line 5550 of file c-typeck.c.
Referenced by c_parser_braced_init(), pop_init_level(), process_init_element(), push_init_level(), and set_designator().
| static char* print_spelling | ( | char * | buffer | ) | [static] |
Definition at line 4678 of file c-typeck.c.
References d, spelling::i, spelling::kind, p, spelling::s, s, SPELLING_BOUNDS, SPELLING_MEMBER, sprintf(), strlen(), and spelling::u.
Referenced by error_init(), pedwarn_init(), and warning_init().
Definition at line 6608 of file c-typeck.c.
References abort, bit_position(), bitsize_one_node, DECL_C_BIT_FIELD, DECL_NAME, DECL_SIZE, error_init(), error_mark_node, constructor_range_stack::fields, flag_isoc99, constructor_stack::implicit, in_system_header, constructor_range_stack::index, integer_all_onesp(), integer_zerop(), constructor_range_stack::next, NULL_TREE, output_init_element(), p, pedwarn_init(), pop_init_level(), constructor_range_stack::prev, push_array_bounds(), push_init_level(), push_member_name(), constructor_range_stack::range_end, constructor_range_stack::range_start, real_zerop(), constructor_stack::replacement_value, RESTORE_SPELLING_DEPTH, save_expr(), size_binop(), constructor_range_stack::stack, string_flag, TREE_CHAIN, TREE_CODE, tree_int_cst_equal(), tree_int_cst_lt(), tree_low_cst(), TREE_TYPE, TYPE_MAIN_VARIANT, TYPE_SIZE, warn_traditional, and warning.
Referenced by c_parser_initelt(), c_parser_initval(), pop_init_level(), process_init_element(), push_init_level(), and set_designator().
| static void push_array_bounds | ( | int | bounds | ) | [static] |
Definition at line 4650 of file c-typeck.c.
References PUSH_SPELLING, and SPELLING_BOUNDS.
Referenced by process_init_element(), and push_init_level().
| void push_init_level | ( | int | implicit | ) |
Definition at line 5354 of file c-typeck.c.
Referenced by c_parser_braced_init(), process_init_element(), and set_designator().
Definition at line 4638 of file c-typeck.c.
References DECL_NAME, IDENTIFIER_POINTER, PUSH_SPELLING, and SPELLING_MEMBER.
Referenced by pop_init_level(), process_init_element(), and push_init_level().
Definition at line 5776 of file c-typeck.c.
References constructor_range_stack::fields, ggc_alloc, constructor_range_stack::index, constructor_range_stack::next, p, constructor_range_stack::prev, constructor_range_stack::range_end, constructor_range_stack::range_start, and constructor_range_stack::stack.
Referenced by set_init_index(), and set_init_label().
| static void push_string | ( | char * | string | ) | const [static] |
Definition at line 4629 of file c-typeck.c.
References PUSH_SPELLING, and SPELLING_STRING.
Referenced by start_init().
Definition at line 206 of file c-typeck.c.
References c_build_qualified_type(), and TYPE_QUALS.
Referenced by build_conditional_expr(), and composite_type().
Definition at line 3291 of file c-typeck.c.
References _, DECL_NAME, IDENTIFIER_POINTER, pedwarn(), TREE_CODE, TREE_OPERAND, TREE_TYPE, and TYPE_READONLY.
Referenced by build_modify_expr(), build_unary_op(), c_expand_asm_operands(), and readonly_warning().
Definition at line 94 of file c-typeck.c.
Referenced by build_array_ref(), build_cxx_call(), build_function_call(), build_modify_expr(), build_over_call(), c_finish_omp_clauses(), convert_arg_to_ellipsis(), convert_arguments(), convert_for_initialization(), finish_omp_clauses(), and require_complete_type().
| static int set_designator | ( | int | array | ) | [static] |
Definition at line 5706 of file c-typeck.c.
References abort, error_init(), error_mark_node, constructor_stack::implicit, pop_init_level(), process_init_element(), push_init_level(), TREE_CODE, TREE_TYPE, and TYPE_MAIN_VARIANT.
Referenced by set_init_index(), and set_init_label().
Definition at line 6127 of file c-typeck.c.
References add_pending_init(), bitsize_zero_node, bitsizetype, convert(), DECL_C_BIT_FIELD, DECL_NAME, TREE_CHAIN, TREE_CODE, TREE_PURPOSE, TREE_VALUE, TYPE_DOMAIN, TYPE_FIELDS, and TYPE_MIN_VALUE.
Referenced by find_init_member(), output_init_element(), and push_init_level().
Definition at line 6163 of file c-typeck.c.
References abort, add_pending_init(), bitpos(), BITS_PER_UNIT, bitsize_one_node, bitsize_zero_node, build_int_2, BYTES_BIG_ENDIAN, char, char_type_node, end, HOST_BITS_PER_CHAR, HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT, p, init_node::purpose, size_binop(), TREE_CODE, tree_int_cst_lt(), TREE_STRING_LENGTH, TREE_STRING_POINTER, TREE_TYPE, TREE_UNSIGNED, TYPE_PRECISION, val, and wchar_type_node.
Referenced by push_init_level().
Definition at line 6965 of file c-typeck.c.
References add_stmt(), ASM_INPUT_P, build_stmt(), error(), NULL_TREE, RID_VOLATILE, ridpointers, STRIP_NOPS, TREE_CODE, and TREE_OPERAND.
| static int spelling_length | ( | void | ) | [static] |
Definition at line 4659 of file c-typeck.c.
References spelling::kind, p, spelling::s, size, SPELLING_BOUNDS, strlen(), and spelling::u.
Referenced by error_init(), pedwarn_init(), and warning_init().
Definition at line 5127 of file c-typeck.c.
References initializer_stack::asmspec, initializer_stack::constructor_range_stack, initializer_stack::constructor_stack, initializer_stack::decl, DECL_NAME, initializer_stack::deferred, initializer_stack::elements, flag_isoc99, IDENTIFIER_POINTER, missing_braces_mentioned, initializer_stack::next, p, pedantic, push_string(), initializer_stack::require_constant_elements, initializer_stack::require_constant_value, RESTORE_SPELLING_DEPTH, initializer_stack::spelling, initializer_stack::spelling_base, initializer_stack::spelling_size, initializer_stack::top_level, TREE_CODE, TREE_STATIC, TREE_STRING_POINTER, TREE_TYPE, and xmalloc().
Referenced by c_parser_declaration_or_fndef(), and c_parser_postfix_expression_after_paren_type().
Definition at line 4488 of file c-typeck.c.
Referenced by build_compound_literal(), check_initializer(), expand_aggr_init_1(), finish_decl(), and maybe_emit_vtables().
Definition at line 671 of file c-typeck.c.
References c_type_promotes_to(), comptypes(), TREE_CHAIN, TREE_CODE, tree_int_cst_equal(), TREE_TYPE, TREE_VALUE, TYPE_FIELDS, TYPE_MAIN_VARIANT, TYPE_NAME, TYPE_SIZE, TYPE_TRANSPARENT_UNION, and val.
Referenced by function_types_compatible_p().
Definition at line 3230 of file c-typeck.c.
References build(), build_conditional_expr(), build_unary_op(), pedantic_lvalue_warning(), TREE_CODE, TREE_OPERAND, and TREE_TYPE.
Referenced by build_class_member_access_expr(), build_simple_base_path(), build_unary_op(), and unary_complex_lvalue().
Definition at line 4463 of file c-typeck.c.
References error_mark_node, initializer_constant_valid_p(), TREE_CODE, TREE_CONSTANT, and TREE_OPERAND.
Referenced by digest_init(), and valid_compound_expr_initializer().
| static void warn_for_assignment | ( | char * | msgid, | |
| const char * | opname, | |||
| tree | function, | |||
| int | argnum | |||
| ) | const [static] |
Definition at line 4398 of file c-typeck.c.
References _, alloca, IDENTIFIER_LENGTH, IDENTIFIER_POINTER, objc_message_selector(), pedwarn(), sprintf(), and strlen().
Referenced by convert_arguments(), and convert_for_assignment().
| static void warning_init | ( | char * | msgid | ) | const [static] |
Definition at line 4739 of file c-typeck.c.
References _, alloca, print_spelling(), spelling_length(), and warning.
Referenced by add_pending_init(), output_init_element(), pop_init_level(), and push_init_level().
const char* constructor_asmspec [static] |
Definition at line 5036 of file c-typeck.c.
tree constructor_bit_index [static] |
Definition at line 4979 of file c-typeck.c.
int constructor_constant [static] |
Definition at line 4991 of file c-typeck.c.
tree constructor_decl [static] |
Definition at line 5033 of file c-typeck.c.
int constructor_depth [static] |
Definition at line 5022 of file c-typeck.c.
int constructor_designated [static] |
Definition at line 5042 of file c-typeck.c.
tree constructor_elements [static] |
Definition at line 4984 of file c-typeck.c.
Referenced by find_init_member(), finish_init(), output_init_element(), pop_init_level(), push_init_level(), really_start_incremental_init(), set_nonincremental_init(), and start_init().
int constructor_erroneous [static] |
Definition at line 4997 of file c-typeck.c.
tree constructor_fields [static] |
Definition at line 4961 of file c-typeck.c.
int constructor_incremental [static] |
Definition at line 4988 of file c-typeck.c.
tree constructor_index [static] |
Definition at line 4965 of file c-typeck.c.
tree constructor_max_index [static] |
Definition at line 4968 of file c-typeck.c.
| int constructor_no_implicit = 0 |
Definition at line 5025 of file c-typeck.c.
struct init_node* constructor_pending_elts [static] |
Definition at line 5019 of file c-typeck.c.
Definition at line 5099 of file c-typeck.c.
int constructor_simple [static] |
Definition at line 4994 of file c-typeck.c.
Definition at line 5084 of file c-typeck.c.
int constructor_subconstants_deferred [static] |
Definition at line 5000 of file c-typeck.c.
int constructor_top_level [static] |
Definition at line 5039 of file c-typeck.c.
tree constructor_type [static] |
Definition at line 4957 of file c-typeck.c.
tree constructor_unfilled_fields [static] |
Definition at line 4971 of file c-typeck.c.
tree constructor_unfilled_index [static] |
Definition at line 4975 of file c-typeck.c.
int designator_depth [static] |
Definition at line 5045 of file c-typeck.c.
int designator_errorneous [static] |
Definition at line 5048 of file c-typeck.c.
Definition at line 5122 of file c-typeck.c.
int missing_braces_mentioned [static] |
int require_constant_elements [static] |
Definition at line 5028 of file c-typeck.c.
Referenced by finish_init(), output_init_element(), and start_init().
int require_constant_value [static] |
Definition at line 5027 of file c-typeck.c.
Referenced by build_binary_op(), build_function_call(), build_unary_op(), finish_init(), output_init_element(), process_init_element(), and start_init().
Definition at line 4591 of file c-typeck.c.
struct spelling* spelling_base [static] |
Definition at line 4592 of file c-typeck.c.
int spelling_size [static] |
Definition at line 4593 of file c-typeck.c.
struct c_switch* switch_stack [static] |
Definition at line 7233 of file c-typeck.c.
Referenced by finish_case_label(), pop_switch(), and push_switch().
int undeclared_variable_notice [static] |
Definition at line 55 of file c-typeck.c.
Referenced by build_external_ref(), and unqualified_name_lookup_error().
1.5.6