#include "config.h"#include "system.h"#include "tree.h"#include "real.h"#include "flags.h"#include "toplev.h"#include "output.h"#include "c-pragma.h"#include "rtl.h"#include "ggc.h"#include "expr.h"#include "c-common.h"#include "diagnostic.h"#include "tm_p.h"#include "obstack.h"#include "cpplib.h"#include "target.h"#include "langhooks.h"#include "except.h"#include "tree-inline.h"#include "c-tree.h"#include "builtin-attrs.def"#include "builtin-types.def"#include "builtins.def"#include "gt-c-common.h"

Go to the source code of this file.
| #define builtin_assert | ( | TXT | ) | cpp_assert (pfile, TXT) |
| #define builtin_define | ( | TXT | ) | cpp_define (pfile, TXT) |
Referenced by c_cpp_builtins(), darwin_cpp_builtins(), and rs6000_cpu_cpp_builtins().
| #define CALLED_AS_BUILT_IN | ( | NODE | ) | (!strncmp (IDENTIFIER_POINTER (DECL_NAME (NODE)), "__builtin_", 10)) |
Definition at line 4581 of file c-common.c.
| #define DEF_ATTR_IDENT | ( | ENUM, | |||
| STRING | ) |
| #define DEF_ATTR_IDENT | ( | ENUM, | |||
| STRING | ) | ENUM, |
| #define DEF_ATTR_INT | ( | ENUM, | |||
| VALUE | ) |
| #define DEF_ATTR_INT | ( | ENUM, | |||
| VALUE | ) | built_in_attributes[(int) ENUM] = build_int_2 (VALUE, VALUE < 0 ? -1 : 0); |
| #define DEF_ATTR_INT | ( | ENUM, | |||
| VALUE | ) | ENUM, |
| #define DEF_ATTR_NULL_TREE | ( | ENUM | ) |
| #define DEF_ATTR_NULL_TREE | ( | ENUM | ) | built_in_attributes[(int) ENUM] = NULL_TREE; |
| #define DEF_ATTR_NULL_TREE | ( | ENUM | ) | ENUM, |
| #define DEF_BUILTIN | ( | ENUM, | |||
| NAME, | |||||
| CLASS, | |||||
| TYPE, | |||||
| LIBTYPE, | |||||
| BOTH_P, | |||||
| FALLBACK_P, | |||||
| NONANSI_P, | |||||
| ATTRS | ) |
Value:
if (NAME) \ { \ const char *__name__ = NAME; \ tree decl; \ \ if (strncmp (__name__, "__builtin_", strlen ("__builtin_")) != 0) \ abort (); \ \ if (!BOTH_P) \ decl = builtin_function (__name__, builtin_types[TYPE], ENUM, \ CLASS, \ (FALLBACK_P \ ? (__name__ + strlen ("__builtin_")) \ : NULL), \ built_in_attributes[(int) ATTRS]); \ else \ decl = builtin_function_2 (__name__, \ __name__ + strlen ("__builtin_"), \ builtin_types[TYPE], \ builtin_types[LIBTYPE], \ ENUM, \ CLASS, \ FALLBACK_P, \ NONANSI_P, \ built_in_attributes[(int) ATTRS]); \ \ built_in_decls[(int) ENUM] = decl; \ }
| #define DEF_FN_ATTR | ( | NAME, | |||
| ATTRS, | |||||
| PREDICATE | ) |
Value:
if ((PREDICATE) && name == built_in_attributes[(int) NAME]) \ decl_attributes (&decl, built_in_attributes[(int) ATTRS], \ ATTR_FLAG_BUILT_IN);
| #define DEF_FN_ATTR | ( | NAME, | |||
| ATTRS, | |||||
| PREDICATE | ) |
| #define DEF_FN_ATTR | ( | NAME, | |||
| ATTRS, | |||||
| PREDICATE | ) |
| #define DEF_FUNCTION_TYPE_0 | ( | ENUM, | |||
| RETURN | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type (builtin_types[(int) RETURN], \ void_list_node);
| #define DEF_FUNCTION_TYPE_0 | ( | NAME, | |||
| RETURN | ) | NAME, |
| #define DEF_FUNCTION_TYPE_1 | ( | ENUM, | |||
| RETURN, | |||||
| ARG1 | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type (builtin_types[(int) RETURN], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG1], \ void_list_node));
| #define DEF_FUNCTION_TYPE_1 | ( | NAME, | |||
| RETURN, | |||||
| ARG1 | ) | NAME, |
| #define DEF_FUNCTION_TYPE_2 | ( | ENUM, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2 | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type \ (builtin_types[(int) RETURN], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG1], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG2], \ void_list_node)));
| #define DEF_FUNCTION_TYPE_2 | ( | NAME, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2 | ) | NAME, |
| #define DEF_FUNCTION_TYPE_3 | ( | ENUM, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2, | |||||
| ARG3 | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type \ (builtin_types[(int) RETURN], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG1], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG2], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG3], \ void_list_node))));
| #define DEF_FUNCTION_TYPE_3 | ( | NAME, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2, | |||||
| ARG3 | ) | NAME, |
| #define DEF_FUNCTION_TYPE_4 | ( | ENUM, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2, | |||||
| ARG3, | |||||
| ARG4 | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type \ (builtin_types[(int) RETURN], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG1], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG2], \ tree_cons \ (NULL_TREE, \ builtin_types[(int) ARG3], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG4], \ void_list_node)))));
| #define DEF_FUNCTION_TYPE_4 | ( | NAME, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2, | |||||
| ARG3, | |||||
| ARG4 | ) | NAME, |
| #define DEF_FUNCTION_TYPE_VAR_0 | ( | ENUM, | |||
| RETURN | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type (builtin_types[(int) RETURN], NULL_TREE);
| #define DEF_FUNCTION_TYPE_VAR_0 | ( | NAME, | |||
| RETURN | ) | NAME, |
| #define DEF_FUNCTION_TYPE_VAR_1 | ( | ENUM, | |||
| RETURN, | |||||
| ARG1 | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type (builtin_types[(int) RETURN], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG1], \ NULL_TREE));
| #define DEF_FUNCTION_TYPE_VAR_1 | ( | NAME, | |||
| RETURN, | |||||
| ARG1 | ) | NAME, |
| #define DEF_FUNCTION_TYPE_VAR_2 | ( | ENUM, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2 | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type \ (builtin_types[(int) RETURN], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG1], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG2], \ NULL_TREE)));
| #define DEF_FUNCTION_TYPE_VAR_2 | ( | NAME, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2 | ) | NAME, |
| #define DEF_FUNCTION_TYPE_VAR_3 | ( | ENUM, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2, | |||||
| ARG3 | ) |
Value:
builtin_types[(int) ENUM] \ = build_function_type \ (builtin_types[(int) RETURN], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG1], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG2], \ tree_cons (NULL_TREE, \ builtin_types[(int) ARG3], \ NULL_TREE))));
| #define DEF_FUNCTION_TYPE_VAR_3 | ( | NAME, | |||
| RETURN, | |||||
| ARG1, | |||||
| ARG2, | |||||
| ARG3 | ) | NAME, |
| #define DEF_POINTER_TYPE | ( | ENUM, | |||
| TYPE | ) |
Value:
builtin_types[(int) ENUM] \ = build_pointer_type (builtin_types[(int) TYPE]);
| #define DEF_POINTER_TYPE | ( | NAME, | |||
| TYPE | ) | NAME, |
| #define DEF_PRIMITIVE_TYPE | ( | ENUM, | |||
| VALUE | ) | builtin_types[(int) ENUM] = VALUE; |
| #define DEF_PRIMITIVE_TYPE | ( | NAME, | |||
| VALUE | ) | NAME, |
| #define DOLLARS_IN_IDENTIFIERS 1 |
| #define INTMAX_TYPE |
Value:
((INT_TYPE_SIZE == LONG_LONG_TYPE_SIZE) \ ? "int" \ : ((LONG_TYPE_SIZE == LONG_LONG_TYPE_SIZE) \ ? "long int" \ : "long long int"))
Definition at line 83 of file c-common.c.
Referenced by c_common_nodes_and_builtins(), c_stddef_cpp_builtins(), and GTY().
| #define MODIFIED_WCHAR_TYPE (flag_short_wchar ? "short unsigned int" : WCHAR_TYPE) |
Definition at line 71 of file c-common.c.
Referenced by c_common_nodes_and_builtins(), c_stddef_cpp_builtins(), cb_register_builtins(), and GTY().
| #define preprocessing_asm_p | ( | ) | (cpp_get_options (pfile)->lang == CLK_ASM) |
Referenced by c_common_handle_option().
| #define preprocessing_trad_p | ( | ) | (cpp_get_options (pfile)->traditional) |
| #define PTRDIFF_TYPE "long int" |
Definition at line 75 of file c-common.c.
Referenced by c_common_nodes_and_builtins(), c_stddef_cpp_builtins(), cb_register_builtins(), GTY(), and initialize_builtins().
| #define REGISTER_PREFIX "" |
Definition at line 99 of file c-common.c.
Referenced by arm_print_operand(), asm_fprintf(), c_cpp_builtins(), cb_register_builtins(), emit_ldm_seq(), emit_stm_seq(), initialize_builtins(), make_decl_rtl(), strip_reg_name(), and VPARAMS().
| #define SIZE_TYPE "long unsigned int" |
Definition at line 63 of file c-common.c.
Referenced by c_common_nodes_and_builtins(), c_stddef_cpp_builtins(), cb_register_builtins(), ffecom_init_0(), GTY(), and initialize_builtins().
| #define UINTMAX_TYPE |
Value:
((INT_TYPE_SIZE == LONG_LONG_TYPE_SIZE) \ ? "unsigned int" \ : ((LONG_TYPE_SIZE == LONG_LONG_TYPE_SIZE) \ ? "long unsigned int" \ : "long long unsigned int"))
Definition at line 91 of file c-common.c.
Referenced by c_common_nodes_and_builtins(), c_stddef_cpp_builtins(), and GTY().
| #define WALK_SUBTREE | ( | NODE | ) |
Value:
do \ { \ result = walk_stmt_tree (&(NODE), func, data); \ if (result) \ return result; \ } \ while (0)
Referenced by cp_walk_subtrees(), walk_stmt_tree(), walk_tree(), and walk_type_fields().
| #define WCHAR_TYPE "int" |
| #define WINT_TYPE "unsigned int" |
Definition at line 79 of file c-common.c.
Referenced by c_common_nodes_and_builtins(), c_stddef_cpp_builtins(), cb_register_builtins(), GTY(), and initialize_builtins().
| enum built_in_attribute |
Definition at line 3199 of file c-common.c.
| static void add_tlist | ( | struct tlist ** | to, | |
| struct tlist * | add, | |||
| tree | exclude_writer, | |||
| int | copy | |||
| ) | [static] |
Definition at line 1556 of file c-common.c.
References tlist::expr, new_tlist(), next, and tlist::writer.
Referenced by verify_tree().
Definition at line 3760 of file c-common.c.
Referenced by build_expr_from_tree(), build_x_va_arg(), and c_parser_postfix_expression().
| static void builtin_define_float_constants | ( | char * | name_prefix, | |
| const char * | fp_suffix, | |||
| tree | type | |||
| ) | const [static] |
Definition at line 4923 of file c-common.c.
References real_format::b, buf, builtin_define_with_hex_fp_value(), builtin_define_with_int_value(), builtin_define_with_value(), real_format::emax, real_format::emin, float_type_node, real_format::has_denorm, i, real_format::log2_b, long_double_type_node, n, p, real_format::p, real_format_for_mode, sprintf(), strcpy, and TYPE_MODE.
Referenced by c_cpp_builtins(), and cb_register_builtins().
| void builtin_define_std | ( | char * | macro | ) | const |
Definition at line 5317 of file c-common.c.
References abort, alloca, buf, cpp_define(), idx, sprintf(), strlen(), TREE_UNSIGNED, TYPE_PRECISION, and values.
Referenced by builtin_define_stdint_macros(), c_cpp_builtins(), and cb_register_builtins().
Definition at line 4914 of file c-common.c.
References builtin_define_with_int_value(), and TYPE_PRECISION.
Referenced by c_cpp_builtins(), and cb_register_builtins().
| static void builtin_define_with_hex_fp_value | ( | char * | macro, | |
| type | , | |||
| int | digits, | |||
| const char * | hex_str, | |||
| const char * | fp_suffix | |||
| ) | const [static] |
Definition at line 5285 of file c-common.c.
References buf, cpp_define(), real_from_string(), real_to_decimal(), REAL_VALUE_TYPE, and sprintf().
Referenced by builtin_define_float_constants().
| static void builtin_define_with_int_value | ( | char * | macro, | |
| HOST_WIDE_INT | value | |||
| ) | const [static] |
Definition at line 5266 of file c-common.c.
References alloca, buf, cpp_define(), HOST_WIDE_INT_PRINT_DEC, memcpy, sprintf(), and strlen().
Referenced by builtin_define_decimal_float_constants(), builtin_define_float_constants(), builtin_define_std(), builtin_define_type_precision(), c_cpp_builtins(), and cb_register_builtins().
| static void builtin_define_with_value | ( | char * | macro, | |
| const char * | expansion, | |||
| int | is_str | |||
| ) | const [static] |
Definition at line 5242 of file c-common.c.
References alloca, buf, cpp_define(), sprintf(), and strlen().
Referenced by builtin_define_decimal_float_constants(), builtin_define_float_constants(), c_cpp_builtins(), c_stddef_cpp_builtins(), cb_register_builtins(), and darwin_cpp_builtins().
| static tree builtin_function_2 | ( | char * | builtin_name, | |
| const char * | name, | |||
| tree | builtin_type, | |||
| tree | type, | |||
| int | function_code, | |||
| enum built_in_class | class, | |||
| int | library_name_p, | |||
| int | nonansi_p, | |||
| tree | attrs | |||
| ) | const [static] |
Definition at line 3830 of file c-common.c.
References builtin_function(), builtin_function_disabled_p(), DECL_BUILT_IN_NONANSI, flag_no_builtin, flag_no_nonansi_builtin, NULL, and NULL_TREE.
| static bool builtin_function_disabled_p | ( | char * | name | ) | const [static] |
Definition at line 3801 of file c-common.c.
References disabled_builtin::name, disabled_builtin::next, NULL, p, and strcmp().
Referenced by builtin_function_2(), and def_builtin_1().
| tree c_add_case_label | ( | splay_tree | cases, | |
| tree | cond, | |||
| tree | low_value, | |||
| tree | high_value | |||
| ) |
Definition at line 4228 of file c-common.c.
References add_stmt(), build_case_label(), build_decl, c_language, CASE_HIGH, CASE_LABEL_DECL, check_case_value(), clk_cplusplus, convert_and_check(), current_function_decl, DECL_CONTEXT, duplicate, error(), error_mark_node, splay_tree_node_s::key, node, NULL_TREE, pedantic, pedwarn(), POINTER_TYPE_P, splay_tree_insert(), splay_tree_lookup(), splay_tree_predecessor(), splay_tree_successor(), tree_int_cst_compare(), tree_int_cst_equal(), tree_int_cst_lt(), TREE_TYPE, splay_tree_node_s::value, and warning.
Referenced by do_case(), and finish_case_label().
Definition at line 3155 of file c-common.c.
Referenced by build_expr_from_tree(), c_parser_alignof_expression(), and finish_alignof().
Definition at line 2977 of file c-common.c.
Referenced by cp_apply_type_quals_to_decl(), grokclassfn(), grokdeclarator(), start_function(), and tsubst_decl().
| tree c_begin_if_stmt | ( | ) |
| tree c_begin_while_stmt | ( | ) |
Definition at line 2948 of file c-common.c.
Referenced by build_component_ref(), c_build_qualified_type(), c_make_fname_decl(), common_pointer_type(), common_type(), complete_array_type(), composite_type(), default_function_array_conversion(), fix_string_type(), grokdeclarator(), and qualify_type().
| HOST_WIDE_INT c_common_get_alias_set | ( | tree | t | ) |
Definition at line 5385 of file c-common.c.
References c_init_attributes(), and DECL_NAME.
Referenced by c_insert_default_attributes(), and cxx_insert_default_attributes().
Definition at line 2184 of file c-common.c.
Referenced by build_binary_op(), c_common_signed_type(), c_common_unsigned_type(), shorten_compare(), and write_integer_cst().
Definition at line 2148 of file c-common.c.
Referenced by build_binary_op(), c_common_get_alias_set(), c_common_nodes_and_builtins(), check_format_types(), grokdeclarator(), GTY(), shorten_compare(), and unsigned_conversion_warning().
Definition at line 2771 of file c-common.c.
Referenced by build_binary_op(), build_conditional_expr(), build_dynamic_cast_1(), build_unary_op(), c_common_truthvalue_conversion(), c_objc_common_truthvalue_conversion(), convert(), cp_truthvalue_conversion(), expand_cleanup_for_base(), and Push_Temp_Cleanup().
| tree c_common_type_for_mode | ( | enum machine_mode | mode, | |
| int | unsignedp | |||
| ) |
Definition at line 2021 of file c-common.c.
Referenced by dump_type(), GTY(), pp_c_type_specifier(), and write_builtin_type().
| tree c_common_type_for_size | ( | unsigned | bits, | |
| int | unsignedp | |||
| ) |
Definition at line 1977 of file c-common.c.
References intDI_type_node, integer_type_node, intHI_type_node, intQI_type_node, intSI_type_node, long_integer_type_node, long_long_integer_type_node, long_long_unsigned_type_node, long_unsigned_type_node, short_integer_type_node, short_unsigned_type_node, signed_char_type_node, TYPE_PRECISION, unsigned_char_type_node, unsigned_intDI_type_node, unsigned_intHI_type_node, unsigned_intQI_type_node, unsigned_intSI_type_node, unsigned_type_node, widest_integer_literal_type_node, and widest_unsigned_literal_type_node.
Referenced by build_enumerator(), c_common_nodes_and_builtins(), common_type(), comptypes(), comptypes_internal(), cp_convert_to_pointer(), cxx_init(), default_conversion(), finish_enum(), perform_integral_promotions(), pointer_int_sum(), shorten_compare(), and type_promotes_to().
| int c_common_unsafe_for_reeval | ( | tree | exp | ) |
Definition at line 2113 of file c-common.c.
Referenced by c_common_nodes_and_builtins(), check_format_types(), convert_and_check(), convert_for_assignment(), grokdeclarator(), GTY(), and shorten_compare().
| static rtx c_expand_builtin | ( | tree | exp, | |
| rtx | target, | |||
| enum machine_mode | tmode, | |||
| enum expand_modifier | modifier | |||
| ) | [static] |
Definition at line 4585 of file c-common.c.
References c_expand_builtin_fprintf(), c_expand_builtin_printf(), CALLED_AS_BUILT_IN, const0_rtx, DECL_FUNCTION_CODE, DECL_NAME, error(), expand_call(), IDENTIFIER_POINTER, optimize, TREE_CODE, TREE_OPERAND, and TREE_TYPE.
Referenced by c_expand_expr().
| static rtx c_expand_builtin_fprintf | ( | tree | arglist, | |
| rtx | target, | |||
| enum machine_mode | tmode, | |||
| enum expand_modifier | modifier, | |||
| int | ignore, | |||
| int | unlocked | |||
| ) | [static] |
Definition at line 4790 of file c-common.c.
References build_function_call(), build_tree_list, built_in_decls, const0_rtx, expand_expr(), is_valid_printf_arglist(), NULL_TREE, strchr, strcmp(), STRIP_NOPS, TREE_CHAIN, TREE_CODE, tree_cons, TREE_OPERAND, TREE_STRING_POINTER, TREE_TYPE, and TREE_VALUE.
Referenced by c_expand_builtin().
| static rtx c_expand_builtin_printf | ( | tree | arglist, | |
| rtx | target, | |||
| enum machine_mode | tmode, | |||
| enum expand_modifier | modifier, | |||
| int | ignore, | |||
| int | unlocked | |||
| ) | [static] |
Definition at line 4686 of file c-common.c.
References alloca, build_function_call(), build_int_2, build_string(), build_tree_list, built_in_decls, const0_rtx, expand_expr(), fix_string_type(), is_valid_printf_arglist(), memcpy, NULL_TREE, strchr, strcmp(), STRIP_NOPS, TREE_CHAIN, TREE_CODE, TREE_OPERAND, TREE_STRING_LENGTH, TREE_STRING_POINTER, TREE_TYPE, and TREE_VALUE.
Referenced by c_expand_builtin().
| void c_expand_end_cond | ( | ) |
| rtx c_expand_expr | ( | tree | exp, | |
| rtx | target, | |||
| enum machine_mode | tmode, | |||
| int | modifier | |||
| ) |
Definition at line 4411 of file c-common.c.
References abort, BUILT_IN_FRONTEND, c_expand_builtin(), COMPOUND_BODY, COMPOUND_LITERAL_EXPR_DECL, const0_rtx, copy_to_reg(), DECL_BUILT_IN, DECL_BUILT_IN_CLASS, DECL_RTL_IF_SET, emit_local_var(), expand_end_stmt_expr(), expand_expr(), expand_start_stmt_expr(), expand_stmt(), EXPR_STMT_EXPR, GET_CODE, GET_MODE, last, MEM, NULL, NULL_RTX, pop_temp_slots(), preserve_temp_slots(), push_temp_slots(), result, STMT_EXPR_NO_SCOPE, STMT_EXPR_STMT, TREE_ADDRESSABLE, TREE_CHAIN, TREE_CODE, and TREE_OPERAND.
Referenced by cxx_expand_expr().
Definition at line 1912 of file c-common.c.
References add_stmt(), build_stmt(), COMPLETE_OR_VOID_TYPE_P, default_conversion(), error(), error_mark_node, flag_isoc99, last_expr_type, lvalue_p(), TREE_CODE, TREE_TYPE, verify_sequence_points(), and warn_sequence_point.
Referenced by build_module_descriptor(), and c_objc_common_finish_file().
Definition at line 927 of file c-common.c.
References add_stmt(), if_elt::compstmt_count, if_elt::file, IF_COND, if_elt::if_stmt, input_filename, if_elt::line, lineno, if_elt::needs_warning, xmalloc(), and xrealloc().
| void c_expand_start_else | ( | ) |
Definition at line 983 of file c-common.c.
References if_elt::compstmt_count, if_elt::needs_warning, and warn_parentheses.
| void c_finish_else | ( | ) |
Definition at line 1003 of file c-common.c.
References ELSE_CLAUSE, if_elt::if_stmt, and RECHAIN_STMTS.
| void c_finish_then | ( | ) |
Definition at line 959 of file c-common.c.
References if_elt::if_stmt, RECHAIN_STMTS, and THEN_CLAUSE.
Definition at line 5358 of file c-common.c.
Referenced by c_common_insert_default_attributes(), c_common_nodes_and_builtins(), and GTY().
Definition at line 3865 of file c-common.c.
Referenced by c_type_promotes_to(), default_conversion(), perform_integral_promotions(), self_promoting_args_p(), start_function(), start_preparsed_function(), and type_promotes_to().
Definition at line 4528 of file c-common.c.
References DECL_INITIAL, DECL_STMT_DECL, safe_from_p(), statement_code_p, TREE_CHAIN, and TREE_CODE.
| int c_staticp | ( | tree | exp | ) |
Definition at line 4572 of file c-common.c.
| int case_compare | ( | splay_tree_key | k1, | |
| splay_tree_key | k2 | |||
| ) |
| void cb_register_builtins | ( | cpp_reader * | pfile | ) |
Definition at line 5087 of file c-common.c.
References builtin_define_float_constants(), builtin_define_type_max(), builtin_define_type_precision(), builtin_define_with_int_value(), builtin_define_with_value(), c_language, char_type_node, clk_cplusplus, cpp_define(), double_type_node, fast_math_flags_set_p(), flag_exceptions, flag_finite_math_only, flag_hosted, flag_iso, flag_next_runtime, flag_objc, flag_really_no_inline, flag_signaling_nans, flag_signed_char, flag_undef, float_type_node, integer_type_node, long_double_type_node, long_integer_type_node, long_long_integer_type_node, MODIFIED_WCHAR_TYPE, optimize, optimize_size, PTRDIFF_TYPE, REGISTER_PREFIX, short_integer_type_node, signed_char_type_node, SIZE_TYPE, SUPPORTS_ONE_ONLY, TARGET_CPU_CPP_BUILTINS, TARGET_FLT_EVAL_METHOD, TARGET_OS_CPP_BUILTINS, TREE_UNSIGNED, user_label_prefix, USING_SJLJ_EXCEPTIONS, version_string, warn_deprecated, wchar_type_node, and WINT_TYPE.
Referenced by c_common_init().
Definition at line 6880 of file c-common.c.
References check_function_format(), check_function_nonnull(), NULL, warn_format, and warn_nonnull.
Referenced by build_function_call(), and build_over_call().
| void check_function_arguments_recurse | ( | void * | callback, | |
| void * | ctx, | |||
| tree | param, | |||
| unsigned HOST_WIDE_INT | param_num | |||
| ) |
Definition at line 6900 of file c-common.c.
References abort, callback(), i, is_attribute_p(), TREE_CHAIN, TREE_CODE, TREE_INT_CST_HIGH, TREE_INT_CST_LOW, TREE_OPERAND, TREE_PURPOSE, TREE_TYPE, TREE_VALUE, and TYPE_ATTRIBUTES.
Referenced by check_format_info(), check_function_arguments_recurse(), and check_function_nonnull().
Definition at line 6757 of file c-common.c.
References a, check_function_arguments_recurse(), check_nonnull_arg(), is_attribute_p(), nonnull_check_p(), NULL, TREE_CHAIN, TREE_PURPOSE, and TREE_VALUE.
Referenced by check_function_arguments().
Definition at line 6815 of file c-common.c.
References integer_zerop(), TREE_CODE, TREE_TYPE, and warning.
Referenced by check_function_nonnull().
| tree combine_strings | ( | varray_type | strings | ) |
Definition at line 1257 of file c-common.c.
References BITS_PER_UNIT, build_string(), BYTES_BIG_ENDIAN, C_ARTIFICIAL_STRING_P, char_array_type_node, free(), i, in_system_header, len, length, memcpy, p, q, TREE_STRING_LENGTH, TREE_STRING_POINTER, TREE_TYPE, TYPE_PRECISION, VARRAY_ACTIVE_SIZE, VARRAY_TREE, warning, wchar_array_type_node, wchar_type_node, wide_flag, and xmalloc().
Referenced by build_objc_string_object(), and yylexstring().
Definition at line 1373 of file c-common.c.
Referenced by build_enumerator(), check_bitfield_type_and_width(), check_case_value(), compute_array_index_type(), finish_decl(), finish_struct(), grokbitfield(), grokdeclarator(), layout_var_decl(), and store_init_value().
Definition at line 1449 of file c-common.c.
References convert(), int_fits_type_p(), TREE_CODE, and TREE_OVERFLOW.
Referenced by convert_and_check().
Definition at line 1464 of file c-common.c.
Referenced by build_binary_op(), build_conditional_expr(), build_ptrmemfunc1(), c_add_case_label(), convert_for_assignment(), and convert_like_real().
| void disable_builtin_function | ( | char * | name | ) | const |
Definition at line 3782 of file c-common.c.
References error(), strlen(), strncmp(), and xmalloc().
Referenced by c_common_decode_option(), and c_common_handle_option().
Definition at line 4022 of file c-common.c.
References build_unary_op(), BUILT_IN_NORMAL, DECL_BUILT_IN_CLASS, DECL_FUNCTION_CODE, expand_unordered_cmp(), integer_zero_node, NULL_TREE, and TREE_VALUE.
Referenced by build_cxx_call(), build_function_call(), and build_function_call_real().
| static tree expand_unordered_cmp | ( | tree | function, | |
| tree | params, | |||
| enum tree_code | unordered_code, | |||
| enum tree_code | ordered_code | |||
| ) | [static] |
Definition at line 3945 of file c-common.c.
References build_binary_op(), build_unary_op(), common_type(), convert(), DECL_NAME, error(), error_mark_node, IDENTIFIER_POINTER, integer_zero_node, MODE_HAS_NANS, NULL_TREE, TREE_CHAIN, TREE_CODE, TREE_TYPE, TREE_VALUE, and TYPE_MODE.
Referenced by expand_tree_builtin().
Definition at line 1082 of file c-common.c.
Referenced by finish_function(), finish_translation_unit(), and pop_file_scope().
Definition at line 4379 of file c-common.c.
Referenced by c_parser_unary_expression(), cp_parser_unary_expression(), and tsubst_copy_and_build().
Definition at line 1213 of file c-common.c.
Referenced by c_expand_builtin_printf(), cp_parser_string_literal(), and tinfo_name().
| const char* fname_as_string | ( | int | pretty_p | ) |
Definition at line 1126 of file c-common.c.
Referenced by c_make_fname_decl(), cp_make_fname_decl(), and fname_string().
Definition at line 1165 of file c-common.c.
Referenced by c_parser_postfix_expression(), and finish_fname().
| const char* fname_string | ( | unsigned | rid | ) |
Definition at line 6836 of file c-common.c.
References TREE_CODE, TREE_INT_CST_HIGH, TREE_INT_CST_LOW, and TREE_OPERAND.
Referenced by handle_nonnull_attribute(), and nonnull_check_p().
| static GTY | ( | () | ) | [static] |
Definition at line 3215 of file c-common.c.
References build_array_type(), build_common_tree_nodes_2(), build_decl, build_function_type(), build_index_type(), build_int_2, build_pointer_type(), build_qualified_type(), build_reference_type(), build_void_list_node(), builtin_types, c_common_signed_type(), c_common_unsigned_type(), c_init_attributes(), c_language, char_array_type_node, char_type_node, clk_cplusplus, complex_double_type_node, complex_float_type_node, complex_integer_type_node, complex_long_double_type_node, const_string_type_node, default_function_type, double_type_node, flag_short_double, float_type_node, g77_integer_type_node, g77_longint_type_node, g77_uinteger_type_node, g77_ulongint_type_node, get_identifier(), HOST_BITS_PER_WIDE_INT, identifier_global_value(), gcc_target::init_builtins, int, int_array_type_node, intDI_type_node, integer_type_node, intHI_type_node, INTMAX_TYPE, intmax_type_node, intQI_type_node, intSI_type_node, intTI_type_node, long_double_type_node, long_integer_type_node, long_long_integer_type_node, long_long_unsigned_type_node, long_unsigned_type_node, main_identifier_node, make_signed_type(), make_unsigned_type(), MODIFIED_WCHAR_TYPE, NULL, NULL_TREE, PTRDIFF_TYPE, ptrdiff_type_node, record_builtin_type(), RID_CHAR, RID_DOUBLE, RID_FLOAT, RID_INT, RID_LONG, RID_MAX, RID_SHORT, RID_SIGNED, RID_UNSIGNED, RID_VOID, RID_WCHAR, set_sizetype(), short_integer_type_node, short_unsigned_type_node, signed_char_type_node, signed_size_type_node, signed_wchar_type_node, size_int, SIZE_TYPE, size_type_node, sizetype, string_type_node, targetm, TREE_CODE, TREE_TYPE, TREE_UNSIGNED, TYPE_PRECISION, TYPE_QUAL_CONST, UINTMAX_TYPE, uintmax_type_node, unsigned_char_type_node, unsigned_intDI_type_node, unsigned_intHI_type_node, unsigned_intQI_type_node, unsigned_intSI_type_node, unsigned_intTI_type_node, unsigned_ptrdiff_type_node, unsigned_type_node, unsigned_wchar_type_node, va_list_arg_type_node, va_list_ref_type_node, va_list_type_node, void_list_node, void_type_node, void_zero_node, wchar_array_type_node, wchar_type_node, widest_integer_literal_type_node, widest_unsigned_literal_type_node, WINT_TYPE, and wint_type_node.
| static tree handle_alias_attribute | ( | tree * | node, | |
| tree | name, | |||
| tree | args, | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6021 of file c-common.c.
References DECL_EXTERNAL, decl_function_context(), DECL_INITIAL, error(), error_mark_node, get_identifier(), IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, TREE_STRING_POINTER, TREE_USED, TREE_VALUE, and warning.
| static tree handle_aligned_attribute | ( | tree * | node, | |
| name | , | |||
| tree | args, | |||
| int | flags, | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5921 of file c-common.c.
References ATTR_FLAG_TYPE_IN_PLACE, BIGGEST_ALIGNMENT, BITS_PER_UNIT, build_type_copy(), DECL_ALIGN, DECL_ORIGINAL_TYPE, DECL_P, DECL_USER_ALIGN, error(), error_mark_node, HOST_BITS_PER_INT, i, NULL, NULL_TREE, size_int, TREE_CODE, tree_log2(), TREE_OPERAND, TREE_TYPE, TREE_USED, TREE_VALUE, TYPE_ALIGN, TYPE_NAME, TYPE_P, and TYPE_USER_ALIGN.
| static tree handle_always_inline_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5564 of file c-common.c.
References IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, and warning.
| static tree handle_cleanup_attribute | ( | tree * | node, | |
| tree | name, | |||
| tree | args, | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6268 of file c-common.c.
References error(), IDENTIFIER_POINTER, lookup_name(), NULL_TREE, TREE_CODE, TREE_STATIC, TREE_VALUE, and warning.
| static tree handle_common_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5489 of file c-common.c.
References DECL_COMMON, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, and warning.
| static tree handle_const_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5652 of file c-common.c.
References build_pointer_type(), build_type_variant, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, TREE_READONLY, TREE_THIS_VOLATILE, TREE_TYPE, and warning.
| static tree handle_constructor_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5730 of file c-common.c.
References decl_function_context(), DECL_STATIC_CONSTRUCTOR, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, TREE_TYPE, TREE_USED, and warning.
| static tree handle_deprecated_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| int | flags, | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6317 of file c-common.c.
References ATTR_FLAG_TYPE_IN_PLACE, build_type_copy(), DECL_NAME, DECL_P, IDENTIFIER_POINTER, NULL, NULL_TREE, TREE_CODE, TREE_DEPRECATED, TREE_TYPE, TYPE_NAME, TYPE_P, warn(), and warning.
| static tree handle_destructor_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5760 of file c-common.c.
References decl_function_context(), DECL_STATIC_DESTRUCTOR, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, TREE_TYPE, TREE_USED, and warning.
| static tree handle_malloc_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6189 of file c-common.c.
References DECL_IS_MALLOC, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, and warning.
| static tree handle_mode_attribute | ( | tree * | node, | |
| tree | name, | |||
| tree | args, | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5790 of file c-common.c.
References alloca, byte_mode, error(), GET_MODE_CLASS, GET_MODE_NAME, IDENTIFIER_POINTER, len, mode, MODE_VECTOR_FLOAT, MODE_VECTOR_INT, NULL_TREE, NUM_MACHINE_MODES, p, ptr_mode, strcmp(), strcpy, strlen(), TREE_CODE, TREE_UNSIGNED, TREE_VALUE, vector_mode_valid_p(), warning, and word_mode.
| static tree handle_no_instrument_function_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6156 of file c-common.c.
References DECL_INITIAL, DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, IDENTIFIER_POINTER, NULL_TREE, and TREE_CODE.
| static tree handle_no_limit_stack_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6212 of file c-common.c.
References DECL_INITIAL, DECL_NO_LIMIT_STACK, IDENTIFIER_POINTER, NULL_TREE, and TREE_CODE.
| static tree handle_nocommon_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5467 of file c-common.c.
References DECL_COMMON, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, and warning.
| static tree handle_noinline_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5542 of file c-common.c.
References DECL_UNINLINABLE, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, and warning.
| static tree handle_nonnull_attribute | ( | tree * | node, | |
| name | , | |||
| tree | args, | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6683 of file c-common.c.
References error(), get_nonnull_operand(), HOST_WIDE_INT, NULL_TREE, TREE_CHAIN, TREE_CODE, TREE_VALUE, and TYPE_ARG_TYPES.
| static tree handle_noreturn_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5511 of file c-common.c.
References build_pointer_type(), build_type_variant, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, TREE_READONLY, TREE_THIS_VOLATILE, TREE_TYPE, and warning.
| static tree handle_nothrow_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6859 of file c-common.c.
References IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, TREE_NOTHROW, and warning.
| static tree handle_packed_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| int | flags, | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5428 of file c-common.c.
References ATTR_FLAG_TYPE_IN_PLACE, build_type_copy(), DECL_P, DECL_PACKED, IDENTIFIER_POINTER, NULL, NULL_TREE, TREE_CODE, TREE_TYPE, TYPE_PACKED, and warning.
| static tree handle_pure_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6245 of file c-common.c.
References DECL_IS_PURE, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, and warning.
| static tree handle_section_attribute | ( | tree * | node, | |
| name | , | |||
| tree | args, | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5863 of file c-common.c.
References current_function_decl, DECL_SECTION_NAME, gcc_target::have_named_sections, NULL_TREE, strcmp(), targetm, TREE_CODE, TREE_STATIC, TREE_STRING_POINTER, and TREE_VALUE.
| static tree handle_tls_model_attribute | ( | tree * | node, | |
| tree | name, | |||
| tree | args, | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6113 of file c-common.c.
References DECL_THREAD_LOCAL, error(), IDENTIFIER_POINTER, NULL_TREE, strcmp(), TREE_CODE, TREE_STRING_POINTER, TREE_VALUE, and warning.
| static tree handle_transparent_union_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| int | flags, | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5683 of file c-common.c.
References ATTR_FLAG_TYPE_IN_PLACE, build_type_copy(), DECL_MODE, DECL_P, DECL_TRANSPARENT_UNION, IDENTIFIER_POINTER, NULL, NULL_TREE, TREE_CODE, TREE_TYPE, TYPE_FIELDS, TYPE_MODE, TYPE_P, TYPE_TRANSPARENT_UNION, and warning.
| static tree handle_unused_attribute | ( | tree * | node, | |
| tree | name, | |||
| args | , | |||
| int | flags, | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5615 of file c-common.c.
References ATTR_FLAG_TYPE_IN_PLACE, build_type_copy(), DECL_P, IDENTIFIER_POINTER, NULL_TREE, TREE_CODE, TREE_USED, and warning.
| static tree handle_used_attribute | ( | tree * | pnode, | |
| tree | name, | |||
| args | , | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 5589 of file c-common.c.
References DECL_ASSEMBLER_NAME, IDENTIFIER_POINTER, node, NULL_TREE, TREE_CODE, TREE_STATIC, TREE_SYMBOL_REFERENCED, TREE_USED, and warning.
| static tree handle_visibility_attribute | ( | tree * | node, | |
| tree | name, | |||
| tree | args, | |||
| flags | , | |||
| bool * | no_add_attrs | |||
| ) | [static] |
Definition at line 6070 of file c-common.c.
References decl_function_context(), error(), IDENTIFIER_POINTER, NULL_TREE, strcmp(), TREE_CODE, TREE_PUBLIC, TREE_STRING_POINTER, TREE_VALUE, and warning.
| static int is_valid_printf_arglist | ( | tree | arglist | ) | [static] |
Definition at line 4651 of file c-common.c.
References build_int_2, check_function_format(), get_identifier(), integer_one_node, NULL_TREE, pedantic, and tree_cons.
Referenced by c_expand_builtin_fprintf(), and c_expand_builtin_printf().
Definition at line 1580 of file c-common.c.
References end, tlist::expr, new_tlist(), tlist::next, next, NULL, tmp2, and tlist::writer.
Referenced by verify_tree().
| unsigned int min_precision | ( | tree | value, | |
| int | unsignedp | |||
| ) |
Definition at line 2227 of file c-common.c.
Referenced by check_bitfield_decl(), check_bitfield_type_and_width(), finish_enum(), and finish_struct().
Definition at line 1539 of file c-common.c.
References tlist::expr, tlist::next, obstack_alloc, tlist_obstack, and tlist::writer.
Referenced by add_tlist(), merge_tlist(), verify_tree(), and warn_for_collisions_1().
Definition at line 6793 of file c-common.c.
References abort, get_nonnull_operand(), HOST_WIDE_INT, TREE_CHAIN, and TREE_VALUE.
Referenced by check_function_nonnull().
Definition at line 1391 of file c-common.c.
Referenced by convert_for_assignment(), convert_like_real(), dubious_conversion_warnings(), finish_unary_op_expr(), parser_build_binary_op(), and parser_build_unary_op().
| static tree builtin_function_2 PARAMS | ( | (const char *, const char *, tree, tree, int, enum built_in_class, int, int, tree) | ) | [static] |
| static rtx c_expand_builtin_printf PARAMS | ( | (tree, rtx, enum machine_mode, enum expand_modifier, int, int) | ) | [static] |
| static rtx c_expand_builtin PARAMS | ( | (tree, rtx, enum machine_mode, enum expand_modifier) | ) | [static] |
| static int is_valid_printf_arglist PARAMS | ( | (tree) | ) | [static] |
| static void builtin_define_with_hex_fp_value PARAMS | ( | (const char *, tree, int, const char *, const char *) | ) | [static] |
| static void builtin_define_with_int_value PARAMS | ( | (const char *, HOST_WIDE_INT) | ) | [static] |
| static void builtin_define_with_value PARAMS | ( | (const char *, const char *, int) | ) | [static] |
| void builtin_define_std PARAMS | ( | (const char *) | ) |
Definition at line 635 of file mips-tfile.c.
Definition at line 77 of file cplus-dem.c.
| int lang_statement_code_p PARAMS | ( | (enum tree_code) | ) |
| tree make_fname_decl PARAMS | ( | (tree, int) | ) |
Definition at line 2662 of file c-common.c.
Referenced by build_binary_op(), and cp_pointer_int_sum().
| int self_promoting_args_p | ( | tree | parms | ) |
Definition at line 3896 of file c-common.c.
Referenced by comp_target_parms(), decls_match(), duplicate_decls(), and function_types_compatible_p().
Definition at line 5412 of file c-common.c.
References DECL_SOURCE_FILE, DECL_SOURCE_LINE, IDENTIFIER_POINTER, and warning.
Referenced by pushdecl(), and warn_if_shadowing().
Definition at line 1052 of file c-common.c.
Referenced by c_init_decl_processing(), cxx_init_decl_processing(), push_file_scope(), start_function(), and start_preparsed_function().
| int statement_code_p | ( | enum tree_code | code | ) |
Definition at line 3923 of file c-common.c.
Referenced by build_component_ref(), build_op_delete_call(), build_vec_delete(), build_vec_init(), c_build_qualified_type(), check_field_decl(), check_field_decls(), check_initializer(), complete_array_type(), composite_type(), constrain_class_visibility(), cp_finish_decl(), cp_has_mutable_p(), cp_type_quals(), cp_type_readonly(), grokdeclarator(), handle_init_priority_attribute(), pod_type_p(), walk_subobject_offsets(), and zero_init_p().
Definition at line 1426 of file c-common.c.
Referenced by convert_and_check(), and parser_build_binary_op().
Definition at line 6652 of file c-common.c.
References build_array_type(), build_function_type(), build_pointer_type(), POINTER_TYPE_P, TREE_CODE, TREE_READONLY, TREE_THIS_VOLATILE, TREE_TYPE, and TYPE_VALUES.
Referenced by vector_size_helper().
Definition at line 1893 of file c-common.c.
References gcc_obstack_init, obstack_alloc, obstack_free, tlist_obstack, verify_tree(), and warn_for_collisions().
Referenced by c_expand_expr_stmt(), c_process_expr_stmt(), finish_expr_stmt(), and finish_for_expr().
| static void verify_tree | ( | tree | x, | |
| struct tlist ** | pbefore_sp, | |||
| struct tlist ** | pno_sp, | |||
| tree | writer | |||
| ) | [static] |
Definition at line 1695 of file c-common.c.
References add_tlist(), tlist_cache::cache_after_sp, tlist_cache::cache_before_sp, tlist_cache::expr, first_rtl_op(), max, merge_tlist(), new_tlist(), tlist::next, tlist_cache::next, NULL, NULL_TREE, obstack_alloc, tlist_obstack, TREE_CHAIN, TREE_CODE, TREE_CODE_CLASS, TREE_OPERAND, TREE_VALUE, warn_for_collisions(), warn_for_collisions_1(), and warning_candidate_p().
Referenced by verify_sequence_points(), and verify_tree().
| tree walk_stmt_tree | ( | tree * | tp, | |
| walk_tree_fn | func, | |||
| void * | data | |||
| ) |
Definition at line 4136 of file c-common.c.
References i, len, NULL_TREE, result, statement_code_p, TREE_CHAIN, TREE_CODE, TREE_CODE_LENGTH, TREE_OPERAND, and WALK_SUBTREE.
Referenced by walk_stmt_tree().
Definition at line 1648 of file c-common.c.
References tlist::expr, tlist::next, tmp, warn_for_collisions_1(), and tlist::writer.
Referenced by verify_sequence_points(), and verify_tree().
| static void warn_for_collisions_1 | ( | tree | written, | |
| tree | writer, | |||
| struct tlist * | list, | |||
| int | only_writes | |||
| ) | [static] |
Definition at line 1618 of file c-common.c.
References DECL_NAME, tlist::expr, IDENTIFIER_POINTER, new_tlist(), tlist::next, NULL_TREE, tmp, warning, and tlist::writer.
Referenced by verify_tree(), and warn_for_collisions().
| static int warning_candidate_p | ( | tree | x | ) | [static] |
Definition at line 821 of file c-common.c.
Initial value:
{
{ "format", 3, 3, false, true, true,
handle_format_attribute },
{ "format_arg", 1, 1, false, true, true,
handle_format_arg_attribute },
{ NULL, 0, 0, false, false, false, NULL }
}
Definition at line 907 of file c-common.c.
| tree c_global_trees[CTI_MAX] |
Definition at line 200 of file c-common.c.
Definition at line 104 of file c-common.c.
Referenced by boolean_increment(), c_add_case_label(), c_common_decode_option(), c_common_init_options(), cb_register_builtins(), check_case_value(), finish_label_address_expr(), fix_string_type(), get_ident(), GTY(), lex_charconst(), and pp_c_bool_literal().
| const char* constant_string_class_name |
Definition at line 454 of file c-common.c.
Referenced by c_common_decode_option(), and c_common_handle_option().
disabled_builtin* disabled_builtins = NULL [static] |
Definition at line 3774 of file c-common.c.
| int dollars_in_ident = DOLLARS_IN_IDENTIFIERS |
Definition at line 252 of file c-common.c.
Referenced by _cpp_lex_direct(), _cpp_valid_ucn(), c_common_decode_option(), and forms_identifier_p().
| int flag_abi_version = 1 |
Definition at line 598 of file c-common.c.
Referenced by c_common_decode_option(), and c_cpp_builtins().
| int flag_access_control = 1 |
Definition at line 542 of file c-common.c.
Referenced by accessible_p(), c_common_decode_option(), c_common_handle_option(), c_parse_file(), get_mostly_instantiated_function_type(), register_dtor_fn(), and simplify_aggr_init_exprs_r().
Definition at line 497 of file c-common.c.
Referenced by c_common_decode_option(), extract_interface_info(), instantiate_class_template(), instantiate_decl(), start_function(), and warn_if_unknown_interface().
| int flag_check_new |
Definition at line 547 of file c-common.c.
Referenced by build_new_1(), c_common_decode_option(), c_common_handle_option(), and check_return_expr().
Definition at line 358 of file c-common.c.
Referenced by build_conditional_expr(), c_common_decode_option(), and c_common_handle_option().
Definition at line 538 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), and start_decl().
Definition at line 245 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_common_init_options(), cxx_init_decl_processing(), fix_string_type(), and string_conv_p().
| int flag_default_inline = 1 |
Definition at line 526 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), and start_method().
| int flag_elide_constructors = 1 |
Definition at line 521 of file c-common.c.
Referenced by build_over_call(), c_common_decode_option(), c_common_handle_option(), check_return_expr(), and stabilize_throw_expr().
| int flag_enforce_eh_specs = 1 |
Definition at line 583 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), finish_function(), store_parm_decls(), and use_eh_spec_block().
Definition at line 491 of file c-common.c.
Referenced by c_common_decode_option(), do_decl_instantiation(), do_type_instantiation(), instantiate_class_template(), instantiate_decl(), instantiate_template(), and lookup_template_class().
Definition at line 436 of file c-common.c.
Referenced by c_common_decode_option(), and c_common_handle_option().
| int flag_hosted = 1 |
Definition at line 370 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_missing_noreturn_ok_p(), cb_register_builtins(), finish_function(), finish_options(), grokdeclarator(), and GTY().
| int flag_implement_inlines = 1 |
Definition at line 486 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), import_export_decl(), start_function(), and start_preparsed_function().
| int flag_implicit_inline_templates = 1 |
Definition at line 507 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), and import_export_decl().
| int flag_implicit_templates = 1 |
Definition at line 501 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), import_export_class(), and import_export_decl().
| int flag_iso |
Definition at line 209 of file c-common.c.
Referenced by builtin_define_std(), c_cpp_builtins(), cb_register_builtins(), disable_extension_diagnostics(), grokfield(), ia64_hpux_add_pragma_builtin(), restore_extension_diagnostics(), set_std_c89(), set_std_c99(), and set_std_cxx98().
| int flag_isoc94 |
Definition at line 362 of file c-common.c.
Referenced by ia64_hpux_add_pragma_builtin(), set_std_c89(), and set_std_c99().
| int flag_isoc99 |
Definition at line 366 of file c-common.c.
Definition at line 236 of file c-common.c.
Referenced by build_offset_ref(), build_unary_op(), build_x_unary_op(), c_common_decode_option(), c_common_handle_option(), grokdeclarator(), grokfield(), instantiate_type(), resolve_address_of_overloaded_function(), and resolve_offset_ref().
| int flag_new_for_scope = 1 |
Definition at line 556 of file c-common.c.
Referenced by begin_for_stmt(), c_common_decode_option(), c_common_handle_option(), finish_for_stmt(), and poplevel().
| int flag_next_runtime = 0 |
Definition at line 443 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_common_post_options(), c_cpp_builtins(), cb_register_builtins(), darwin_register_objc_includes(), and machopic_select_section().
| int flag_no_asm |
Definition at line 240 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_parse_init(), init_reswords(), set_std_c89(), and set_std_c99().
| int flag_no_builtin |
Definition at line 220 of file c-common.c.
Referenced by builtin_function_2(), c_common_decode_option(), c_common_handle_option(), and def_builtin_1().
Definition at line 481 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), init_reswords(), set_std_c89(), and set_std_cxx98().
Definition at line 225 of file c-common.c.
Referenced by builtin_function_2(), c_common_decode_option(), c_common_handle_option(), def_builtin_1(), set_std_c89(), set_std_c99(), and set_std_cxx98().
Definition at line 375 of file c-common.c.
Referenced by set_std_c89(), set_std_c99(), and set_std_cxx98().
| int flag_objc |
Definition at line 212 of file c-common.c.
Referenced by build_c_cast(), c_common_decode_option(), c_common_init_options(), cb_register_builtins(), comptypes(), convert_for_assignment(), finish_decl(), finish_struct(), grokfield(), and implicitly_declare().
| int flag_optional_diags = 1 |
Definition at line 517 of file c-common.c.
Referenced by c_common_decode_option(), and c_common_handle_option().
| int flag_permissive |
Definition at line 576 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), cp_parser_template_id(), cxx_init_decl_processing(), and unqualified_fn_lookup_error().
Definition at line 205 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_common_init(), c_common_post_options(), c_common_read_pch(), cb_file_change(), and init_pragma().
| int flag_rtti = 1 |
Definition at line 531 of file c-common.c.
Referenced by build_dynamic_cast_1(), build_rtti_vtbl_entries(), c_common_decode_option(), c_common_handle_option(), import_export_decl(), import_export_tinfo(), and typeid_ok_p().
Definition at line 229 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_common_nodes_and_builtins(), and GTY().
| int flag_short_wchar |
Definition at line 233 of file c-common.c.
Referenced by c_common_decode_option(), and c_common_handle_option().
| int flag_signed_bitfields = 1 |
Definition at line 256 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), and grokdeclarator().
| int flag_undef |
Definition at line 216 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_cpp_builtins(), and cb_register_builtins().
| int flag_use_cxa_atexit = DEFAULT_USE_CXA_ATEXIT |
Definition at line 567 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), cp_finish_file(), do_static_destruction(), do_static_initialization(), finish_file(), get_atexit_node(), one_static_initialization_or_destruction(), register_dtor_fn(), start_cleanup_fn(), and start_static_initialization_or_destruction().
Definition at line 512 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), cp_finish_file(), do_decl_instantiation(), do_type_instantiation(), finish_repo(), get_base_filename(), init_repo(), reopen_repo_file_for_write(), repo_emit_p(), repo_export_class_p(), and repo_template_used().
| int flag_vtable_gc |
Definition at line 571 of file c-common.c.
Referenced by build_vfn_ref(), build_vtbl_ref(), c_common_decode_option(), and maybe_emit_vtables().
| int flag_weak = 1 |
Definition at line 562 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_cpp_builtins(), comdat_linkage(), cxx_init_decl_processing(), emit_support_tinfos(), import_export_class(), import_export_decl(), import_export_tinfo(), make_thunk(), mark_decl_instantiated(), maybe_commonize_var(), maybe_emit_vtables(), maybe_make_one_only(), sh_output_mi_thunk(), and use_thunk().
Initial value:
{
{&c99_function_name_decl_node, RID_C99_FUNCTION_NAME, 0},
{&function_name_decl_node, RID_FUNCTION_NAME, 0},
{&pretty_function_name_decl_node, RID_PRETTY_FUNCTION_NAME, 1},
{NULL, 0, 0},
}
Definition at line 696 of file c-common.c.
int if_stack_pointer = 0 [static] |
Definition at line 729 of file c-common.c.
int if_stack_space = 0 [static] |
Definition at line 726 of file c-common.c.
| int max_tinst_depth = 500 |
Definition at line 664 of file c-common.c.
Referenced by c_common_decode_option(), and c_common_handle_option().
| int mesg_implicit_function_declaration = -1 |
Definition at line 353 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_objc_common_init(), implicit_decl_warning(), and set_Wimplicit().
Definition at line 54 of file c-common.c.
Referenced by builtin_define_std(), builtin_define_type_max(), builtin_define_with_hex_fp_value(), builtin_define_with_int_value(), builtin_define_with_value(), builtin_define_with_value_n(), c_common_decode_option(), c_common_finish(), c_common_handle_option(), c_common_init(), c_common_init_options(), c_common_no_more_pch(), c_common_parse_file(), c_common_post_options(), c_common_read_pch(), c_common_write_pch(), c_invoke_pragma_handler(), c_lex(), c_lex_with_flags(), c_parser_pragma_pch_preprocess(), c_register_pragma(), c_register_pragma_with_expansion(), cp_lexer_handle_pragma(), cp_lexer_new_main(), cp_parser_string_literal(), darwin_register_frameworks(), finish_options(), handle_deferred_opts(), handle_pragma_implementation(), init_c_lex(), init_cp_pragma(), init_pp_output(), init_pragma(), interpret_integer(), lex_charconst(), lex_string(), pch_init(), pp_file_change(), preprocess_file(), push_command_line_include(), set_std_c89(), set_std_c99(), set_std_cxx98(), VEC(), and yylexstring().
Definition at line 450 of file c-common.c.
Referenced by c_common_decode_option(), and c_common_handle_option().
Definition at line 670 of file c-common.c.
Referenced by build_asm_stmt(), build_category_template(), build_class_template(), build_ivar_list_template(), build_ivar_template(), build_method_list_template(), build_method_prototype_list_template(), build_method_prototype_template(), build_method_template(), build_module_descriptor(), build_protocol_template(), build_selector_template(), build_selector_translation_table(), c_parse_init(), c_print_identifier(), check_tag_decl(), cp_lexer_get_preprocessor_token(), cp_parser_base_specifier(), cp_parser_objc_protocol_qualifiers(), cp_parser_set_storage_class(), cp_parser_sizeof_operand(), cp_type_qual_from_rid(), cxx_init(), do_decl_instantiation(), do_type_instantiation(), encode_type_qualifiers(), finish_asm_stmt(), finish_class(), generate_category(), generate_classref_translation_entry(), generate_descriptor_table(), generate_dispatch_table(), generate_forward_declaration_to_string_table(), generate_ivars_list(), generate_objc_symtab_decl(), generate_protocol_list(), generate_protocols(), generate_shared_structures(), generate_static_references(), generate_strings(), genrtl_asm_stmt(), grokdeclarator(), init_class_processing(), init_reswords(), is_objc_type_qualifier(), read_process_identifier(), really_start_method(), record_builtin_type(), simple_asm_stmt(), synth_forward_declarations(), and yylex().
struct tlist_cache* save_expr_cache [static] |
Definition at line 1526 of file c-common.c.
| int skip_evaluation |
Definition at line 684 of file c-common.c.
Referenced by build_binary_op(), build_class_member_access_expr(), build_conditional_expr(), build_external_ref(), build_indirect_ref(), c_parser_alignof_expression(), c_parser_binary_expression(), c_parser_conditional_expression(), c_parser_sizeof_expression(), c_parser_typeof_specifier(), coerce_template_parms(), convert_and_check(), convert_arg_to_ellipsis(), cp_parser_enclosed_template_argument_list(), cp_parser_sizeof_operand(), mark_used(), overflow_warning(), pop_from_top_level(), push_to_top_level(), tsubst_aggr_type(), tsubst_copy_and_build(), and unsigned_conversion_warning().
char* tlist_firstobj = 0 [static] |
struct obstack tlist_obstack [static] |
Definition at line 1518 of file c-common.c.
Referenced by new_tlist(), verify_sequence_points(), and verify_tree().
| int warn_abi = 0 |
Definition at line 603 of file c-common.c.
Referenced by add_implicitly_declared_members(), build_base_field(), c_common_decode_option(), finish_mangling(), layout_class_type(), layout_empty_base(), layout_virtual_bases(), and lazily_declare_fn().
Definition at line 381 of file c-common.c.
Referenced by build_c_cast(), and c_common_decode_option().
| int warn_cast_qual |
Definition at line 262 of file c-common.c.
Referenced by build_c_cast(), build_const_cast_1(), build_static_cast_1(), and c_common_decode_option().
Definition at line 311 of file c-common.c.
Referenced by build_array_ref(), c_common_decode_option(), and c_common_handle_option().
| int warn_conversion |
Definition at line 315 of file c-common.c.
Referenced by c_common_decode_option(), convert_arguments(), grok_op_properties(), joust(), and unsigned_conversion_warning().
| int warn_ctor_dtor_privacy = 1 |
Definition at line 612 of file c-common.c.
Referenced by c_common_decode_option(), and maybe_warn_about_overly_private_class().
Definition at line 389 of file c-common.c.
Referenced by c_common_decode_option(), and c_parser_compound_statement_nostart().
| int warn_deprecated = 1 |
Definition at line 658 of file c-common.c.
Referenced by c_common_decode_option(), c_cpp_builtins(), cb_register_builtins(), cp_parser_warn_min_max(), and do_pragma_once().
| int warn_div_by_zero = 1 |
Definition at line 418 of file c-common.c.
Referenced by build_binary_op(), c_common_decode_option(), and c_common_handle_option().
| int warn_ecpp |
Definition at line 640 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), check_bases(), check_field_decls(), check_return_expr(), grok_op_properties(), perform_member_init(), start_function(), and start_preparsed_function().
| int warn_float_equal |
Definition at line 307 of file c-common.c.
Referenced by build_binary_op(), and c_common_decode_option().
| int warn_format |
Definition at line 324 of file c-common.c.
Referenced by build_function_call_real(), build_over_call(), c_common_post_options(), check_function_arguments(), check_function_format(), and set_Wformat().
Definition at line 332 of file c-common.c.
Referenced by c_common_decode_option(), c_common_post_options(), check_format_info(), and set_Wformat().
Definition at line 340 of file c-common.c.
Referenced by c_common_decode_option(), c_common_post_options(), check_format_info(), and set_Wformat().
Definition at line 344 of file c-common.c.
Referenced by c_common_decode_option(), c_common_post_options(), check_format_info(), and set_Wformat().
| int warn_format_y2k |
Definition at line 328 of file c-common.c.
Referenced by c_common_decode_option(), c_common_post_options(), check_format_info_main(), and set_Wformat().
Definition at line 336 of file c-common.c.
Referenced by c_common_decode_option(), c_common_post_options(), check_format_info(), and set_Wformat().
| int warn_implicit = 1 |
Definition at line 607 of file c-common.c.
Referenced by implicitly_declare(), set_Wimplicit(), and start_function().
Definition at line 422 of file c-common.c.
Referenced by c_common_decode_option(), grokdeclarator(), and set_Wimplicit().
| int warn_long_long = 1 |
Definition at line 293 of file c-common.c.
Referenced by c_common_decode_option(), cp_parser_check_decl_spec(), cpp_classify_number(), declspecs_add_type(), grokdeclarator(), and sanitize_cpp_opts().
| int warn_main |
Definition at line 411 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), finish_function(), start_decl(), and start_function().
Definition at line 284 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), finish_objc(), process_init_constructor(), push_init_level(), and reshape_init().
Definition at line 399 of file c-common.c.
Referenced by c_common_decode_option(), and start_function().
Definition at line 266 of file c-common.c.
Referenced by c_common_decode_option(), c_common_post_options(), check_function_arguments(), check_function_format(), convert_for_arg_passing(), and convert_for_assignment().
Definition at line 276 of file c-common.c.
Referenced by c_common_decode_option(), and start_function().
| int warn_nonnull |
Definition at line 427 of file c-common.c.
Referenced by c_common_decode_option(), check_function_arguments(), and set_Wformat().
| int warn_nontemplate_friend = 1 |
Definition at line 654 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), and do_friend().
| int warn_nonvdtor |
Definition at line 623 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), and finish_struct_1().
Definition at line 649 of file c-common.c.
Referenced by c_common_decode_option(), cp_parser_cast_expression(), and reparse_absdcl_as_casts().
Definition at line 618 of file c-common.c.
Referenced by c_common_decode_option(), and finish_struct_1().
| int warn_parentheses |
Definition at line 280 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_common_truthvalue_conversion(), c_expand_start_else(), c_finish_if_stmt(), parser_build_binary_op(), and truthvalue_conversion().
| int warn_pmf2ptr = 1 |
Definition at line 636 of file c-common.c.
Referenced by c_common_decode_option(), convert_for_assignment(), convert_member_func_to_ptr(), and cp_convert_to_pointer().
Definition at line 271 of file c-common.c.
Referenced by build_unary_op(), c_common_decode_option(), c_common_init_options(), c_sizeof_or_alignof_type(), cxx_sizeof_or_alignof_type(), disable_extension_diagnostics(), pointer_diff(), pointer_int_sum(), and restore_extension_diagnostics().
| int warn_protocol = 1 |
Definition at line 303 of file c-common.c.
Referenced by c_common_decode_option(), diagnose_mismatched_decls(), and duplicate_decls().
| int warn_reorder |
Definition at line 627 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), and sort_mem_initializers().
| int warn_selector |
Definition at line 415 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_expand_expr_stmt(), c_process_expr_stmt(), finish_expr_stmt(), and finish_for_expr().
Definition at line 289 of file c-common.c.
Referenced by build_binary_op(), build_conditional_expr(), c_common_decode_option(), c_common_handle_option(), c_common_init_options(), and c_common_post_options().
| int warn_sign_promo |
Definition at line 394 of file c-common.c.
Referenced by c_cast_expr(), c_common_decode_option(), grokparms(), and start_function().
| int warn_synth |
Definition at line 631 of file c-common.c.
Referenced by build_new_op(), and c_common_decode_option().
| int warn_traditional |
Definition at line 385 of file c-common.c.
Definition at line 319 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), cb_def_pragma(), and ffelex_hash_().
Definition at line 298 of file c-common.c.
Referenced by c_common_decode_option(), c_common_handle_option(), c_common_init_options(), fix_string_type(), and string_conv_p().
struct tlist* warned_ids [static] |
Definition at line 1523 of file c-common.c.
1.5.6