#include "config.h"#include "errors.h"#include "system.h"#include "varray.h"#include "ggc.h"

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) |
Variables | |
| static const size_t | element_size [NUM_VARRAY_DATA] |
| static const int | uses_ggc [NUM_VARRAY_DATA] |
| #define VARRAY_HDR_SIZE (sizeof (struct varray_head_tag) - sizeof (varray_data)) |
| void varray_clear | ( | varray_type | va | ) |
| varray_type varray_grow | ( | varray_type | va, | |
| size_t | n | |||
| ) |
Definition at line 85 of file varray.c.
References data_size, element_size, ggc_realloc, memset, uses_ggc, 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 63 of file varray.c.
References data_size, element_size, ggc_alloc_cleared, ptr, uses_ggc, VARRAY_HDR_SIZE, varray_type, and xcalloc().
const size_t element_size[NUM_VARRAY_DATA] [static] |
Initial value:
{
sizeof (char),
sizeof (unsigned char),
sizeof (short),
sizeof (unsigned short),
sizeof (int),
sizeof (unsigned int),
sizeof (long),
sizeof (unsigned long),
sizeof (HOST_WIDE_INT),
sizeof (unsigned HOST_WIDE_INT),
sizeof (PTR),
sizeof (char *),
sizeof (struct rtx_def *),
sizeof (struct rtvec_def *),
sizeof (union tree_node *),
sizeof (struct bitmap_head_def *),
sizeof (struct reg_info_def *),
sizeof (struct const_equiv_data),
sizeof (struct basic_block_def *),
sizeof (struct elt_list *)
}
const int uses_ggc[NUM_VARRAY_DATA] [static] |
1.5.6