summaryrefslogtreecommitdiff
path: root/gcc/config/ia64/ia64.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/ia64/ia64.c')
-rw-r--r--gcc/config/ia64/ia64.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index 22d0c0a3ce1..d1928f6b3c7 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -5248,7 +5248,7 @@ void ia64_init_expanders (void)
static struct machine_function *
ia64_init_machine_status (void)
{
- return ggc_alloc_cleared (sizeof (struct machine_function));
+ return GGC_CNEW (struct machine_function);
}
static enum attr_itanium_class ia64_safe_itanium_class (rtx);
@@ -6772,7 +6772,7 @@ ia64_h_i_d_extended (void)
{
int new_max_uid = get_max_uid () + 1;
- spec_check_no = xrecalloc (spec_check_no, new_max_uid,
+ spec_check_no = (int *) xrecalloc (spec_check_no, new_max_uid,
max_uid, sizeof (*spec_check_no));
max_uid = new_max_uid;
}
@@ -6781,14 +6781,14 @@ ia64_h_i_d_extended (void)
{
int new_clocks_length = get_max_uid () + 1;
- stops_p = xrecalloc (stops_p, new_clocks_length, clocks_length, 1);
+ stops_p = (char *) xrecalloc (stops_p, new_clocks_length, clocks_length, 1);
if (ia64_tune == PROCESSOR_ITANIUM)
{
- clocks = xrecalloc (clocks, new_clocks_length, clocks_length,
- sizeof (int));
- add_cycles = xrecalloc (add_cycles, new_clocks_length, clocks_length,
- sizeof (int));
+ clocks = (int *) xrecalloc (clocks, new_clocks_length, clocks_length,
+ sizeof (int));
+ add_cycles = (int *) xrecalloc (add_cycles, new_clocks_length,
+ clocks_length, sizeof (int));
}
clocks_length = new_clocks_length;
@@ -7410,7 +7410,7 @@ get_free_bundle_state (void)
}
else
{
- result = xmalloc (sizeof (struct bundle_state));
+ result = XNEW (struct bundle_state);
result->dfa_state = xmalloc (dfa_state_size);
result->allocated_states_chain = allocated_bundle_states_chain;
allocated_bundle_states_chain = result;
@@ -7920,8 +7920,7 @@ bundling (FILE *dump, int verbose, rtx prev_head_insn, rtx tail)
bundling_p = 1;
dfa_clean_insn_cache ();
initiate_bundle_state_table ();
- index_to_bundle_states = xmalloc ((insn_num + 2)
- * sizeof (struct bundle_state *));
+ index_to_bundle_states = XNEWVEC (struct bundle_state *, insn_num + 2);
/* First (forward) pass -- generation of bundle states. */
curr_state = get_free_bundle_state ();
curr_state->insn = NULL;
@@ -8612,11 +8611,11 @@ ia64_reorg (void)
PREV_INSN (ia64_nop) = NEXT_INSN (ia64_nop) = NULL_RTX;
recog_memoized (ia64_nop);
clocks_length = get_max_uid () + 1;
- stops_p = xcalloc (1, clocks_length);
+ stops_p = XCNEWVEC (char, clocks_length);
if (ia64_tune == PROCESSOR_ITANIUM)
{
- clocks = xcalloc (clocks_length, sizeof (int));
- add_cycles = xcalloc (clocks_length, sizeof (int));
+ clocks = XCNEWVEC (int, clocks_length);
+ add_cycles = XCNEWVEC (int, clocks_length);
}
if (ia64_tune == PROCESSOR_ITANIUM2)
{