osprey/kg++fe/gnu/ggc.h File Reference

#include "varray.h"
#include "gtype-desc.h"

Include dependency graph for ggc.h:

Go to the source code of this file.

Data Types

type  ggc_root_tab
type  ggc_cache_tab
type  ggc_statistics

Defines

#define digit_string(d)   (digit_vector + ((d) * 2))
#define LAST_GGC_ROOT_TAB   { NULL, 0, 0, NULL }
#define LAST_GGC_CACHE_TAB   { NULL, 0, 0, NULL, NULL }
#define ggc_test_and_set_mark(EXPR)   ((EXPR) != NULL && ((void *) (EXPR)) != (void *) 1 && ! ggc_set_mark (EXPR))
#define ggc_mark_rtx   gt_ggc_m_7rtx_def
#define ggc_mark_tree   gt_ggc_m_9tree_node
#define ggc_mark(EXPR)
#define ggc_alloc_rtx(NSLOTS)
#define ggc_alloc_rtvec(NELT)
#define ggc_alloc_tree(LENGTH)   ((union tree_node *) ggc_alloc (LENGTH))
#define htab_create_ggc(SIZE, HASH, EQ, DEL)   htab_create_alloc (SIZE, HASH, EQ, DEL, ggc_calloc, NULL)
#define ggc_strdup(S)   ggc_alloc_string((S), -1)

Functions/Subroutines

void ggc_add_root PARAMS ((void *base, int nelt, int size, void(*)(void *)))
void ggc_mark_roots PARAMS ((void))
void *ggc_alloc PARAMS ((size_t))
void *ggc_realloc PARAMS ((void *, size_t))
void *ggc_calloc PARAMS ((size_t, size_t))
const char *ggc_alloc_string PARAMS ((const char *contents, int length))
int ggc_set_mark PARAMS ((const void *))
void ggc_print_common_statistics PARAMS ((FILE *, ggc_statistics *))

Variables

const char empty_string []
const char digit_vector []
struct ggc_root_tab *const gt_ggc_rtab []
struct ggc_root_tab *const gt_ggc_deletable_rtab []
struct ggc_cache_tab *const gt_ggc_cache_rtab []


Define Documentation

#define digit_string ( d   )     (digit_vector + ((d) * 2))

Definition at line 41 of file ggc.h.

Referenced by ggc_alloc_string().

#define ggc_alloc_rtvec ( NELT   ) 

Value:

((struct rtvec_def *) ggc_alloc (sizeof (struct rtvec_def)      \
           + ((NELT) - 1) * sizeof (rtx)))

Definition at line 120 of file ggc.h.

Referenced by rtvec_alloc().

#define ggc_alloc_rtx ( NSLOTS   ) 

#define ggc_alloc_tree ( LENGTH   )     ((union tree_node *) ggc_alloc (LENGTH))

Definition at line 124 of file ggc.h.

Referenced by build1(), build_string(), copy_node(), make_node(), make_tree_vec(), and tree_cons().

#define ggc_mark ( EXPR   ) 

Value:

do {            \
    const void *const a__ = (EXPR);   \
    if (a__ != NULL && a__ != (void *) 1) \
      ggc_set_mark (a__);     \
  } while (0)

Definition at line 84 of file ggc.h.

Referenced by gt_ggc_mx_emit_status(), lang_mark_tree(), mark_ffewhere_head(), and mark_tracker_head().

#define ggc_mark_rtx   gt_ggc_m_7rtx_def

#define ggc_mark_tree   gt_ggc_m_9tree_node

#define ggc_strdup ( S   )     ggc_alloc_string((S), -1)

#define ggc_test_and_set_mark ( EXPR   )     ((EXPR) != NULL && ((void *) (EXPR)) != (void *) 1 && ! ggc_set_mark (EXPR))

#define htab_create_ggc ( SIZE,
HASH,
EQ,
DEL   )     htab_create_alloc (SIZE, HASH, EQ, DEL, ggc_calloc, NULL)

#define LAST_GGC_CACHE_TAB   { NULL, 0, 0, NULL, NULL }

Definition at line 70 of file ggc.h.

#define LAST_GGC_ROOT_TAB   { NULL, 0, 0, NULL }

Definition at line 56 of file ggc.h.


Function Documentation

void ggc_print_common_statistics PARAMS ( (FILE *, ggc_statistics *)   ) 

int ggc_set_mark PARAMS ( (const void *)   ) 

const char* ggc_alloc_string PARAMS ( (const char *contents, int length  ) 

void* ggc_calloc PARAMS ( (size_t, size_t  ) 

void* ggc_realloc PARAMS ( (void *, size_t  ) 

void* ggc_alloc PARAMS ( (size_t  ) 

void ggc_mark_roots PARAMS ( (void  )  [read]

Definition at line 77 of file cplus-dem.c.

void ggc_add_root PARAMS ( (void *base, int nelt, int size, void(*)(void *))   ) 


Variable Documentation

const char digit_vector[]

Definition at line 49 of file stringpool.c.

const char empty_string[]

Definition at line 45 of file stringpool.c.

Referenced by expand_asm_operands(), and ggc_alloc_string().

Definition at line 97 of file gtype-c.h.

Referenced by ggc_mark_roots().

Definition at line 86 of file gtype-c.h.

Referenced by ggc_mark_roots(), and gt_pch_restore().

Definition at line 52 of file gtype-c.h.

Referenced by ggc_mark_roots(), gt_pch_restore(), and gt_pch_save().


Generated on Wed Apr 8 15:34:38 2009 for Open64 by  doxygen 1.5.6