alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value instead of an int.
2009-04-30 Rafael Avila de Espindola <espindola@google.com> * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value instead of an int. * bitmap.c (bitmap_descriptor): Likewise. * ggc-common.c (loc_descriptor): Likewise. * varray.c (varray_descriptor): Likewise. * vec.c (vec_descriptor): Likewise. From-SVN: r147009
This commit is contained in:
parent
512e7d7fb0
commit
f136c8ae80
|
@ -1,3 +1,12 @@
|
|||
2009-04-30 Rafael Avila de Espindola <espindola@google.com>
|
||||
|
||||
* alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
|
||||
instead of an int.
|
||||
* bitmap.c (bitmap_descriptor): Likewise.
|
||||
* ggc-common.c (loc_descriptor): Likewise.
|
||||
* varray.c (varray_descriptor): Likewise.
|
||||
* vec.c (vec_descriptor): Likewise.
|
||||
|
||||
2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* Makefile.in (dce.o): Add $(EXCEPT_H).
|
||||
|
|
|
@ -116,7 +116,7 @@ alloc_pool_descriptor (const char *name)
|
|||
slot = (struct alloc_pool_descriptor **)
|
||||
htab_find_slot_with_hash (alloc_pool_hash, name,
|
||||
htab_hash_pointer (name),
|
||||
1);
|
||||
INSERT);
|
||||
if (*slot)
|
||||
return *slot;
|
||||
*slot = XCNEW (struct alloc_pool_descriptor);
|
||||
|
|
|
@ -87,7 +87,7 @@ bitmap_descriptor (const char *file, const char *function, int line)
|
|||
slot = (struct bitmap_descriptor **)
|
||||
htab_find_slot_with_hash (bitmap_desc_hash, &loc,
|
||||
htab_hash_pointer (file) + line,
|
||||
1);
|
||||
INSERT);
|
||||
if (*slot)
|
||||
return *slot;
|
||||
*slot = XCNEW (struct bitmap_descriptor);
|
||||
|
|
|
@ -845,7 +845,7 @@ loc_descriptor (const char *name, int line, const char *function)
|
|||
if (!loc_hash)
|
||||
loc_hash = htab_create (10, hash_descriptor, eq_descriptor, NULL);
|
||||
|
||||
slot = (struct loc_descriptor **) htab_find_slot (loc_hash, &loc, 1);
|
||||
slot = (struct loc_descriptor **) htab_find_slot (loc_hash, &loc, INSERT);
|
||||
if (*slot)
|
||||
return *slot;
|
||||
*slot = XCNEW (struct loc_descriptor);
|
||||
|
|
|
@ -71,7 +71,7 @@ varray_descriptor (const char *name)
|
|||
slot = (struct varray_descriptor **)
|
||||
htab_find_slot_with_hash (varray_hash, name,
|
||||
htab_hash_pointer (name),
|
||||
1);
|
||||
INSERT);
|
||||
if (*slot)
|
||||
return *slot;
|
||||
*slot = XCNEW (struct varray_descriptor);
|
||||
|
|
|
@ -113,7 +113,8 @@ vec_descriptor (const char *name, int line, const char *function)
|
|||
if (!vec_desc_hash)
|
||||
vec_desc_hash = htab_create (10, hash_descriptor, eq_descriptor, NULL);
|
||||
|
||||
slot = (struct vec_descriptor **) htab_find_slot (vec_desc_hash, &loc, 1);
|
||||
slot = (struct vec_descriptor **) htab_find_slot (vec_desc_hash, &loc,
|
||||
INSERT);
|
||||
if (*slot)
|
||||
return *slot;
|
||||
*slot = XCNEW (struct vec_descriptor);
|
||||
|
|
Loading…
Reference in New Issue