#include "config.h"#include "system.h"#include "coretypes.h"#include "version.h"#include "cpplib.h"#include "tree.h"#include "flags.h"#include "c-common.h"#include "output.h"#include "toplev.h"#include "debug.h"#include "c-pragma.h"#include "ggc.h"#include "langhooks.h"#include "hosthooks.h"#include "target.h"

Go to the source code of this file.
Data Types | |
| type | c_pch_matching |
| type | c_pch_validity |
| type | c_pch_header |
Defines | |
| #define | IDENT_LENGTH 8 |
| #define | O_BINARY 0 |
Enumerations | |
| enum | { MATCH_SIZE = ARRAY_SIZE (pch_matching) } |
Functions/Subroutines | |
| static const char * | get_ident (void) |
| void | pch_init (void) |
| void | c_common_write_pch (void) |
| int | c_common_valid_pch (cpp_reader *pfile, const char *name, int fd) |
| void | c_common_read_pch (cpp_reader *pfile, const char *name, int fd, const char *orig_name ATTRIBUTE_UNUSED) |
| void | c_common_no_more_pch (void) |
| void | c_common_pch_pragma (cpp_reader *pfile, const char *name) |
| void | c_common_print_pch_checksum (FILE *f) |
Variables | |
| static struct c_pch_matching | pch_matching [] |
| static const char | no_checksum [16] = { 0 } |
| static FILE * | pch_outfile |
| static long | asm_file_startpos |
| void(* | lang_post_pch_load )(void) |
Definition at line 428 of file c-pch.c.
References cpp_get_callbacks(), NULL, parse_in, and cpp_callbacks::valid_pch.
Referenced by c_lex_with_flags(), and cp_lexer_new_main().
| void c_common_pch_pragma | ( | cpp_reader * | pfile, | |
| const char * | name | |||
| ) |
Definition at line 444 of file c-pch.c.
References c_common_read_pch(), c_common_valid_pch(), close, cpp_get_options(), error(), fatal_error(), fd, inform(), O_BINARY, O_RDONLY, and open.
Definition at line 474 of file c-pch.c.
References executable_checksum, fprintf(), fputs(), i, and putc().
Referenced by c_common_handle_option(), c_common_init(), and pch_init().
| void c_common_read_pch | ( | cpp_reader * | pfile, | |
| const char * | name, | |||
| int | fd, | |||
| const char *orig_name | ATTRIBUTE_UNUSED | |||
| ) |
Definition at line 363 of file c-pch.c.
References asm_out_file, c_pch_header::asm_size, buf, CPP_DL_ERROR, cpp_errno(), cpp_get_callbacks(), cpp_prepare_state(), cpp_read_state(), f, fclose(), fdopen, flag_preprocess_only, fread, free(), fseek, fwrite, gt_pch_restore(), h, lang_post_pch_load, NULL, parse_in, SEEK_CUR, size, cpp_callbacks::valid_pch, and XNEWVEC.
| int c_common_valid_pch | ( | cpp_reader * | pfile, | |
| const char * | name, | |||
| int | fd | |||
| ) |
Definition at line 228 of file c-pch.c.
References CPP_DL_WARNING, cpp_error(), cpp_get_options(), cpp_valid_state(), c_pch_validity::debug_info_type, debug_type_names, executable_checksum, fatal_error(), free(), gcc_assert, get_ident(), host_machine, c_pch_validity::host_machine_length, i, ident, IDENT_LENGTH, c_pch_validity::match, MATCH_SIZE, memcmp, msg, no_checksum, NO_DEBUG, NULL, c_pch_validity::pch_init, pch_init(), pch_matching, gcc_target::pch_valid_p, read, result, strlen(), c_pch_validity::target_data_length, target_machine, c_pch_validity::target_machine_length, targetm, c_pch_validity::version_length, version_string, cpp_options::warn_invalid_pch, write_symbols, and xmalloc().
Referenced by c_common_pch_pragma(), init_c_lex(), and init_pp_output().
Definition at line 173 of file c-pch.c.
References asm_file_end(), asm_file_name, asm_file_startpos, asm_out_file, c_pch_header::asm_size, buf, cpp_write_pch_deps(), cpp_write_pch_state(), debug_hooks, fatal_error(), fclose(), fread, free(), fseek, ftell(), fwrite, get_ident(), gt_pch_save(), h, gcc_debug_hooks::handle_pch, IDENT_LENGTH, parse_in, pch_file, pch_outfile, SEEK_END, SEEK_SET, size, xmalloc(), and XNEWVEC.
Referenced by cp_finish_file(), and pop_file_scope().
| static const char * get_ident | ( | void | ) | [static] |
Definition at line 111 of file c-pch.c.
References ASM_COMMENT_START, asm_file_name, asm_file_startpos, asm_out_file, c_common_print_pch_checksum(), cpp_save_state(), debug_hooks, c_pch_validity::debug_info_type, executable_checksum, f, fatal_error(), c_pch_matching::flag_var, flag_verbose_asm, fopen, fprintf(), fputc(), ftell(), fwrite, gcc_assert, gcc_target::get_pch_validity, gcc_debug_hooks::handle_pch, host_machine, c_pch_validity::host_machine_length, i, IDENT_LENGTH, c_pch_validity::match, MATCH_SIZE, memcmp, no_checksum, NULL, parse_in, pch_file, c_pch_validity::pch_init, pch_init(), pch_matching, pch_outfile, strcmp(), strlen(), c_pch_validity::target_data_length, target_machine, c_pch_validity::target_machine_length, targetm, c_pch_validity::version_length, version_string, and write_symbols.
Referenced by c_common_parse_file(), c_common_valid_pch(), and pch_init().
long asm_file_startpos [static] |
Referenced by c_common_read_pch(), and init_repo().
const char no_checksum[16] = { 0 } [static] |
struct c_pch_matching pch_matching[] [static] |
FILE* pch_outfile [static] |
1.5.6