osprey-gcc/gcc/cp/decl2.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
#include "rtl.h"
#include "expr.h"
#include "flags.h"
#include "cp-tree.h"
#include "decl.h"
#include "output.h"
#include "except.h"
#include "toplev.h"
#include "timevar.h"
#include "cpplib.h"
#include "target.h"
#include "c-common.h"
#include "tree-mudflap.h"
#include "cgraph.h"
#include "tree-inline.h"
#include "c-pragma.h"
#include "gt-cp-decl2.h"

Include dependency graph for decl2.c:

Go to the source code of this file.

Data Types

type  priority_info_s

Defines

#define pending_statics_used   (pending_statics ? pending_statics->elements_used : 0)
#define deferred_fns_used   (deferred_fns ? deferred_fns->elements_used : 0)
#define INITIALIZE_P_IDENTIFIER   "__initialize_p"
#define PRIORITY_IDENTIFIER   "__priority"
#define SSDF_IDENTIFIER   "__static_initialization_and_destruction"

Typedefs

typedef struct priority_info_spriority_info

Functions/Subroutines

static void mark_vtable_entries (tree)
static bool maybe_emit_vtables (tree)
static bool acceptable_java_type (tree)
static tree start_objects (int, int)
static void finish_objects (int, int, tree)
static tree start_static_storage_duration_function (unsigned)
static void finish_static_storage_duration_function (tree)
static priority_info get_priority_info (int)
static void do_static_initialization (tree, tree)
static void do_static_destruction (tree)
static tree start_static_initialization_or_destruction (tree, int)
static void finish_static_initialization_or_destruction (tree)
static void generate_ctor_or_dtor_function (bool, int, location_t *)
static int generate_ctor_and_dtor_functions_for_priority (splay_tree_node, void *)
static tree prune_vars_needing_no_initialization (tree *)
static void write_out_vars (tree)
static void import_export_class (tree)
static tree get_guard_bits (tree)
static GTY (())
tree cp_build_parm_decl (tree name, tree type)
static tree build_artificial_parm (tree name, tree type)
void maybe_retrofit_in_chrg (tree fn)
void grokclassfn (tree ctype, tree function, enum overload_flags flags, cp_cv_quals quals)
tree grok_array_decl (tree array_expr, tree index_exp)
tree delete_sanity (tree exp, tree size, bool doing_vec, int use_global_delete)
void check_member_template (tree tmpl)
bool check_java_method (tree method)
tree check_classfn (tree ctype, tree function, tree template_parms)
void note_vague_linkage_fn (tree decl)
static void note_vague_linkage_var (tree var)
void finish_static_data_member_decl (tree decl, tree init, tree asmspec_tree, int flags)
tree grokfield (const cp_declarator *declarator, cp_decl_specifier_seq *declspecs, tree init, tree asmspec_tree, tree attrlist)
tree grokbitfield (const cp_declarator *declarator, cp_decl_specifier_seq *declspecs, tree width)
void cplus_decl_attributes (tree *decl, tree attributes, int flags)
static tree build_anon_union_vars (tree type, tree object)
void finish_anon_union (tree anon_union_decl)
tree coerce_new_type (tree type)
tree coerce_delete_type (tree type)
void comdat_linkage (tree decl)
void maybe_make_one_only (tree decl)
static bool var_finalized_p (tree var)
void mark_needed (tree decl)
bool decl_needed_p (tree decl)
void determine_visibility (tree decl)
void import_export_decl (tree decl)
tree build_cleanup (tree decl)
tree get_guard (tree decl)
tree get_guard_cond (tree guard)
tree set_guard (tree guard)
tree cxx_callgraph_analyze_expr (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED, tree from ATTRIBUTE_UNUSED)
void cp_finish_file (void)
tree build_offset_ref_call_from_tree (tree fn, tree args)
void check_default_args (tree x)
void mark_used (tree decl)

Variables

cpp_readerparse_in


Define Documentation

#define deferred_fns_used   (deferred_fns ? deferred_fns->elements_used : 0)

#define INITIALIZE_P_IDENTIFIER   "__initialize_p"

Definition at line 2207 of file decl2.c.

#define pending_statics_used   (pending_statics ? pending_statics->elements_used : 0)

#define PRIORITY_IDENTIFIER   "__priority"

Definition at line 2208 of file decl2.c.

#define SSDF_IDENTIFIER   "__static_initialization_and_destruction"

Definition at line 2212 of file decl2.c.


Typedef Documentation


Function Documentation

static bool acceptable_java_type ( tree  type  )  [static]

static tree build_anon_union_vars ( tree  type,
tree  object 
) [static]

static tree build_artificial_parm ( tree  name,
tree  type 
) [static]

Definition at line 167 of file decl2.c.

References cp_build_parm_decl(), DECL_ARTIFICIAL, and TREE_READONLY.

tree build_cleanup ( tree  decl  ) 

tree build_offset_ref_call_from_tree ( tree  fn,
tree  args 
)

tree check_classfn ( tree  ctype,
tree  function,
tree  template_parms 
)

Definition at line 595 of file decl2.c.

void check_default_args ( tree  x  ) 

Definition at line 3252 of file decl2.c.

References cp_error_at(), i, TREE_CHAIN, TREE_CODE, TREE_PURPOSE, TREE_TYPE, TYPE_ARG_TYPES, and void_list_node.

bool check_java_method ( tree  method  ) 

void check_member_template ( tree  tmpl  ) 

tree coerce_delete_type ( tree  type  ) 

tree coerce_new_type ( tree  type  ) 

void comdat_linkage ( tree  decl  ) 

tree cp_build_parm_decl ( tree  name,
tree  type 
)

Definition at line 153 of file decl2.c.

References build_decl, DECL_ARG_TYPE, processing_template_decl, and type_passed_as().

void cp_finish_file ( void   ) 

Definition at line 2793 of file decl2.c.

void cplus_decl_attributes ( tree decl,
tree  attributes,
int  flags 
)

tree cxx_callgraph_analyze_expr ( tree tp,
int *walk_subtrees  ATTRIBUTE_UNUSED,
tree from  ATTRIBUTE_UNUSED 
)

bool decl_needed_p ( tree  decl  ) 

Definition at line 1511 of file decl2.c.

tree delete_sanity ( tree  exp,
tree  size,
bool  doing_vec,
int  use_global_delete 
)

void determine_visibility ( tree  decl  ) 

Definition at line 1656 of file decl2.c.

static void do_static_destruction ( tree  decl  )  [static]

static void do_static_initialization ( tree  decl,
tree  init 
) [static]

void finish_anon_union ( tree  anon_union_decl  ) 

static void finish_objects ( int  method_type,
int  initp,
tree  body 
) [static]

void finish_static_data_member_decl ( tree  decl,
tree  init,
tree  asmspec_tree,
int  flags 
)

static void finish_static_initialization_or_destruction ( tree  guard_if_stmt  )  [static]

static void finish_static_storage_duration_function ( tree  body  )  [static]

Definition at line 2334 of file decl2.c.

References expand_or_defer_fn(), finish_compound_stmt(), and finish_function().

static int generate_ctor_and_dtor_functions_for_priority ( splay_tree_node  n,
void data 
) [static]

static void generate_ctor_or_dtor_function ( bool  constructor_p,
int  priority,
location_t locus 
) [static]

tree get_guard ( tree  decl  ) 

static tree get_guard_bits ( tree  guard  )  [static]

tree get_guard_cond ( tree  guard  ) 

static priority_info get_priority_info ( int  priority  )  [static]

tree grok_array_decl ( tree  array_expr,
tree  index_exp 
)

tree grokbitfield ( const cp_declarator declarator,
cp_decl_specifier_seq declspecs,
tree  width 
)

Definition at line 1020 of file decl2.c.

void grokclassfn ( tree  ctype,
tree  function,
enum overload_flags  flags,
cp_cv_quals  quals 
)

tree grokfield ( const cp_declarator declarator,
cp_decl_specifier_seq declspecs,
tree  init,
tree  asmspec_tree,
tree  attrlist 
)

static GTY ( ()   )  [static]

static void import_export_class ( tree  ctype  )  [static]

void import_export_decl ( tree  decl  ) 

void mark_needed ( tree  decl  ) 

Definition at line 1495 of file decl2.c.

void mark_used ( tree  decl  ) 

static void mark_vtable_entries ( tree  decl  )  [static]

static bool maybe_emit_vtables ( tree  ctype  )  [static]

void maybe_make_one_only ( tree  decl  ) 

void maybe_retrofit_in_chrg ( tree  fn  ) 

void note_vague_linkage_fn ( tree  decl  ) 

Definition at line 736 of file decl2.c.

static void note_vague_linkage_var ( tree  var  )  [static]

Definition at line 751 of file decl2.c.

References VARRAY_PUSH_TREE, and VARRAY_TREE_INIT.

Referenced by finish_static_data_member_decl().

static tree prune_vars_needing_no_initialization ( tree vars  )  [static]

tree set_guard ( tree  guard  ) 

static tree start_objects ( int  method_type,
int  initp 
) [static]

static tree start_static_initialization_or_destruction ( tree  decl,
int  initp 
) [static]

static tree start_static_storage_duration_function ( unsigned   )  [static]

Referenced by cp_finish_file(), and finish_file().

static bool var_finalized_p ( tree  var  )  [static]

Definition at line 1486 of file decl2.c.

References cgraph_varpool_node().

Referenced by cp_finish_file(), maybe_emit_vtables(), and write_out_vars().

static void write_out_vars ( tree  vars  )  [static]


Variable Documentation

Definition at line 54 of file c-common.c.


Generated on Wed Apr 8 15:28:37 2009 for Open64 by  doxygen 1.5.6