diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2008-06-26 00:25:08 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2008-06-26 00:25:08 +0000 |
commit | 1b4572a81dd40921680e70eef7469f0c80bc20e0 (patch) | |
tree | 5cf8ceabdd8f1c5995f5d74b7dc88765e4b60528 /gcc/ebitmap.c | |
parent | 7cbb2a85e7bb2f135308812d2847fc16a44dbe0a (diff) | |
download | gcc-1b4572a81dd40921680e70eef7469f0c80bc20e0.zip gcc-1b4572a81dd40921680e70eef7469f0c80bc20e0.tar.gz gcc-1b4572a81dd40921680e70eef7469f0c80bc20e0.tar.bz2 |
dwarf2out.c (new_cfi, [...]): Fix -Wc++-compat and/or -Wcast-qual warnings.
* dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
add_ranges_num, add_ranges_by_labels, file_info_cmp,
file_name_acquire, output_file_names, add_const_value_attribute,
premark_used_types_helper, file_table_eq, file_table_hash,
lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
-Wcast-qual warnings.
* ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
* emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
gen_reg_rtx, start_sequence, init_emit): Likewise.
* et-forest.c (et_new_occ, et_new_tree): Likewise.
* except.c (init_eh_for_function, gen_eh_region,
remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
arh_to_landing_pad, arh_to_label, add_action_record,
add_call_site, switch_to_exception_section): Likewise.
* expmed.c (synth_mult): Likewise.
* expr.c (gen_group_rtx, emit_group_load, emit_group_store,
store_expr): Likewise.
* final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
Likewise.
* function.c (assign_stack_temp_for_type,
allocate_struct_function, match_asm_constraints_1): Likewise.
* gcov-io.c (gcov_allocate): Likewise.
* gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
(gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
record_one_set, insert_expr_in_table, insert_set_in_table,
dump_hash_table, compute_hash_table_work, alloc_hash_table,
pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
-Wcast-qual warnings.
From-SVN: r137136
Diffstat (limited to 'gcc/ebitmap.c')
-rw-r--r-- | gcc/ebitmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ebitmap.c b/gcc/ebitmap.c index 8a7c7cb..d25a163 100644 --- a/gcc/ebitmap.c +++ b/gcc/ebitmap.c @@ -118,7 +118,7 @@ ebitmap_array_grow (ebitmap map, unsigned int newsize) newsize += newsize / 4; map->n_elts = newsize; - map->elts = xrealloc (map->elts, sizeof (EBITMAP_ELT_TYPE) * newsize); + map->elts = XRESIZEVEC (EBITMAP_ELT_TYPE, map->elts, newsize); } /* Grow the internal word array for MAP so it is at least SIZE @@ -161,7 +161,7 @@ ebitmap_array_init (ebitmap map, unsigned int size) { if (size > 0) { - map->elts = xmalloc (sizeof (EBITMAP_ELT_TYPE) * size); + map->elts = XNEWVEC (EBITMAP_ELT_TYPE, size); map->n_elts = size; } else @@ -202,7 +202,7 @@ ebitmap_clear (ebitmap map) ebitmap ebitmap_alloc (unsigned int size) { - ebitmap ret = xmalloc (sizeof (struct ebitmap_def)); + ebitmap ret = XNEW (struct ebitmap_def); if (size == 0) size = EBITMAP_ELT_BITS; ebitmap_array_init (ret, (size + EBITMAP_ELT_BITS - 1) / EBITMAP_ELT_BITS); @@ -595,7 +595,7 @@ ebitmap_ior_into (ebitmap dst, ebitmap src) } } newarraysize = src->numwords + dst->numwords; - newarray = xmalloc (newarraysize * sizeof (EBITMAP_ELT_TYPE)); + newarray = XNEWVEC (EBITMAP_ELT_TYPE, newarraysize); EXECUTE_IF_SET_IN_SBITMAP (tempmask, 0, i, sbi) { @@ -704,7 +704,7 @@ ebitmap_ior (ebitmap dst, ebitmap src1, ebitmap src2) } } newarraysize = src1->numwords + src2->numwords; - newarray = xmalloc (newarraysize * sizeof (EBITMAP_ELT_TYPE)); + newarray = XNEWVEC (EBITMAP_ELT_TYPE, newarraysize); EXECUTE_IF_SET_IN_SBITMAP (tempmask, 0, i, sbi) { @@ -883,7 +883,7 @@ ebitmap_and_compl (ebitmap dst, ebitmap src1, ebitmap src2) sbitmap_copy (tempmask, src1->wordmask); newarraysize = src1->numwords; - newarray = xmalloc (newarraysize * sizeof (EBITMAP_ELT_TYPE)); + newarray = XNEWVEC (EBITMAP_ELT_TYPE, newarraysize); EXECUTE_IF_SET_IN_SBITMAP (src1->wordmask, 0, i, sbi) { |