00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GCC_C_COMMON_H
00023 #define GCC_C_COMMON_H
00024
00025 #include "splay-tree.h"
00026 #include "cpplib.h"
00027 #include "ggc.h"
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 enum rid
00047 {
00048
00049
00050 RID_STATIC = 0,
00051 RID_UNSIGNED, RID_LONG, RID_CONST, RID_EXTERN,
00052 RID_REGISTER, RID_TYPEDEF, RID_SHORT, RID_INLINE,
00053 RID_VOLATILE, RID_SIGNED, RID_AUTO, RID_RESTRICT,
00054
00055
00056 RID_COMPLEX, RID_THREAD,
00057
00058
00059 RID_FRIEND, RID_VIRTUAL, RID_EXPLICIT, RID_EXPORT, RID_MUTABLE,
00060
00061
00062 RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF, RID_ONEWAY,
00063
00064
00065 RID_INT, RID_CHAR, RID_FLOAT, RID_DOUBLE, RID_VOID,
00066 RID_ENUM, RID_STRUCT, RID_UNION, RID_IF, RID_ELSE,
00067 RID_WHILE, RID_DO, RID_FOR, RID_SWITCH, RID_CASE,
00068 RID_DEFAULT, RID_BREAK, RID_CONTINUE, RID_RETURN, RID_GOTO,
00069 RID_SIZEOF,
00070
00071
00072 RID_ASM, RID_TYPEOF, RID_ALIGNOF, RID_ATTRIBUTE, RID_VA_ARG,
00073 RID_EXTENSION, RID_IMAGPART, RID_REALPART, RID_LABEL, RID_CHOOSE_EXPR,
00074 RID_TYPES_COMPATIBLE_P,
00075 RID_DFLOAT32, RID_DFLOAT64, RID_DFLOAT128,
00076
00077
00078 RID_FUNCTION_NAME, RID_PRETTY_FUNCTION_NAME, RID_C99_FUNCTION_NAME,
00079
00080
00081 RID_BOOL, RID_WCHAR, RID_CLASS,
00082 RID_PUBLIC, RID_PRIVATE, RID_PROTECTED,
00083 RID_TEMPLATE, RID_NULL, RID_CATCH,
00084 RID_DELETE, RID_FALSE, RID_NAMESPACE,
00085 RID_NEW, RID_OFFSETOF, RID_OPERATOR,
00086 RID_THIS, RID_THROW, RID_TRUE,
00087 RID_TRY, RID_TYPENAME, RID_TYPEID,
00088 RID_USING,
00089
00090
00091 RID_CONSTCAST, RID_DYNCAST, RID_REINTCAST, RID_STATCAST,
00092
00093
00094 RID_AT_ENCODE, RID_AT_END,
00095 RID_AT_CLASS, RID_AT_ALIAS, RID_AT_DEFS,
00096 RID_AT_PRIVATE, RID_AT_PROTECTED, RID_AT_PUBLIC,
00097 RID_AT_PROTOCOL, RID_AT_SELECTOR,
00098 RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH,
00099 RID_AT_FINALLY, RID_AT_SYNCHRONIZED,
00100 RID_AT_INTERFACE,
00101 RID_AT_IMPLEMENTATION,
00102
00103 RID_MAX,
00104
00105 RID_FIRST_MODIFIER = RID_STATIC,
00106 RID_LAST_MODIFIER = RID_ONEWAY,
00107
00108 RID_FIRST_AT = RID_AT_ENCODE,
00109 RID_LAST_AT = RID_AT_IMPLEMENTATION,
00110 RID_FIRST_PQ = RID_IN,
00111 RID_LAST_PQ = RID_ONEWAY
00112 };
00113
00114 #define OBJC_IS_AT_KEYWORD(rid) \
00115 ((unsigned int) (rid) >= (unsigned int) RID_FIRST_AT && \
00116 (unsigned int) (rid) <= (unsigned int) RID_LAST_AT)
00117
00118 #define OBJC_IS_PQ_KEYWORD(rid) \
00119 ((unsigned int) (rid) >= (unsigned int) RID_FIRST_PQ && \
00120 (unsigned int) (rid) <= (unsigned int) RID_LAST_PQ)
00121
00122
00123
00124 extern GTY ((length ("(int) RID_MAX"))) tree *ridpointers;
00125
00126
00127
00128 enum c_tree_index
00129 {
00130 CTI_WCHAR_TYPE,
00131 CTI_SIGNED_WCHAR_TYPE,
00132 CTI_UNSIGNED_WCHAR_TYPE,
00133 CTI_WINT_TYPE,
00134 CTI_SIGNED_SIZE_TYPE,
00135 CTI_UNSIGNED_PTRDIFF_TYPE,
00136 CTI_INTMAX_TYPE,
00137 CTI_UINTMAX_TYPE,
00138 CTI_WIDEST_INT_LIT_TYPE,
00139 CTI_WIDEST_UINT_LIT_TYPE,
00140
00141 CTI_CHAR_ARRAY_TYPE,
00142 CTI_WCHAR_ARRAY_TYPE,
00143 CTI_INT_ARRAY_TYPE,
00144 CTI_STRING_TYPE,
00145 CTI_CONST_STRING_TYPE,
00146
00147
00148 CTI_TRUTHVALUE_TYPE,
00149 CTI_TRUTHVALUE_TRUE,
00150 CTI_TRUTHVALUE_FALSE,
00151
00152 CTI_DEFAULT_FUNCTION_TYPE,
00153
00154
00155 CTI_FUNCTION_NAME_DECL,
00156 CTI_PRETTY_FUNCTION_NAME_DECL,
00157 CTI_C99_FUNCTION_NAME_DECL,
00158 CTI_SAVED_FUNCTION_NAME_DECLS,
00159
00160 CTI_VOID_ZERO,
00161
00162 CTI_NULL,
00163
00164 CTI_MAX
00165 };
00166
00167 #define C_RID_CODE(id) (((struct c_common_identifier *) (id))->node.rid_code)
00168
00169
00170
00171 struct c_common_identifier GTY(())
00172 {
00173 struct tree_common common;
00174 struct cpp_hashnode node;
00175 };
00176
00177 #define wchar_type_node c_global_trees[CTI_WCHAR_TYPE]
00178 #define signed_wchar_type_node c_global_trees[CTI_SIGNED_WCHAR_TYPE]
00179 #define unsigned_wchar_type_node c_global_trees[CTI_UNSIGNED_WCHAR_TYPE]
00180 #define wint_type_node c_global_trees[CTI_WINT_TYPE]
00181 #define signed_size_type_node c_global_trees[CTI_SIGNED_SIZE_TYPE]
00182 #define unsigned_ptrdiff_type_node c_global_trees[CTI_UNSIGNED_PTRDIFF_TYPE]
00183 #define intmax_type_node c_global_trees[CTI_INTMAX_TYPE]
00184 #define uintmax_type_node c_global_trees[CTI_UINTMAX_TYPE]
00185 #define widest_integer_literal_type_node c_global_trees[CTI_WIDEST_INT_LIT_TYPE]
00186 #define widest_unsigned_literal_type_node c_global_trees[CTI_WIDEST_UINT_LIT_TYPE]
00187
00188 #define truthvalue_type_node c_global_trees[CTI_TRUTHVALUE_TYPE]
00189 #define truthvalue_true_node c_global_trees[CTI_TRUTHVALUE_TRUE]
00190 #define truthvalue_false_node c_global_trees[CTI_TRUTHVALUE_FALSE]
00191
00192 #define char_array_type_node c_global_trees[CTI_CHAR_ARRAY_TYPE]
00193 #define wchar_array_type_node c_global_trees[CTI_WCHAR_ARRAY_TYPE]
00194 #define int_array_type_node c_global_trees[CTI_INT_ARRAY_TYPE]
00195 #define string_type_node c_global_trees[CTI_STRING_TYPE]
00196 #define const_string_type_node c_global_trees[CTI_CONST_STRING_TYPE]
00197
00198 #define default_function_type c_global_trees[CTI_DEFAULT_FUNCTION_TYPE]
00199
00200 #define function_name_decl_node c_global_trees[CTI_FUNCTION_NAME_DECL]
00201 #define pretty_function_name_decl_node c_global_trees[CTI_PRETTY_FUNCTION_NAME_DECL]
00202 #define c99_function_name_decl_node c_global_trees[CTI_C99_FUNCTION_NAME_DECL]
00203 #define saved_function_name_decls c_global_trees[CTI_SAVED_FUNCTION_NAME_DECLS]
00204
00205
00206 #define void_zero_node c_global_trees[CTI_VOID_ZERO]
00207
00208
00209 #define null_node c_global_trees[CTI_NULL]
00210
00211 extern GTY(()) tree c_global_trees[CTI_MAX];
00212
00213
00214
00215 struct sorted_fields_type GTY(())
00216 {
00217 int len;
00218 tree GTY((length ("%h.len"))) elts[1];
00219 };
00220
00221
00222
00223 #define C_DECLARED_LABEL_FLAG(label) TREE_LANG_FLAG_1 (label)
00224
00225 typedef enum c_language_kind
00226 {
00227 clk_c = 0,
00228 clk_objc = 1,
00229 clk_cxx = 2,
00230 clk_objcxx = 3
00231 }
00232 c_language_kind;
00233
00234
00235
00236 extern c_language_kind c_language;
00237
00238 #define c_dialect_cxx() (c_language & clk_cxx)
00239 #define c_dialect_objc() (c_language & clk_objc)
00240
00241
00242
00243 struct stmt_tree_s GTY(()) {
00244
00245 tree x_cur_stmt_list;
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261 int stmts_are_full_exprs_p;
00262 };
00263
00264 typedef struct stmt_tree_s *stmt_tree;
00265
00266
00267
00268
00269 struct c_language_function GTY(()) {
00270
00271
00272 struct stmt_tree_s x_stmt_tree;
00273 };
00274
00275
00276
00277
00278
00279 #define cur_stmt_list (current_stmt_tree ()->x_cur_stmt_list)
00280
00281
00282
00283
00284
00285 extern int (*lang_missing_noreturn_ok_p) (tree);
00286
00287
00288
00289 extern void (*lang_post_pch_load) (void);
00290
00291 extern void push_file_scope (void);
00292 extern void pop_file_scope (void);
00293 extern stmt_tree current_stmt_tree (void);
00294 extern tree push_stmt_list (void);
00295 extern tree pop_stmt_list (tree);
00296 extern tree add_stmt (tree);
00297 extern void push_cleanup (tree, tree, bool);
00298 extern tree pushdecl_top_level (tree);
00299 extern tree pushdecl (tree);
00300 extern tree build_modify_expr (tree, enum tree_code, tree);
00301 extern tree build_indirect_ref (tree, const char *);
00302
00303 extern int c_expand_decl (tree);
00304
00305 extern int field_decl_cmp (const void *, const void *);
00306 extern void resort_sorted_fields (void *, void *, gt_pointer_operator,
00307 void *);
00308 extern bool has_c_linkage (tree decl);
00309
00310
00311
00312
00313
00314 extern int flag_preprocess_only;
00315
00316
00317
00318
00319 extern int flag_nil_receivers;
00320
00321
00322
00323 extern int flag_objc_exceptions;
00324
00325
00326 extern int flag_objc_sjlj_exceptions;
00327
00328
00329
00330
00331 extern int flag_zero_link;
00332
00333
00334
00335
00336 extern int flag_replace_objc_classes;
00337
00338
00339
00340 extern char flag_no_line_commands;
00341
00342
00343
00344
00345 extern char flag_no_output;
00346
00347
00348
00349
00350 extern char flag_dump_macros;
00351
00352
00353
00354 extern char flag_dump_includes;
00355
00356
00357
00358 extern bool flag_pch_preprocess;
00359
00360
00361
00362
00363 extern const char *pch_file;
00364
00365
00366
00367
00368 extern int flag_iso;
00369
00370
00371
00372
00373 extern int flag_undef;
00374
00375
00376
00377 extern int flag_no_builtin;
00378
00379
00380
00381
00382 extern int flag_no_nonansi_builtin;
00383
00384
00385
00386 extern int flag_short_double;
00387
00388
00389
00390 extern int flag_short_wchar;
00391
00392
00393 extern int flag_ms_extensions;
00394
00395
00396
00397 extern int flag_no_asm;
00398
00399
00400
00401
00402 extern int flag_const_strings;
00403
00404
00405
00406 extern int flag_signed_bitfields;
00407
00408
00409
00410 extern int warn_unknown_pragmas;
00411
00412
00413
00414
00415 extern int warn_format;
00416
00417
00418
00419
00420
00421
00422
00423
00424 extern int flag_cond_mismatch;
00425
00426
00427
00428 extern int flag_isoc94;
00429
00430
00431
00432 extern int flag_isoc99;
00433
00434
00435
00436 extern int flag_hosted;
00437
00438
00439
00440 extern int warn_main;
00441
00442
00443
00444
00445
00446
00447
00448
00449 extern int flag_gen_declaration;
00450
00451
00452
00453
00454
00455 extern int print_struct_values;
00456
00457
00458
00459 extern const char *constant_string_class_name;
00460
00461
00462
00463
00464
00465
00466
00467 extern int flag_no_gnu_keywords;
00468
00469
00470
00471
00472 extern int flag_implement_inlines;
00473
00474
00475
00476 extern int flag_implicit_templates;
00477
00478
00479
00480
00481
00482 extern int flag_implicit_inline_templates;
00483
00484
00485
00486
00487 extern int flag_use_repository;
00488
00489
00490
00491
00492 extern int flag_optional_diags;
00493
00494
00495
00496 extern int flag_elide_constructors;
00497
00498
00499
00500
00501 extern int flag_default_inline;
00502
00503
00504
00505
00506 extern int flag_rtti;
00507
00508
00509
00510
00511
00512
00513 extern int flag_conserve_space;
00514
00515
00516
00517 extern int flag_access_control;
00518
00519
00520
00521
00522 extern int flag_check_new;
00523
00524
00525
00526
00527
00528
00529
00530
00531 extern int flag_new_for_scope;
00532
00533
00534
00535
00536
00537 extern int flag_weak;
00538
00539
00540
00541
00542
00543
00544 extern int flag_working_directory;
00545
00546
00547
00548
00549 extern int flag_use_cxa_atexit;
00550
00551
00552
00553
00554 extern int flag_use_cxa_get_exception_ptr;
00555
00556
00557
00558
00559 extern int flag_permissive;
00560
00561
00562
00563
00564
00565
00566 extern int flag_enforce_eh_specs;
00567
00568
00569
00570
00571 extern int flag_threadsafe_statics;
00572
00573
00574
00575 extern int warn_implicit;
00576
00577
00578
00579
00580
00581 extern int warn_strict_null_sentinel;
00582
00583
00584
00585
00586
00587 extern int max_tinst_depth;
00588
00589
00590
00591
00592 extern int skip_evaluation;
00593
00594
00595
00596 #define C_TYPE_OBJECT_P(type) \
00597 (TREE_CODE (type) != FUNCTION_TYPE && TYPE_SIZE (type))
00598
00599 #define C_TYPE_INCOMPLETE_P(type) \
00600 (TREE_CODE (type) != FUNCTION_TYPE && TYPE_SIZE (type) == 0)
00601
00602 #define C_TYPE_FUNCTION_P(type) \
00603 (TREE_CODE (type) == FUNCTION_TYPE)
00604
00605
00606
00607 #define C_TYPE_OBJECT_OR_INCOMPLETE_P(type) \
00608 (!C_TYPE_FUNCTION_P (type))
00609
00610
00611 extern const struct attribute_spec c_common_attribute_table[];
00612 extern const struct attribute_spec c_common_format_attribute_table[];
00613
00614
00615
00616
00617
00618
00619 extern tree (*make_fname_decl) (tree, int);
00620
00621 extern tree identifier_global_value (tree);
00622 extern void record_builtin_type (enum rid, const char *, tree);
00623 extern tree build_void_list_node (void);
00624 extern void start_fname_decls (void);
00625 extern void finish_fname_decls (void);
00626 extern const char *fname_as_string (int);
00627 extern tree fname_decl (unsigned, tree);
00628
00629 extern void check_function_arguments (tree, tree, tree);
00630 extern void check_function_arguments_recurse (void (*)
00631 (void *, tree,
00632 unsigned HOST_WIDE_INT),
00633 void *, tree,
00634 unsigned HOST_WIDE_INT);
00635 extern void check_function_format (tree, tree);
00636 extern void set_Wformat (int);
00637 extern tree handle_format_attribute (tree *, tree, tree, int, bool *);
00638 extern tree handle_format_arg_attribute (tree *, tree, tree, int, bool *);
00639 extern int c_common_handle_option (size_t code, const char *arg, int value);
00640 extern bool c_common_missing_argument (const char *opt, size_t code);
00641 extern tree c_common_type_for_mode (enum machine_mode, int);
00642 extern tree c_common_type_for_size (unsigned int, int);
00643 extern tree c_common_unsigned_type (tree);
00644 extern tree c_common_signed_type (tree);
00645 extern tree c_common_signed_or_unsigned_type (int, tree);
00646 extern tree c_build_bitfield_integer_type (unsigned HOST_WIDE_INT, int);
00647 extern tree c_common_truthvalue_conversion (tree);
00648 extern void c_apply_type_quals_to_decl (int, tree);
00649 extern tree c_sizeof_or_alignof_type (tree, bool, int);
00650 extern tree c_alignof_expr (tree);
00651
00652
00653 extern void binary_op_error (enum tree_code);
00654 extern tree fix_string_type (tree);
00655 struct varray_head_tag;
00656 extern void constant_expression_warning (tree);
00657 extern void strict_aliasing_warning(tree, tree, tree);
00658 extern void empty_body_warning (tree, tree);
00659 extern tree convert_and_check (tree, tree);
00660 extern void overflow_warning (tree);
00661 extern bool c_determine_visibility (tree);
00662 extern bool same_scalar_type_ignoring_signedness (tree, tree);
00663
00664 #define c_sizeof(T) c_sizeof_or_alignof_type (T, true, 1)
00665 #define c_alignof(T) c_sizeof_or_alignof_type (T, false, 1)
00666
00667
00668
00669
00670 extern tree shorten_compare (tree *, tree *, tree *, enum tree_code *);
00671
00672 extern tree pointer_int_sum (enum tree_code, tree, tree);
00673 extern unsigned int min_precision (tree, int);
00674
00675
00676 extern tree c_build_qualified_type (tree, int);
00677
00678
00679
00680 extern void c_common_nodes_and_builtins (void);
00681
00682 extern void set_builtin_user_assembler_name (tree decl, const char *asmspec);
00683
00684 extern void disable_builtin_function (const char *);
00685
00686 extern void set_compound_literal_name (tree decl);
00687
00688 extern tree build_va_arg (tree, tree);
00689
00690 extern unsigned int c_common_init_options (unsigned int, const char **);
00691 extern bool c_common_post_options (const char **);
00692 extern bool c_common_init (void);
00693 extern void c_common_finish (void);
00694 extern void c_common_parse_file (int);
00695 extern HOST_WIDE_INT c_common_get_alias_set (tree);
00696 extern void c_register_builtin_type (tree, const char*);
00697 extern bool c_promoting_integer_type_p (tree);
00698 extern int self_promoting_args_p (tree);
00699 extern tree strip_array_types (tree);
00700 extern tree strip_pointer_operator (tree);
00701 extern HOST_WIDE_INT c_common_to_target_charset (HOST_WIDE_INT);
00702
00703
00704 extern void c_parse_file (void);
00705
00706 extern void finish_file (void);
00707
00708
00709
00710
00711
00712
00713 #define STATEMENT_LIST_STMT_EXPR(NODE) \
00714 TREE_LANG_FLAG_1 (STATEMENT_LIST_CHECK (NODE))
00715
00716
00717 #define STATEMENT_LIST_HAS_LABEL(NODE) \
00718 TREE_LANG_FLAG_3 (STATEMENT_LIST_CHECK (NODE))
00719
00720
00721 #define COMPOUND_LITERAL_EXPR_DECL_STMT(NODE) \
00722 TREE_OPERAND (COMPOUND_LITERAL_EXPR_CHECK (NODE), 0)
00723 #define COMPOUND_LITERAL_EXPR_DECL(NODE) \
00724 DECL_EXPR_DECL (COMPOUND_LITERAL_EXPR_DECL_STMT (NODE))
00725
00726 #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) SYM,
00727
00728 enum c_tree_code {
00729 C_DUMMY_TREE_CODE = LAST_AND_UNUSED_TREE_CODE,
00730 #include "c-common.def"
00731 LAST_C_TREE_CODE
00732 };
00733
00734 #undef DEFTREECODE
00735
00736 extern int anon_aggr_type_p (tree);
00737
00738
00739
00740 #define DECL_ANON_UNION_ELEMS(NODE) DECL_ARGUMENTS ((NODE))
00741
00742
00743 #define DECL_C_BIT_FIELD(NODE) \
00744 (DECL_LANG_FLAG_4 (FIELD_DECL_CHECK (NODE)) == 1)
00745 #define SET_DECL_C_BIT_FIELD(NODE) \
00746 (DECL_LANG_FLAG_4 (FIELD_DECL_CHECK (NODE)) = 1)
00747 #define CLEAR_DECL_C_BIT_FIELD(NODE) \
00748 (DECL_LANG_FLAG_4 (FIELD_DECL_CHECK (NODE)) = 0)
00749
00750 extern void emit_local_var (tree);
00751 extern tree do_case (tree, tree);
00752 extern tree build_stmt (enum tree_code, ...);
00753 extern tree build_case_label (tree, tree, tree);
00754
00755
00756
00757
00758 extern tree build_unary_op (enum tree_code, tree, int);
00759 extern tree build_binary_op (enum tree_code, tree, tree, int);
00760 extern tree perform_integral_promotions (tree);
00761
00762
00763
00764
00765 extern tree default_conversion (tree);
00766
00767
00768
00769
00770 extern tree common_type (tree, tree);
00771
00772 extern tree decl_constant_value (tree);
00773
00774
00775 extern tree boolean_increment (enum tree_code, tree);
00776
00777 extern int case_compare (splay_tree_key, splay_tree_key);
00778
00779 extern tree c_add_case_label (splay_tree, tree, tree, tree, tree);
00780
00781 extern void c_do_switch_warnings (splay_tree, location_t, tree, tree);
00782
00783 extern tree build_function_call (tree, tree);
00784
00785 extern tree resolve_overloaded_builtin (tree, tree);
00786
00787 extern tree finish_label_address_expr (tree);
00788
00789
00790
00791 extern tree lookup_label (tree);
00792 extern tree lookup_name (tree);
00793
00794 extern int vector_types_convertible_p (tree t1, tree t2);
00795
00796 extern rtx c_expand_expr (tree, rtx, enum machine_mode, int, rtx *);
00797
00798 extern tree c_staticp (tree);
00799
00800 extern void init_c_lex (void);
00801
00802 extern void c_cpp_builtins (cpp_reader *);
00803
00804
00805
00806 extern GTY(()) int pending_lang_change;
00807
00808
00809
00810 struct c_fileinfo
00811 {
00812 int time;
00813
00814
00815
00816
00817
00818
00819
00820 short interface_only;
00821 short interface_unknown;
00822 };
00823
00824 struct c_fileinfo *get_fileinfo (const char *);
00825 extern void dump_time_statistics (void);
00826
00827 extern bool c_dump_tree (void *, tree);
00828
00829 extern void c_warn_unused_result (tree *);
00830
00831 extern void verify_sequence_points (tree);
00832
00833 extern tree fold_offsetof (tree, tree);
00834
00835
00836
00837
00838 enum lvalue_use {
00839 lv_assign,
00840 lv_increment,
00841 lv_decrement,
00842 lv_addressof,
00843 lv_asm
00844 };
00845
00846 extern void lvalue_error (enum lvalue_use);
00847
00848 extern int complete_array_type (tree *, tree, bool);
00849
00850 extern tree builtin_type_for_size (int, bool);
00851
00852 extern void warn_array_subscript_with_type_char (tree);
00853
00854
00855 extern void c_genericize (tree);
00856 extern int c_gimplify_expr (tree *, tree *, tree *);
00857 extern tree c_build_bind_expr (tree, tree);
00858
00859
00860 extern void pch_init (void);
00861 extern int c_common_valid_pch (cpp_reader *pfile, const char *name, int fd);
00862 extern void c_common_read_pch (cpp_reader *pfile, const char *name, int fd,
00863 const char *orig);
00864 extern void c_common_write_pch (void);
00865 extern void c_common_no_more_pch (void);
00866 extern void c_common_pch_pragma (cpp_reader *pfile, const char *);
00867 extern void c_common_print_pch_checksum (FILE *f);
00868
00869
00870 extern const unsigned char executable_checksum[16];
00871
00872 extern void builtin_define_with_value (const char *, const char *, int);
00873 extern void c_stddef_cpp_builtins (void);
00874 extern void fe_file_change (const struct line_map *);
00875 extern void c_parse_error (const char *, enum cpp_ttype, tree);
00876
00877
00878
00879
00880
00881 extern tree objc_is_class_name (tree);
00882 extern tree objc_is_object_ptr (tree);
00883 extern void objc_check_decl (tree);
00884 extern int objc_is_reserved_word (tree);
00885 extern bool objc_compare_types (tree, tree, int, tree);
00886 extern void objc_volatilize_decl (tree);
00887 extern bool objc_type_quals_match (tree, tree);
00888 extern tree objc_rewrite_function_call (tree, tree);
00889 extern tree objc_message_selector (void);
00890 extern tree objc_lookup_ivar (tree, tree);
00891 extern void objc_clear_super_receiver (void);
00892 extern int objc_is_public (tree, tree);
00893 extern tree objc_is_id (tree);
00894 extern void objc_declare_alias (tree, tree);
00895 extern void objc_declare_class (tree);
00896 extern void objc_declare_protocols (tree);
00897 extern tree objc_build_message_expr (tree);
00898 extern tree objc_finish_message_expr (tree, tree, tree);
00899 extern tree objc_build_selector_expr (tree);
00900 extern tree objc_build_protocol_expr (tree);
00901 extern tree objc_build_encode_expr (tree);
00902 extern tree objc_build_string_object (tree);
00903 extern tree objc_get_protocol_qualified_type (tree, tree);
00904 extern tree objc_get_class_reference (tree);
00905 extern tree objc_get_class_ivars (tree);
00906 extern void objc_start_class_interface (tree, tree, tree);
00907 extern void objc_start_category_interface (tree, tree, tree);
00908 extern void objc_start_protocol (tree, tree);
00909 extern void objc_continue_interface (void);
00910 extern void objc_finish_interface (void);
00911 extern void objc_start_class_implementation (tree, tree);
00912 extern void objc_start_category_implementation (tree, tree);
00913 extern void objc_continue_implementation (void);
00914 extern void objc_finish_implementation (void);
00915 extern void objc_set_visibility (int);
00916 extern void objc_set_method_type (enum tree_code);
00917 extern tree objc_build_method_signature (tree, tree, tree, bool);
00918 extern void objc_add_method_declaration (tree);
00919 extern void objc_start_method_definition (tree);
00920 extern void objc_finish_method_definition (tree);
00921 extern void objc_add_instance_variable (tree);
00922 extern tree objc_build_keyword_decl (tree, tree, tree);
00923 extern tree objc_build_throw_stmt (tree);
00924 extern void objc_begin_try_stmt (location_t, tree);
00925 extern tree objc_finish_try_stmt (void);
00926 extern void objc_begin_catch_clause (tree);
00927 extern void objc_finish_catch_clause (void);
00928 extern void objc_build_finally_clause (location_t, tree);
00929 extern tree objc_build_synchronized (location_t, tree, tree);
00930 extern int objc_static_init_needed_p (void);
00931 extern tree objc_generate_static_init_call (tree);
00932 extern tree objc_generate_write_barrier (tree, enum tree_code, tree);
00933
00934
00935
00936 extern void *objc_get_current_scope (void);
00937 extern void objc_mark_locals_volatile (void *);
00938
00939
00940 extern void init_pp_output (FILE *);
00941 extern void preprocess_file (cpp_reader *);
00942 extern void pp_file_change (const struct line_map *);
00943 extern void pp_dir_change (cpp_reader *, const char *);
00944 extern bool check_missing_format_attribute (tree, tree);
00945
00946
00947 extern tree c_finish_omp_master (tree);
00948 extern tree c_finish_omp_critical (tree, tree);
00949 extern tree c_finish_omp_ordered (tree);
00950 extern void c_finish_omp_barrier (void);
00951 extern tree c_finish_omp_atomic (enum tree_code, tree, tree);
00952 extern void c_finish_omp_flush (void);
00953 extern tree c_finish_omp_for (location_t, tree, tree, tree, tree, tree, tree);
00954 extern void c_split_parallel_clauses (tree, tree *, tree *);
00955 extern enum omp_clause_default_kind c_omp_predetermined_sharing (tree);
00956
00957
00958 extern bool c_omp_sharing_predetermined (tree);
00959 extern tree c_omp_remap_decl (tree, bool);
00960
00961
00962
00963
00964
00965
00966 #ifndef GCC_DIAG_STYLE
00967 #define GCC_DIAG_STYLE __gcc_cdiag__
00968 #endif
00969
00970 #endif