#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) |
| #define CALLED_AS_BUILT_IN | ( | NODE | ) | (!strncmp (IDENTIFIER_POINTER (DECL_NAME (NODE)), "__builtin_", 10)) |
Definition at line 4621 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) \ { \ 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 |
Definition at line 252 of file c-common.c.
| #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 85 of file c-common.c.
| #define MODIFIED_WCHAR_TYPE (flag_short_wchar ? "short unsigned int" : WCHAR_TYPE) |
Definition at line 73 of file c-common.c.
| #define preprocessing_asm_p | ( | ) | (cpp_get_options (pfile)->lang == CLK_ASM) |
| #define preprocessing_trad_p | ( | ) | (cpp_get_options (pfile)->traditional) |
| #define PTRDIFF_TYPE "long int" |
Definition at line 77 of file c-common.c.
| #define REGISTER_PREFIX "" |
Definition at line 101 of file c-common.c.
| #define SIZE_TYPE "long unsigned int" |
Definition at line 65 of file c-common.c.
| #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 93 of file c-common.c.
| #define WALK_SUBTREE | ( | NODE | ) |
| #define WCHAR_TYPE "int" |
Definition at line 69 of file c-common.c.
| #define WINT_TYPE "unsigned int" |
Definition at line 81 of file c-common.c.
| enum built_in_attribute |
Definition at line 3239 of file c-common.c.
| static void add_tlist | ( | struct tlist ** | to, | |
| struct tlist * | add, | |||
| tree | exclude_writer, | |||
| int | copy | |||
| ) | [static] |
Definition at line 1596 of file c-common.c.
References tlist::expr, new_tlist(), next, and tlist::writer.
Definition at line 4912 of file c-common.c.
References abort, boolean_true_node, build(), c_bool_true_node, c_language, clk_cplusplus, invert_truthvalue(), save_expr(), stabilize_reference(), TREE_SIDE_EFFECTS, TREE_TYPE, and val.
| static void builtin_define_float_constants | ( | char * | name_prefix, | |
| const char * | fp_suffix, | |||
| tree | type | |||
| ) | const [static] |
Definition at line 4959 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.
| void builtin_define_std | ( | char * | macro | ) | const |
Definition at line 5353 of file c-common.c.
References abort, alloca, buf, cpp_define(), idx, sprintf(), strlen(), TREE_UNSIGNED, TYPE_PRECISION, and values.
Definition at line 4950 of file c-common.c.
References builtin_define_with_int_value(), and TYPE_PRECISION.
| 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 5321 of file c-common.c.
References buf, cpp_define(), real_from_string(), real_to_decimal(), REAL_VALUE_TYPE, and sprintf().
| static void builtin_define_with_int_value | ( | char * | macro, | |
| HOST_WIDE_INT | value | |||
| ) | const [static] |
Definition at line 5302 of file c-common.c.
References alloca, buf, cpp_define(), HOST_WIDE_INT_PRINT_DEC, memcpy, sprintf(), and strlen().
| static void builtin_define_with_value | ( | char * | macro, | |
| const char * | expansion, | |||
| int | is_str | |||
| ) | const [static] |
Definition at line 5278 of file c-common.c.
References alloca, buf, cpp_define(), sprintf(), and strlen().
| 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 3871 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 3842 of file c-common.c.
References disabled_builtin::name, disabled_builtin::next, NULL, p, and strcmp().
| tree c_add_case_label | ( | splay_tree | cases, | |
| tree | cond, | |||
| tree | low_value, | |||
| tree | high_value | |||
| ) |
Definition at line 4268 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.
Definition at line 3195 of file c-common.c.
References BITS_PER_UNIT, build1, c_alignof, DECL_ALIGN, DECL_C_BIT_FIELD, error(), fold(), size_int, size_one_node, size_type_node, TREE_CODE, TREE_OPERAND, TREE_TYPE, and TYPE_ALIGN.
Definition at line 3017 of file c-common.c.
References C_TYPE_OBJECT_OR_INCOMPLETE_P, DECL_POINTER_ALIAS_SET, error(), flag_strict_aliasing, POINTER_TYPE_P, TREE_CODE, TREE_READONLY, TREE_SIDE_EFFECTS, TREE_THIS_VOLATILE, TREE_TYPE, TYPE_QUAL_CONST, TYPE_QUAL_RESTRICT, and TYPE_QUAL_VOLATILE.
| tree c_begin_if_stmt | ( | ) |
| tree c_begin_while_stmt | ( | ) |
Definition at line 2988 of file c-common.c.
References build_array_type(), build_qualified_type(), c_build_qualified_type(), C_TYPE_OBJECT_OR_INCOMPLETE_P, error(), POINTER_TYPE_P, TREE_CODE, TREE_TYPE, TYPE_DOMAIN, and TYPE_QUAL_RESTRICT.
| HOST_WIDE_INT c_common_get_alias_set | ( | tree | t | ) |
Definition at line 3048 of file c-common.c.
References build_type_no_quals(), c_common_signed_type(), char_type_node, get_alias_set(), lookup_attribute(), POINTER_TYPE_P, signed_char_type_node, t1, TREE_CODE, TREE_OPERAND, TREE_TYPE, TREE_UNSIGNED, TYPE_ATTRIBUTES, TYPE_P, and unsigned_char_type_node.
Definition at line 2224 of file c-common.c.
References intDI_type_node, integer_type_node, INTEGRAL_TYPE_P, intHI_type_node, intQI_type_node, intSI_type_node, intTI_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, TREE_UNSIGNED, TYPE_PRECISION, 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_type_node, widest_integer_literal_type_node, and widest_unsigned_literal_type_node.
Definition at line 2188 of file c-common.c.
References c_common_signed_or_unsigned_type(), char_type_node, intDI_type_node, integer_type_node, intHI_type_node, intQI_type_node, intSI_type_node, intTI_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_MAIN_VARIANT, 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_type_node, widest_integer_literal_type_node, and widest_unsigned_literal_type_node.
Definition at line 2811 of file c-common.c.
References boolean_false_node, boolean_true_node, boolean_type_node, build(), build1, build_binary_op(), build_unary_op(), c_common_truthvalue_conversion(), C_EXP_ORIGINAL_CODE, COMPLEX_TYPE, DECL_EXTERNAL, DECL_P, error(), fold(), HONOR_INFINITIES, integer_onep(), integer_zero_node, integer_zerop(), real_zerop(), save_expr(), TREE_CODE, TREE_CONSTANT_OVERFLOW, TREE_OPERAND, TREE_SIDE_EFFECTS, TREE_TYPE, TYPE_MODE, TYPE_PRECISION, warn_parentheses, and warning.
| tree c_common_type_for_mode | ( | enum machine_mode | mode, | |
| int | unsignedp | |||
| ) |
Definition at line 2061 of file c-common.c.
References build_pointer_type(), char_type_node, double_type_node, float_type_node, intDI_type_node, integer_type_node, intHI_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, short_integer_type_node, short_unsigned_type_node, signed_char_type_node, TYPE_MODE, 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_type_node, unsigned_V16QI_type_node, unsigned_V1DI_type_node, unsigned_V2DI_type_node, unsigned_V2HI_type_node, unsigned_V2SI_type_node, unsigned_V4HI_type_node, unsigned_V4SI_type_node, unsigned_V8HI_type_node, unsigned_V8QI_type_node, V16QI_type_node, V16SF_type_node, V1DI_type_node, V2DF_type_node, V2DI_type_node, V2HI_type_node, V2SF_type_node, V2SI_type_node, V4HI_type_node, V4SF_type_node, V4SI_type_node, V8HI_type_node, V8QI_type_node, widest_integer_literal_type_node, and widest_unsigned_literal_type_node.
| tree c_common_type_for_size | ( | unsigned | bits, | |
| int | unsignedp | |||
| ) |
Definition at line 2017 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.
| int c_common_unsafe_for_reeval | ( | tree | exp | ) |
Definition at line 2153 of file c-common.c.
References c_common_signed_or_unsigned_type(), char_type_node, intDI_type_node, integer_type_node, intHI_type_node, intQI_type_node, intSI_type_node, intTI_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_MAIN_VARIANT, 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_type_node, widest_integer_literal_type_node, and widest_unsigned_literal_type_node.
| static rtx c_expand_builtin | ( | tree | exp, | |
| rtx | target, | |||
| enum machine_mode | tmode, | |||
| enum expand_modifier | modifier | |||
| ) | [static] |
Definition at line 4625 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.
| 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 4827 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.
| 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 4723 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.
| void c_expand_end_cond | ( | ) |
| rtx c_expand_expr | ( | tree | exp, | |
| rtx | target, | |||
| enum machine_mode | tmode, | |||
| int | modifier | |||
| ) |
Definition at line 4451 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.
Definition at line 1952 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.
Definition at line 967 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 1023 of file c-common.c.
References if_elt::compstmt_count, if_elt::needs_warning, and warn_parentheses.
| void c_finish_else | ( | ) |
Definition at line 1043 of file c-common.c.
References ELSE_CLAUSE, if_elt::if_stmt, and RECHAIN_STMTS.
| void c_finish_then | ( | ) |
Definition at line 999 of file c-common.c.
References if_elt::if_stmt, RECHAIN_STMTS, and THEN_CLAUSE.
Definition at line 5394 of file c-common.c.
Definition at line 3906 of file c-common.c.
References char_type_node, integer_type_node, short_integer_type_node, short_unsigned_type_node, signed_char_type_node, TREE_CODE, TYPE_MAIN_VARIANT, TYPE_PRECISION, and unsigned_char_type_node.
Definition at line 4568 of file c-common.c.
References DECL_INITIAL, DECL_STMT_DECL, safe_from_p(), statement_code_p, TREE_CHAIN, and TREE_CODE.
Definition at line 3132 of file c-common.c.
References BITS_PER_UNIT, build1, char_type_node, COMPLETE_TYPE_P, error(), fold(), FUNCTION_BOUNDARY, my_friendly_assert, NULL, op_name, pedantic, pedwarn(), size_binop(), size_int, size_one_node, size_type_node, size_zero_node, TREE_CODE, TREE_TYPE, TYPE_ALIGN, TYPE_IS_SIZETYPE, TYPE_PRECISION, TYPE_SIZE_UNIT, and warn_pointer_arith.
| int c_staticp | ( | tree | exp | ) |
Definition at line 4612 of file c-common.c.
References COMPOUND_LITERAL_EXPR_DECL, TREE_CODE, and TREE_STATIC.
| int case_compare | ( | splay_tree_key | k1, | |
| splay_tree_key | k2 | |||
| ) |
| void cb_register_builtins | ( | cpp_reader * | pfile | ) |
Definition at line 5123 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.
Definition at line 1977 of file c-common.c.
References c_language, clk_cplusplus, constant_expression_warning(), decl_constant_value(), default_conversion(), error(), error_mark_node, fold(), NULL_TREE, STRIP_TYPE_NOPS, and TREE_CODE.
Definition at line 7029 of file c-common.c.
References check_function_format(), check_function_nonnull(), NULL, warn_format, and warn_nonnull.
| void check_function_arguments_recurse | ( | void * | callback, | |
| void * | ctx, | |||
| tree | param, | |||
| unsigned HOST_WIDE_INT | param_num | |||
| ) |
Definition at line 7049 of file c-common.c.
References abort, callback(), check_function_arguments_recurse(), 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.
Definition at line 6906 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.
Definition at line 6964 of file c-common.c.
References integer_zerop(), TREE_CODE, TREE_TYPE, and warning.
| tree combine_strings | ( | varray_type | strings | ) |
Definition at line 1297 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().
Definition at line 1413 of file c-common.c.
References pedantic, pedwarn(), TREE_CODE, and TREE_CONSTANT_OVERFLOW.
Definition at line 1489 of file c-common.c.
References convert(), int_fits_type_p(), TREE_CODE, and TREE_OVERFLOW.
Definition at line 1504 of file c-common.c.
References c_common_unsigned_type(), constant_fits_type_p(), convert(), pedantic, skip_evaluation, TREE_CODE, TREE_CONSTANT_OVERFLOW, TREE_OVERFLOW, TREE_TYPE, TREE_UNSIGNED, TYPE_PRECISION, unsigned_conversion_warning(), and warning.
| void disable_builtin_function | ( | char * | name | ) | const |
Definition at line 4062 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.
| static tree expand_unordered_cmp | ( | tree | function, | |
| tree | params, | |||
| enum tree_code | unordered_code, | |||
| enum tree_code | ordered_code | |||
| ) | [static] |
Definition at line 3986 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.
Definition at line 1122 of file c-common.c.
References build_stmt(), chainon(), COMPOUND_STMT_NO_SCOPE, current_function_decl, fname_var_t::decl, DECL_SAVED_TREE, NULL_TREE, saved_function_name_decls, stack, TREE_CHAIN, TREE_INT_CST_LOW, TREE_PURPOSE, and TREE_VALUE.
Definition at line 4419 of file c-common.c.
References build1, c_language, clk_cplusplus, lookup_label(), null_pointer_node, NULL_TREE, pedantic, pedwarn(), ptr_type_node, result, TREE_CONSTANT, and TREE_USED.
Definition at line 1253 of file c-common.c.
References BITS_PER_UNIT, build_array_type(), build_index_type(), build_int_2, build_type_variant, c_language, char_type_node, clk_c, flag_const_strings, flag_isoc99, flag_writable_strings, length, pedantic, pedwarn(), TREE_CONSTANT, TREE_READONLY, TREE_STATIC, TREE_STRING_LENGTH, TREE_TYPE, TYPE_PRECISION, wchar_array_type_node, wchar_type_node, and wide_flag.
| const char* fname_as_string | ( | int | pretty_p | ) |
Definition at line 1166 of file c-common.c.
References current_function_decl, DECL_NAME, IDENTIFIER_POINTER, and NULL.
Definition at line 1205 of file c-common.c.
References current_function_decl, fname_var_t::decl, last_tree, lineno, NULL_TREE, fname_var_t::pretty, saved_function_name_decls, TREE_CHAIN, and tree_cons.
| const char* fname_string | ( | unsigned | rid | ) |
Definition at line 6985 of file c-common.c.
References TREE_CODE, TREE_INT_CST_HIGH, TREE_INT_CST_LOW, and TREE_OPERAND.
| static GTY | ( | () | ) | [static] |
Definition at line 3255 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 6066 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 5966 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 5605 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 6313 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 5525 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 5697 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 5775 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 6362 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 5805 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 6234 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 5835 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 6201 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 6257 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 5503 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 5578 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 6832 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 5547 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 7008 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 5464 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 6290 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 5908 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 6158 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 5728 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 5660 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 5634 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 6115 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 4689 of file c-common.c.
References build_int_2, check_function_format(), get_identifier(), integer_one_node, NULL_TREE, pedantic, and tree_cons.
Definition at line 1620 of file c-common.c.
References end, tlist::expr, new_tlist(), tlist::next, next, NULL, tmp2, and tlist::writer.
| unsigned int min_precision | ( | tree | value, | |
| int | unsignedp | |||
| ) |
Definition at line 2267 of file c-common.c.
References build1, fold(), integer_zerop(), log(), tree_floor_log2(), tree_int_cst_sgn(), and TREE_TYPE.
Definition at line 1579 of file c-common.c.
References tlist::expr, tlist::next, obstack_alloc, tlist_obstack, and tlist::writer.
Definition at line 6942 of file c-common.c.
References abort, get_nonnull_operand(), HOST_WIDE_INT, TREE_CHAIN, and TREE_VALUE.
Definition at line 1431 of file c-common.c.
References skip_evaluation, TREE_CODE, TREE_OVERFLOW, TREE_REALPART, and warning.
| 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 *) | ) | [read] |
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 2702 of file c-common.c.
References build(), build_binary_op(), c_common_type_for_size(), convert(), fold(), integer_one_node, pedantic, pedwarn(), result, size_in_bytes(), sizetype, TREE_CODE, TREE_CONSTANT, TREE_OPERAND, TREE_TYPE, TREE_UNSIGNED, TYPE_PRECISION, and warn_pointer_arith.
| int self_promoting_args_p | ( | tree | parms | ) |
Definition at line 3937 of file c-common.c.
References c_promoting_integer_type_p(), float_type_node, TREE_CHAIN, TREE_VALUE, TYPE_MAIN_VARIANT, and void_type_node.
Definition at line 5448 of file c-common.c.
References DECL_SOURCE_FILE, DECL_SOURCE_LINE, IDENTIFIER_POINTER, and warning.
| tree shorten_compare | ( | tree * | op0_ptr, | |
| tree * | op1_ptr, | |||
| tree * | restype_ptr, | |||
| enum tree_code * | rescode_ptr | |||
| ) |
Definition at line 2374 of file c-common.c.
References boolean_false_node, boolean_true_node, boolean_type_node, build(), c_common_signed_or_unsigned_type(), c_common_signed_type(), c_common_type_for_size(), c_common_unsigned_type(), common_type(), convert(), extra_warnings, get_narrower(), in_system_header, INT_CST_LT, INT_CST_LT_UNSIGNED, integer_zerop(), real_zerop(), TREE_CODE, TREE_CONSTANT, TREE_OVERFLOW, TREE_SIDE_EFFECTS, TREE_TYPE, TREE_UNSIGNED, TYPE_MAX_VALUE, TYPE_MIN_VALUE, TYPE_PRECISION, val, and warning.
Definition at line 1092 of file c-common.c.
References build_int_2, fname_var_t::decl, NULL_TREE, saved_function_name_decls, and tree_cons.
| int statement_code_p | ( | enum tree_code | code | ) |
Definition at line 1466 of file c-common.c.
References c_common_signed_type(), int_fits_type_p(), skip_evaluation, TREE_CODE, TREE_TYPE, TREE_UNSIGNED, warn_conversion, and warning.
Definition at line 6801 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, TYPE_VALUES, and vector_size_helper().
Definition at line 1933 of file c-common.c.
References gcc_obstack_init, obstack_alloc, obstack_free, tlist_obstack, verify_tree(), and warn_for_collisions().
| static void verify_tree | ( | tree | x, | |
| struct tlist ** | pbefore_sp, | |||
| struct tlist ** | pno_sp, | |||
| tree | writer | |||
| ) | [static] |
Definition at line 1735 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, verify_tree(), warn_for_collisions(), warn_for_collisions_1(), and warning_candidate_p().
| tree walk_stmt_tree | ( | tree * | tp, | |
| walk_tree_fn | func, | |||
| void * | data | |||
| ) |
Definition at line 4176 of file c-common.c.
References i, len, NULL_TREE, result, statement_code_p, TREE_CHAIN, TREE_CODE, TREE_CODE_LENGTH, TREE_OPERAND, walk_stmt_tree(), and WALK_SUBTREE.
Definition at line 1688 of file c-common.c.
References tlist::expr, tlist::next, tmp, warn_for_collisions_1(), and tlist::writer.
| static void warn_for_collisions_1 | ( | tree | written, | |
| tree | writer, | |||
| struct tlist * | list, | |||
| int | only_writes | |||
| ) | [static] |
Definition at line 1658 of file c-common.c.
References DECL_NAME, tlist::expr, IDENTIFIER_POINTER, new_tlist(), tlist::next, NULL_TREE, tmp, warning, and tlist::writer.
| static int warning_candidate_p | ( | tree | x | ) | [static] |
Definition at line 842 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 947 of file c-common.c.
| tree c_global_trees[CTI_MAX] |
Definition at line 202 of file c-common.c.
Definition at line 106 of file c-common.c.
| const char* constant_string_class_name |
Definition at line 456 of file c-common.c.
disabled_builtin* disabled_builtins = NULL [static] |
Definition at line 3815 of file c-common.c.
| int dollars_in_ident = DOLLARS_IN_IDENTIFIERS |
Definition at line 254 of file c-common.c.
Definition at line 259 of file c-common.c.
| int flag_abi_version = 1 |
Definition at line 600 of file c-common.c.
| int flag_access_control = 1 |
Definition at line 544 of file c-common.c.
Definition at line 499 of file c-common.c.
| int flag_check_new |
Definition at line 549 of file c-common.c.
Definition at line 360 of file c-common.c.
Definition at line 540 of file c-common.c.
Definition at line 247 of file c-common.c.
| int flag_default_inline = 1 |
Definition at line 528 of file c-common.c.
| int flag_elide_constructors = 1 |
Definition at line 523 of file c-common.c.
| int flag_enforce_eh_specs = 1 |
Definition at line 585 of file c-common.c.
Definition at line 493 of file c-common.c.
Definition at line 438 of file c-common.c.
| int flag_hosted = 1 |
Definition at line 372 of file c-common.c.
| int flag_implement_inlines = 1 |
Definition at line 488 of file c-common.c.
| int flag_implicit_inline_templates = 1 |
Definition at line 509 of file c-common.c.
| int flag_implicit_templates = 1 |
Definition at line 503 of file c-common.c.
| int flag_iso |
Definition at line 211 of file c-common.c.
| int flag_isoc94 |
Definition at line 364 of file c-common.c.
| int flag_isoc99 |
Definition at line 368 of file c-common.c.
Definition at line 238 of file c-common.c.
| int flag_new_for_scope = 1 |
Definition at line 558 of file c-common.c.
| int flag_next_runtime = 0 |
Definition at line 445 of file c-common.c.
| int flag_no_asm |
Definition at line 242 of file c-common.c.
| int flag_no_builtin |
Definition at line 222 of file c-common.c.
Definition at line 483 of file c-common.c.
Definition at line 227 of file c-common.c.
Definition at line 377 of file c-common.c.
| int flag_objc |
Definition at line 214 of file c-common.c.
| int flag_optional_diags = 1 |
Definition at line 519 of file c-common.c.
| int flag_permissive |
Definition at line 578 of file c-common.c.
Definition at line 207 of file c-common.c.
| int flag_rtti = 1 |
Definition at line 533 of file c-common.c.
Definition at line 231 of file c-common.c.
| int flag_short_wchar |
Definition at line 235 of file c-common.c.
| int flag_signed_bitfields = 1 |
Definition at line 258 of file c-common.c.
| int flag_undef |
Definition at line 218 of file c-common.c.
| int flag_use_cxa_atexit = DEFAULT_USE_CXA_ATEXIT |
Definition at line 569 of file c-common.c.
Definition at line 514 of file c-common.c.
| int flag_vtable_gc |
Definition at line 573 of file c-common.c.
| int flag_weak = 1 |
Definition at line 564 of file c-common.c.
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 698 of file c-common.c.
Definition at line 725 of file c-common.c.
int if_stack_pointer = 0 [static] |
Definition at line 731 of file c-common.c.
int if_stack_space = 0 [static] |
Definition at line 728 of file c-common.c.
| int max_tinst_depth = 500 |
Definition at line 666 of file c-common.c.
| int mesg_implicit_function_declaration = -1 |
Definition at line 355 of file c-common.c.
Definition at line 56 of file c-common.c.
Definition at line 452 of file c-common.c.
Definition at line 672 of file c-common.c.
struct tlist_cache* save_expr_cache [static] |
Definition at line 1566 of file c-common.c.
| int skip_evaluation |
Definition at line 686 of file c-common.c.
char* tlist_firstobj = 0 [static] |
Definition at line 1559 of file c-common.c.
struct obstack tlist_obstack [static] |
Definition at line 1558 of file c-common.c.
| int warn_abi = 0 |
Definition at line 605 of file c-common.c.
Definition at line 383 of file c-common.c.
| int warn_cast_qual |
Definition at line 264 of file c-common.c.
Definition at line 313 of file c-common.c.
| int warn_conversion |
Definition at line 317 of file c-common.c.
| int warn_ctor_dtor_privacy = 1 |
Definition at line 614 of file c-common.c.
Definition at line 391 of file c-common.c.
| int warn_deprecated = 1 |
Definition at line 660 of file c-common.c.
| int warn_div_by_zero = 1 |
Definition at line 420 of file c-common.c.
| int warn_ecpp |
Definition at line 642 of file c-common.c.
| int warn_float_equal |
Definition at line 309 of file c-common.c.
| int warn_format |
Definition at line 326 of file c-common.c.
Definition at line 334 of file c-common.c.
Definition at line 342 of file c-common.c.
Definition at line 346 of file c-common.c.
| int warn_format_y2k |
Definition at line 330 of file c-common.c.
Definition at line 338 of file c-common.c.
| int warn_implicit = 1 |
Definition at line 609 of file c-common.c.
Definition at line 424 of file c-common.c.
| int warn_long_long = 1 |
Definition at line 295 of file c-common.c.
| int warn_main |
Definition at line 413 of file c-common.c.
Definition at line 286 of file c-common.c.
Definition at line 401 of file c-common.c.
Definition at line 268 of file c-common.c.
Definition at line 278 of file c-common.c.
Definition at line 409 of file c-common.c.
| int warn_nonnull |
Definition at line 429 of file c-common.c.
| int warn_nontemplate_friend = 1 |
Definition at line 656 of file c-common.c.
| int warn_nonvdtor |
Definition at line 625 of file c-common.c.
Definition at line 651 of file c-common.c.
Definition at line 620 of file c-common.c.
| int warn_parentheses |
Definition at line 282 of file c-common.c.
| int warn_pmf2ptr = 1 |
Definition at line 638 of file c-common.c.
Definition at line 273 of file c-common.c.
| int warn_protocol = 1 |
Definition at line 475 of file c-common.c.
Definition at line 305 of file c-common.c.
| int warn_reorder |
Definition at line 629 of file c-common.c.
| int warn_selector |
Definition at line 462 of file c-common.c.
Definition at line 417 of file c-common.c.
Definition at line 291 of file c-common.c.
| int warn_sign_promo |
Definition at line 647 of file c-common.c.
Definition at line 396 of file c-common.c.
| int warn_synth |
Definition at line 633 of file c-common.c.
| int warn_traditional |
Definition at line 387 of file c-common.c.
Definition at line 469 of file c-common.c.
Definition at line 321 of file c-common.c.
Definition at line 300 of file c-common.c.
struct tlist* warned_ids [static] |
Definition at line 1563 of file c-common.c.
1.5.6