diff options
author | bernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-25 20:43:23 +0000 |
---|---|---|
committer | bernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-25 20:43:23 +0000 |
commit | 9318f22c615651d01d70b7311bff88ba220173d6 (patch) | |
tree | d0ebdb183f6e1572fbcf9e7c4fd5488f5016e704 /gcc/bitmap.c | |
parent | bf2df78f1b9a2bcfd18251abc218e969f34a40c9 (diff) | |
download | gcc-9318f22c615651d01d70b7311bff88ba220173d6.tar.gz |
* bitmap.c: Use type-safe memory allocation macros from libiberty.
* c-common.c: Likewise.
* c-decl.c: Likewise.
* c-lang.c: Likewise.
* c-lex.c: Likewise.
* c-opts.c: Likewise.
* c-parse.in: Likewise.
* c-typeck.c: Likewise.
* genconditions.c: Likewise.
* gengtype-lex.l: Likewise.
* gengtype-yacc.y: Likewise.
* gengtype.c: Likewise.
* genmodes.c: Likewise.
* gensupport.c: Likewise.
* read-rtl.c: Likewise.
* read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
htab_find_slot().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85163 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r-- | gcc/bitmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c index ebbb6ee805f..2f4769b6e46 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -131,7 +131,7 @@ bitmap_element_allocate (bitmap head) obstack_chunk_free); } - element = obstack_alloc (&bitmap_obstack, sizeof (bitmap_element)); + element = XOBNEW (&bitmap_obstack, bitmap_element); } } else @@ -142,7 +142,7 @@ bitmap_element_allocate (bitmap head) bitmap_ggc_free = element->next; } else - element = ggc_alloc (sizeof (bitmap_element)); + element = GGC_NEW (bitmap_element); } memset (element->bits, 0, sizeof (element->bits)); @@ -716,7 +716,7 @@ bitmap bitmap_initialize (bitmap head, int using_obstack) { if (head == NULL && ! using_obstack) - head = ggc_alloc (sizeof (*head)); + head = GGC_NEW (struct bitmap_head_def); head->first = head->current = 0; head->using_obstack = using_obstack; |