Commit 7b210806 by Jakub Jelinek Committed by Jakub Jelinek

s390.c (s390_alloc_pool, [...]): Use BITMAP_ALLOC and BITMAP_FREE.

	* config/s390/s390.c (s390_alloc_pool, s390_free_pool,
	s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
	* config/frv/frv.c (frv_function_epilogue): Likewise.

From-SVN: r95190
parent 7801fed4
2005-02-17 Jakub Jelinek <jakub@redhat.com>
* config/s390/s390.c (s390_alloc_pool, s390_free_pool,
s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
* config/frv/frv.c (frv_function_epilogue): Likewise.
2005-02-17 Daniel Berlin <dberlin@dberlin.org> 2005-02-17 Daniel Berlin <dberlin@dberlin.org>
* lambda-code (perfect_nestify): Remove mark/unmark * lambda-code (perfect_nestify): Remove mark/unmark
......
...@@ -1876,7 +1876,7 @@ frv_function_epilogue (FILE *file ATTRIBUTE_UNUSED, ...@@ -1876,7 +1876,7 @@ frv_function_epilogue (FILE *file ATTRIBUTE_UNUSED,
memset (&frv_ifcvt.tmp_reg, 0, sizeof (frv_ifcvt.tmp_reg)); memset (&frv_ifcvt.tmp_reg, 0, sizeof (frv_ifcvt.tmp_reg));
/* Release the bitmap of created insns. */ /* Release the bitmap of created insns. */
BITMAP_XFREE (frv_ifcvt.scratch_insns_bitmap); BITMAP_FREE (frv_ifcvt.scratch_insns_bitmap);
} }
...@@ -7722,7 +7722,7 @@ frv_ifcvt_modify_final (ce_if_block_t *ce_info ATTRIBUTE_UNUSED) ...@@ -7722,7 +7722,7 @@ frv_ifcvt_modify_final (ce_if_block_t *ce_info ATTRIBUTE_UNUSED)
{ {
rtx insn = emit_insn_before (frv_ifcvt.scratch_regs[i], existing_insn); rtx insn = emit_insn_before (frv_ifcvt.scratch_regs[i], existing_insn);
if (! frv_ifcvt.scratch_insns_bitmap) if (! frv_ifcvt.scratch_insns_bitmap)
frv_ifcvt.scratch_insns_bitmap = BITMAP_XMALLOC (); frv_ifcvt.scratch_insns_bitmap = BITMAP_ALLOC (NULL);
bitmap_set_bit (frv_ifcvt.scratch_insns_bitmap, INSN_UID (insn)); bitmap_set_bit (frv_ifcvt.scratch_insns_bitmap, INSN_UID (insn));
frv_ifcvt.scratch_regs[i] = NULL_RTX; frv_ifcvt.scratch_regs[i] = NULL_RTX;
} }
......
...@@ -5437,7 +5437,7 @@ s390_alloc_pool (void) ...@@ -5437,7 +5437,7 @@ s390_alloc_pool (void)
pool->label = gen_label_rtx (); pool->label = gen_label_rtx ();
pool->first_insn = NULL_RTX; pool->first_insn = NULL_RTX;
pool->pool_insn = NULL_RTX; pool->pool_insn = NULL_RTX;
pool->insns = BITMAP_XMALLOC (); pool->insns = BITMAP_ALLOC (NULL);
pool->size = 0; pool->size = 0;
return pool; return pool;
...@@ -5464,7 +5464,7 @@ s390_free_pool (struct constant_pool *pool) ...@@ -5464,7 +5464,7 @@ s390_free_pool (struct constant_pool *pool)
free (c); free (c);
} }
BITMAP_XFREE (pool->insns); BITMAP_FREE (pool->insns);
free (pool); free (pool);
} }
...@@ -5821,7 +5821,7 @@ s390_chunkify_start (void) ...@@ -5821,7 +5821,7 @@ s390_chunkify_start (void)
/* Find all labels that are branched into /* Find all labels that are branched into
from an insn belonging to a different chunk. */ from an insn belonging to a different chunk. */
far_labels = BITMAP_XMALLOC (); far_labels = BITMAP_ALLOC (NULL);
for (insn = get_insns (); insn; insn = NEXT_INSN (insn)) for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
{ {
...@@ -5918,7 +5918,7 @@ s390_chunkify_start (void) ...@@ -5918,7 +5918,7 @@ s390_chunkify_start (void)
} }
BITMAP_XFREE (far_labels); BITMAP_FREE (far_labels);
/* Recompute insn addresses. */ /* Recompute insn addresses. */
......
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