From 7b210806753f58281323b6cc4a05f1ee4f5e19dc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 17 Feb 2005 21:40:16 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/frv/frv.c | 4 ++-- gcc/config/s390/s390.c | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4eab1a3b6c..899bba797c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-02-17 Jakub Jelinek + + * 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 * lambda-code (perfect_nestify): Remove mark/unmark diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index c45145864aa..25b2f7610d9 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -1876,7 +1876,7 @@ frv_function_epilogue (FILE *file ATTRIBUTE_UNUSED, memset (&frv_ifcvt.tmp_reg, 0, sizeof (frv_ifcvt.tmp_reg)); /* 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) { rtx insn = emit_insn_before (frv_ifcvt.scratch_regs[i], existing_insn); 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)); frv_ifcvt.scratch_regs[i] = NULL_RTX; } diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index f9be9cf0a6f..a5896e878d2 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -5437,7 +5437,7 @@ s390_alloc_pool (void) pool->label = gen_label_rtx (); pool->first_insn = NULL_RTX; pool->pool_insn = NULL_RTX; - pool->insns = BITMAP_XMALLOC (); + pool->insns = BITMAP_ALLOC (NULL); pool->size = 0; return pool; @@ -5464,7 +5464,7 @@ s390_free_pool (struct constant_pool *pool) free (c); } - BITMAP_XFREE (pool->insns); + BITMAP_FREE (pool->insns); free (pool); } @@ -5821,7 +5821,7 @@ s390_chunkify_start (void) /* Find all labels that are branched into 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)) { @@ -5918,7 +5918,7 @@ s390_chunkify_start (void) } - BITMAP_XFREE (far_labels); + BITMAP_FREE (far_labels); /* Recompute insn addresses. */ -- 2.30.2