osprey-gcc/gcc/varray.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "errors.h"
#include "varray.h"
#include "ggc.h"
#include "hashtab.h"

Include dependency graph for varray.c:

Go to the source code of this file.

Defines

#define VARRAY_HDR_SIZE   (sizeof (struct varray_head_tag) - sizeof (varray_data))

Functions/Subroutines

varray_type varray_init (size_t num_elements, enum varray_data_enum element_kind, const char *name)
varray_type varray_grow (varray_type va, size_t n)
void varray_clear (varray_type va)
void dump_varray_statistics (void)

Variables

type {
   unsigned char   size
   bool   uses_ggc
element [NUM_VARRAY_DATA]


Define Documentation

#define VARRAY_HDR_SIZE   (sizeof (struct varray_head_tag) - sizeof (varray_data))

Definition at line 39 of file varray.c.


Function Documentation

void dump_varray_statistics ( void   ) 

Definition at line 250 of file varray.c.

Referenced by finalize().

void varray_clear ( varray_type  va  ) 

Definition at line 187 of file varray.c.

References data_size, element, and memset.

varray_type varray_grow ( varray_type  va,
size_t  n 
)

Definition at line 151 of file varray.c.

References data_size, element, ggc_realloc, memset, VARRAY_HDR_SIZE, varray_type, and xrealloc().

varray_type varray_init ( size_t  num_elements,
enum varray_data_enum  element_kind,
const char *  name 
)

Definition at line 125 of file varray.c.

References data_size, element, ggc_alloc_cleared, ptr, uses_ggc, VARRAY_HDR_SIZE, varray_type, and xcalloc().


Variable Documentation

struct { ... } element[NUM_VARRAY_DATA] [static]

unsigned char size

Definition at line 95 of file varray.c.

Definition at line 96 of file varray.c.


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