osprey/kgccfe/wfe_dst.cxx File Reference

#include <values.h>
#include "defs.h"
#include "glob.h"
#include "config.h"
#include "dwarf_DST_producer.h"
#include "dwarf_DST_dump.h"
#include "file_util.h"
#include "srcpos.h"
#include "symtab.h"
#include "gnu_config.h"
#include "gnu/flags.h"
#include "gnu/system.h"
#include "gnu/tree.h"
#include "wfe_misc.h"
#include "wfe_dst.h"
#include "wfe_expr.h"
#include "tree_symtab.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <unistd.h>
#include <string>
#include <vector>
#include <map>

Include dependency graph for wfe_dst.cxx:

Go to the source code of this file.

Defines

#define MAX_CWD_CHARS   (256 - (MAXHOSTNAMELEN+1))
#define DANAME(d)

Typedefs

typedef std::map< std::string,
DST_INFO_IDX
DST_Type_Map

Functions/Subroutines

static void DST_enter_file (const char *, UINT)
static DST_INFO_IDX DST_Create_var (ST *var_st, tree decl)
static DST_INFO_IDX DST_Create_Parmvar (ST *var_st, tree decl)
static DST_INFO_IDX DST_Create_type (ST *typ_decl, tree decl)
static int same_dst_idx (struct mongoose_gcc_DST_IDX s1, struct mongoose_gcc_DST_IDX s2)
static void cp_to_tree_from_dst (struct mongoose_gcc_DST_IDX *dest, DST_INFO_IDX *src)
static void cp_to_dst_from_tree (DST_INFO_IDX *dest, struct mongoose_gcc_DST_IDX *src)
static DST_INFO_IDX DST_get_context (tree intree)
static UINT Get_Dir_Dst_Info (char *name)
static UINT Get_File_Dst_Info (const char *name, UINT dir)
static const char * drop_path (const char *s)
static char * DST_get_command_line_options (INT32 num_copts, char *copts[])
static char * Get_Name (tree node)
static void DST_enter_struct_union_members (tree parent_tree, DST_INFO_IDX parent_idx)
static DST_INFO_IDX DST_enter_struct_union (tree type_tree, TY_IDX ttidx, TY_IDX idx, INT tsize)
static DST_INFO_IDX DST_enter_enum (tree type_tree, TY_IDX ttidx, TY_IDX idx, INT tsize)
static DST_INFO_IDX DST_enter_array_type (tree type_tree, TY_IDX ttidx, TY_IDX idx, INT tsize)
struct mongoose_gcc_DST_IDX Create_DST_type_For_Tree (tree type_tree, TY_IDX ttidx, TY_IDX idx, bool ignoreconst, bool ignorevolatile)
struct mongoose_gcc_DST_IDX Create_DST_decl_For_Tree (tree decl, ST *var_st)
static void DST_enter_param_vars (tree fndecl, tree parameter_list)
DST_INFO_IDX DST_Create_Subprogram (ST *func_st, tree fndecl)
DST_INFO_IDX DST_Get_Comp_Unit (void)
void DST_build (int num_copts, char *copts[])
void WFE_Set_Line_And_File (UINT line, const char *file)

Variables

const char * dump_base_name
FILEtree_dump_file
static BOOL dst_initialized = FALSE
static char cwd_buffer [MAX_CWD_CHARS+MAXHOSTNAMELEN+1]
static char * current_working_dir = &cwd_buffer[0]
static char * current_host_dir = &cwd_buffer[0]
static DST_INFO_IDX comp_unit_idx = DST_INVALID_INIT
static UINT last_dir_num = 0
static UINT current_dir = 1
static UINT last_file_num = 0
UINT current_file = 1
static std::vector< std::pair
< char *, UINT > > 
dir_dst_list
static DST_Type_Map basetypes
static std::vector< std::pair
< const char *, UINT > > 
file_dst_list


Define Documentation

#define DANAME ( d   ) 

Value:

#define MAX_CWD_CHARS   (256 - (MAXHOSTNAMELEN+1))

Definition at line 126 of file wfe_dst.cxx.


Typedef Documentation

Definition at line 154 of file wfe_dst.cxx.


Function Documentation

static void cp_to_dst_from_tree ( DST_INFO_IDX dest,
struct mongoose_gcc_DST_IDX *  src 
) [inline, static]

static void cp_to_tree_from_dst ( struct mongoose_gcc_DST_IDX *  dest,
DST_INFO_IDX src 
) [inline, static]

struct mongoose_gcc_DST_IDX Create_DST_decl_For_Tree ( tree  decl,
ST var_st 
) [read]

struct mongoose_gcc_DST_IDX Create_DST_type_For_Tree ( tree  type_tree,
TY_IDX  ttidx,
TY_IDX  idx,
bool  ignoreconst,
bool  ignorevolatile 
) [read]

static const char* drop_path ( const char *  s  )  [static]

Definition at line 371 of file wfe_dst.cxx.

References NULL, strrchr(), and tail.

void DST_build ( int  num_copts,
char *  copts[] 
)

static DST_INFO_IDX DST_Create_Parmvar ( ST var_st,
tree  decl 
) [static]

Definition at line 1755 of file wfe_dst.cxx.

References cp_to_dst_from_tree(), DECL_DST_IDX(), Get_ST, Get_TY(), TREE_TYPE, and USRCPOS_clear.

DST_INFO_IDX DST_Create_Subprogram ( ST func_st,
tree  fndecl 
)

static DST_INFO_IDX DST_Create_type ( ST typ_decl,
tree  decl 
) [static]

static DST_INFO_IDX DST_Create_var ( ST var_st,
tree  decl 
) [static]

static DST_INFO_IDX DST_enter_array_type ( tree  type_tree,
TY_IDX  ttidx,
TY_IDX  idx,
INT  tsize 
) [static]

static DST_INFO_IDX DST_enter_enum ( tree  type_tree,
TY_IDX  ttidx,
TY_IDX  idx,
INT  tsize 
) [static]

static void DST_enter_file ( const char *  file_name,
UINT  dir 
) [static]

Definition at line 384 of file wfe_dst.cxx.

References DST_mk_file_name(), file_size, stat::st_mtime, stat::st_size, stat, and UINT64.

static void DST_enter_param_vars ( tree  fndecl,
tree  parameter_list 
) [static]

static DST_INFO_IDX DST_enter_struct_union ( tree  type_tree,
TY_IDX  ttidx,
TY_IDX  idx,
INT  tsize 
) [static]

static void DST_enter_struct_union_members ( tree  parent_tree,
DST_INFO_IDX  parent_idx 
) [static]

static char* DST_get_command_line_options ( INT32  num_copts,
char *  copts[] 
) [static]

Definition at line 408 of file wfe_dst.cxx.

References calloc(), Debug_Level, free(), i, INT32, malloc, NULL, strcpy, and strlen().

DST_INFO_IDX DST_Get_Comp_Unit ( void   ) 

Definition at line 2025 of file wfe_dst.cxx.

static DST_INFO_IDX DST_get_context ( tree  intree  )  [static]

static UINT Get_Dir_Dst_Info ( char *  name  )  [static]

static UINT Get_File_Dst_Info ( const char *  name,
UINT  dir 
) [static]

Definition at line 339 of file wfe_dst.cxx.

References DST_enter_file(), last_file_num, make_pair(), malloc, strcmp(), strcpy, and strlen().

static char* Get_Name ( tree  node  )  [static]

Definition at line 474 of file wfe_dst.cxx.

References buf, DECL_NAME, IDENTIFIER_POINTER, int, NULL, TREE_CODE, TREE_CODE_CLASS, and TYPE_NAME.

static int same_dst_idx ( struct mongoose_gcc_DST_IDX  s1,
struct mongoose_gcc_DST_IDX  s2 
) [static]

Definition at line 1553 of file wfe_dst.cxx.

Referenced by Create_DST_decl_For_Tree().

void WFE_Set_Line_And_File ( UINT  line,
const char *  file 
)

Definition at line 2131 of file wfe_dst.cxx.

References buf, current_working_dir, dir, drop_path(), dst_initialized, file_name, and NULL.


Variable Documentation

Definition at line 155 of file wfe_dst.cxx.

DST_INFO_IDX comp_unit_idx = DST_INVALID_INIT [static]

Definition at line 136 of file wfe_dst.cxx.

UINT current_dir = 1 [static]

Definition at line 141 of file wfe_dst.cxx.

Definition at line 143 of file wfe_dst.cxx.

char* current_host_dir = &cwd_buffer[0] [static]

Definition at line 130 of file wfe_dst.cxx.

char* current_working_dir = &cwd_buffer[0] [static]

Definition at line 129 of file wfe_dst.cxx.

char cwd_buffer[MAX_CWD_CHARS+MAXHOSTNAMELEN+1] [static]

Definition at line 127 of file wfe_dst.cxx.

std::vector< std::pair< char *, UINT > > dir_dst_list [static]

Definition at line 153 of file wfe_dst.cxx.

BOOL dst_initialized = FALSE [static]

Definition at line 121 of file wfe_dst.cxx.

const char* dump_base_name

Definition at line 187 of file toplev.c.

std::vector< std::pair< const char *, UINT > > file_dst_list [static]

Definition at line 334 of file wfe_dst.cxx.

UINT last_dir_num = 0 [static]

Definition at line 140 of file wfe_dst.cxx.

UINT last_file_num = 0 [static]

Definition at line 142 of file wfe_dst.cxx.


Generated on Wed Apr 8 15:48:43 2009 for Open64 by  doxygen 1.5.6