osprey/kg++fe/gnu/c-lex.c File Reference

#include "config.h"
#include "system.h"
#include "real.h"
#include "rtl.h"
#include "tree.h"
#include "expr.h"
#include "input.h"
#include "output.h"
#include "c-tree.h"
#include "c-common.h"
#include "flags.h"
#include "timevar.h"
#include "cpplib.h"
#include "c-pragma.h"
#include "toplev.h"
#include "intl.h"
#include "tm_p.h"
#include "splay-tree.h"
#include "debug.h"

Include dependency graph for c-lex.c:

Go to the source code of this file.

Defines

#define WCHAR_TYPE_SIZE   TYPE_PRECISION (wchar_type_node)
#define WCHAR_BYTES   (WCHAR_TYPE_SIZE / BITS_PER_UNIT)

Functions/Subroutines

static tree interpret_integer PARAMS ((const cpp_token *, unsigned int))
static enum integer_type_kind
narrowest_unsigned_type 
PARAMS ((tree, unsigned int))
static tree lex_string PARAMS ((const unsigned char *, unsigned int, int))
static tree lex_charconst PARAMS ((const cpp_token *))
static void update_header_times PARAMS ((const char *))
static int dump_one_header PARAMS ((splay_tree_node, void *))
static void cb_line_change PARAMS ((cpp_reader *, const cpp_token *, int))
static void cb_ident PARAMS ((cpp_reader *, unsigned int, const cpp_string *))
static void cb_file_change PARAMS ((cpp_reader *, const struct line_map *))
static void cb_def_pragma PARAMS ((cpp_reader *, unsigned int))
static void cb_define PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *))
const char * init_c_lex (char *filename) const
void c_common_parse_file (set_yydebug)
struct c_fileinfoget_fileinfo (char *name) const
static void update_header_times (char *name) const
static int dump_one_header (splay_tree_node n, dummy)
void dump_time_statistics ()
static void cb_ident (pfile, line, str)
static void cb_line_change (pfile, const cpp_token *token, int parsing_args)
static void cb_file_change (pfile, const struct line_map *new_map)
static void cb_def_pragma (cpp_reader *pfile, unsigned int line)
static void cb_define (cpp_reader *pfile, unsigned int line, cpp_hashnode *node)
static void cb_undef (pfile, unsigned int line, cpp_hashnode *node)
int c_lex (tree *value)
static enum integer_type_kind narrowest_unsigned_type (tree value, unsigned int flags)
static enum integer_type_kind narrowest_signed_type (tree value, unsigned int flags)
static tree interpret_integer (cpp_token *token, unsigned int flags) const
static tree interpret_float (cpp_token *token, unsigned int flags) const
static tree lex_string (unsigned char *str, unsigned int len, int wide) const
static tree lex_charconst (cpp_token *token) const

Variables

static struct line_mapmap
static unsigned int src_lineno
static int header_time
static int body_time
static splay_tree file_info_tree
FILEasm_out_file
int pending_lang_change
int c_header_level
static int ignore_escape_flag


Define Documentation

#define WCHAR_BYTES   (WCHAR_TYPE_SIZE / BITS_PER_UNIT)

Definition at line 75 of file c-lex.c.

Referenced by lex_string().

#define WCHAR_TYPE_SIZE   TYPE_PRECISION (wchar_type_node)

Definition at line 72 of file c-lex.c.


Function Documentation

void c_common_parse_file ( set_yydebug   ) 

int c_lex ( tree value  ) 

static void cb_def_pragma ( cpp_reader pfile,
unsigned int  line 
) [static]

static void cb_define ( cpp_reader pfile,
unsigned int  line,
cpp_hashnode node 
) [static]

static void cb_file_change ( pfile  ,
const struct line_map new_map 
) [static]

static void cb_ident ( pfile  ,
line  ,
str   
) [static]

static void cb_line_change ( pfile  ,
const cpp_token token,
int  parsing_args 
) [static]

static void cb_undef ( pfile  ,
unsigned int  line,
cpp_hashnode node 
) [static]

Definition at line 381 of file c-lex.c.

References debug_hooks, NODE_NAME, SOURCE_LINE, and gcc_debug_hooks::undef.

Referenced by init_c_lex(), init_pp_output(), and setup_callbacks().

static int dump_one_header ( splay_tree_node  n,
dummy   
) [static]

Definition at line 212 of file c-lex.c.

References print_time().

Referenced by dump_time_statistics().

void dump_time_statistics ( void   ) 

Definition at line 222 of file c-lex.c.

Referenced by cp_finish_file(), and finish_file().

struct c_fileinfo* get_fileinfo ( char *  name  )  const [read]

const char* init_c_lex ( char *  filename  )  const

static tree interpret_float ( cpp_token token,
unsigned int  flags 
) const [static]

static tree interpret_integer ( cpp_token token,
unsigned int  flags 
) const [static]

static tree lex_charconst ( cpp_token token  )  const [static]

static tree lex_string ( unsigned char *  str,
unsigned int  len,
int  wide 
) const [static]

static enum integer_type_kind narrowest_signed_type ( tree  value,
unsigned int  flags 
) [static]

static enum integer_type_kind narrowest_unsigned_type ( tree  value,
unsigned int  flags 
) [static]

static void cb_define PARAMS ( (cpp_reader *, unsigned int, cpp_hashnode *)   )  [static]

static void cb_def_pragma PARAMS ( (cpp_reader *, unsigned int)   )  [static]

static void cb_file_change PARAMS ( (cpp_reader *, const struct line_map *)   )  [static]

static void cb_ident PARAMS ( (cpp_reader *, unsigned int, const cpp_string *)   )  [static]

static void cb_line_change PARAMS ( (cpp_reader *, const cpp_token *, int)   )  [static]

static int dump_one_header PARAMS ( (splay_tree_node, void *)   )  [static]

static void update_header_times PARAMS ( (const char *)   )  [static]

Definition at line 635 of file mips-tfile.c.

static tree lex_charconst PARAMS ( (const cpp_token *)   )  [static]

static tree lex_string PARAMS ( (const unsigned char *, unsigned int, int)   )  [static]

static enum integer_type_kind narrowest_unsigned_type PARAMS ( (tree, unsigned int)   )  [static]

static tree interpret_integer PARAMS ( (const cpp_token *, unsigned int)   )  [static]

static void update_header_times ( char *  name  )  const [static]


Variable Documentation

Definition at line 1724 of file toplev.c.

Referenced by a29k_asm_named_section(), alpha_file_start(), app_disable(), app_enable(), arc_assemble_integer(), arc_file_start(), arm_assemble_integer(), arm_elf_asm_constructor(), arm_file_end(), arm_output_epilogue(), arm_output_function_epilogue(), asm_emit_uninitialised(), asm_fprintf(), assemble_alias(), assemble_align(), assemble_asm(), assemble_constant_align(), assemble_constant_contents(), assemble_end_function(), assemble_external(), assemble_external_libcall(), assemble_integer_with_op(), assemble_label(), assemble_start_function(), assemble_static_space(), assemble_string(), assemble_variable(), assemble_variable_contents(), assemble_vtable_entry(), assemble_vtable_inherit(), assemble_zeros(), avr_asm_out_ctor(), avr_asm_out_dtor(), avr_assemble_integer(), avr_file_end(), avr_file_start(), avr_output_progmem_section_asm_op(), bfin_assemble_integer(), build_mips16_call_stub(), build_mips16_function_stub(), c4x_asm_named_section(), c4x_file_end(), c4x_file_start(), c_common_read_pch(), c_common_write_pch(), cb_ident(), clipper_movstr(), clix_asm_out_constructor(), collect2_eh_frame_section(), cris_setup_incoming_varargs(), darwin_asm_named_section(), darwin_assemble_visibility(), darwin_file_end(), darwin_file_start(), darwin_mark_decl_preserved(), data_section(), default_assemble_visibility(), default_coff_asm_named_section(), default_eh_frame_section(), default_elf_asm_named_section(), default_external_libcall(), default_file_start(), default_pe_asm_named_section(), default_stabs_asm_out_constructor(), default_stabs_asm_out_destructor(), do_assemble_alias(), double_reg_from_memory(), double_reg_to_memory(), dw2_asm_output_addr(), dw2_asm_output_addr_rtx(), dw2_asm_output_data(), dw2_asm_output_data_sleb128(), dw2_asm_output_data_uleb128(), dw2_asm_output_delta(), dw2_asm_output_delta_uleb128(), dw2_asm_output_encoded_addr_rtx(), dw2_asm_output_nstring(), dw2_asm_output_offset(), dw2_assemble_integer(), dw2_output_indirect_constant_1(), elxsi_assemble_integer(), emit_a_shift(), emit_common(), emit_local(), emit_pic_helper(), emit_safe_across_calls(), emit_tls_common(), ffelex_hash_(), final_end_function(), final_prescan_insn(), final_scan_insn(), frv_assemble_integer(), frv_final_prescan_insn(), globalize_decl(), GTY(), h8300_asm_named_section(), h8300_file_end(), h8300_file_start(), handle_class_ref(), handle_impent(), i386_pe_asm_named_section(), i386_pe_file_end(), i386_solaris_elf_named_section(), i860_file_start(), ia64_assemble_integer(), ia64_hpux_file_end(), ia64_initialize_trampoline(), ix86_file_end(), load_pic_register(), m32c_asm_integer(), m32r_file_start(), m68hc11_asm_out_constructor(), m68hc11_asm_out_destructor(), m68hc11_file_start(), m68k_coff_asm_named_section(), machopic_asm_out_constructor(), machopic_asm_out_destructor(), machopic_output_indirection(), make_decl_rtl(), mcore_expand_prolog(), mcore_external_libcall(), mcore_output_call(), mcore_output_jump_label_table(), mcore_print_operand(), mergeable_string_section(), mips_assemble_integer(), mips_file_end(), mips_file_start(), mips_output_conditional_branch(), mips_output_function_epilogue(), mmix_assemble_integer(), mmix_file_start(), mn10300_file_start(), nextstep_asm_out_constructor(), nextstep_asm_out_destructor(), output_270(), output_272(), output_681(), output_854(), output_a_shift(), output_address(), output_arg_descriptor(), output_asm_insn(), output_asm_label(), output_asm_name(), output_asm_operand_names(), output_block_move(), output_branch(), output_call(), output_cbranch(), output_constant(), output_constant_def_contents(), output_constant_pool(), output_constant_pool_1(), output_constructor(), output_deferred_plabels(), output_far_jump(), output_file_start(), output_func_start_profiler(), output_function_exception_table(), output_indirect_call(), output_jump_label_table(), output_label(), output_lbranch(), output_millicode_call(), output_move_himode(), output_operand(), output_pic_addr_const(), output_restore(), output_return(), output_scc_di(), output_section_asm_op(), output_set_got(), output_shift(), output_sibcall(), pa_assemble_integer(), pa_file_start_file(), pa_file_start_mcount(), pa_hpux64_gas_file_start(), pch_init(), pdp11_assemble_integer(), pj_expand_prologue(), pj_output_rval(), pj_print_cond(), print_slot(), process_epilogue(), readonly_data_section(), rest_of_decl_compilation(), rest_of_handle_final(), rs6000_assemble_integer(), rs6000_file_start(), s390_assemble_integer(), sh_asm_named_section(), sh_file_start(), sparc_output_addr_diff_vec(), sparc_output_addr_vec(), sparc_output_deferred_case_vectors(), text_section(), th_asm_file_end(), th_asm_file_start(), thumb_final_prescan_insn(), thumb_load_double_from_address(), thumb_unexpanded_epilogue(), unlikely_text_section(), use_thunk(), vax_file_start(), VEC(), VPARAMS(), weak_finish(), weak_finish_1(), and x86_file_start().

int body_time [static]

Definition at line 65 of file c-lex.c.

Referenced by dump_time_statistics(), init_c_lex(), and update_header_times().

Definition at line 78 of file c-lex.c.

Referenced by cb_file_change(), and fe_file_change().

Definition at line 66 of file c-lex.c.

int header_time [static]

Definition at line 65 of file c-lex.c.

Referenced by dump_time_statistics(), init_c_lex(), and update_header_times().

int ignore_escape_flag [static]

Definition at line 81 of file c-lex.c.

Referenced by lex_string().

struct line_map* map [static]

unsigned int src_lineno [static]

Definition at line 62 of file c-lex.c.

Referenced by c_lex(), and cb_line_change().


Generated on Wed Apr 8 15:12:53 2009 for Open64 by  doxygen 1.5.6