Commit f136c8ae by Rafael Avila de Espindola Committed by Rafael Espindola

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
parent 512e7d7f
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> 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
* Makefile.in (dce.o): Add $(EXCEPT_H). * Makefile.in (dce.o): Add $(EXCEPT_H).
......
...@@ -116,7 +116,7 @@ alloc_pool_descriptor (const char *name) ...@@ -116,7 +116,7 @@ alloc_pool_descriptor (const char *name)
slot = (struct alloc_pool_descriptor **) slot = (struct alloc_pool_descriptor **)
htab_find_slot_with_hash (alloc_pool_hash, name, htab_find_slot_with_hash (alloc_pool_hash, name,
htab_hash_pointer (name), htab_hash_pointer (name),
1); INSERT);
if (*slot) if (*slot)
return *slot; return *slot;
*slot = XCNEW (struct alloc_pool_descriptor); *slot = XCNEW (struct alloc_pool_descriptor);
......
...@@ -87,7 +87,7 @@ bitmap_descriptor (const char *file, const char *function, int line) ...@@ -87,7 +87,7 @@ bitmap_descriptor (const char *file, const char *function, int line)
slot = (struct bitmap_descriptor **) slot = (struct bitmap_descriptor **)
htab_find_slot_with_hash (bitmap_desc_hash, &loc, htab_find_slot_with_hash (bitmap_desc_hash, &loc,
htab_hash_pointer (file) + line, htab_hash_pointer (file) + line,
1); INSERT);
if (*slot) if (*slot)
return *slot; return *slot;
*slot = XCNEW (struct bitmap_descriptor); *slot = XCNEW (struct bitmap_descriptor);
......
...@@ -845,7 +845,7 @@ loc_descriptor (const char *name, int line, const char *function) ...@@ -845,7 +845,7 @@ loc_descriptor (const char *name, int line, const char *function)
if (!loc_hash) if (!loc_hash)
loc_hash = htab_create (10, hash_descriptor, eq_descriptor, NULL); 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) if (*slot)
return *slot; return *slot;
*slot = XCNEW (struct loc_descriptor); *slot = XCNEW (struct loc_descriptor);
......
...@@ -71,7 +71,7 @@ varray_descriptor (const char *name) ...@@ -71,7 +71,7 @@ varray_descriptor (const char *name)
slot = (struct varray_descriptor **) slot = (struct varray_descriptor **)
htab_find_slot_with_hash (varray_hash, name, htab_find_slot_with_hash (varray_hash, name,
htab_hash_pointer (name), htab_hash_pointer (name),
1); INSERT);
if (*slot) if (*slot)
return *slot; return *slot;
*slot = XCNEW (struct varray_descriptor); *slot = XCNEW (struct varray_descriptor);
......
...@@ -113,7 +113,8 @@ vec_descriptor (const char *name, int line, const char *function) ...@@ -113,7 +113,8 @@ vec_descriptor (const char *name, int line, const char *function)
if (!vec_desc_hash) if (!vec_desc_hash)
vec_desc_hash = htab_create (10, hash_descriptor, eq_descriptor, NULL); 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) if (*slot)
return *slot; return *slot;
*slot = XCNEW (struct vec_descriptor); *slot = XCNEW (struct vec_descriptor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment