diff options
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 2617c8b5e71..edd8a3deb3f 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -632,8 +632,7 @@ record_alias_subset (HOST_WIDE_INT superset, HOST_WIDE_INT subset) { /* Create an entry for the SUPERSET, so that we have a place to attach the SUBSET. */ - superset_entry - = (alias_set_entry) xmalloc (sizeof (struct alias_set_entry)); + superset_entry = xmalloc (sizeof (struct alias_set_entry)); superset_entry->alias_set = superset; superset_entry->children = splay_tree_new (splay_tree_compare_ints, 0, 0); @@ -2717,17 +2716,16 @@ init_alias_analysis (void) optimization. Loop unrolling can create a large number of registers. */ reg_base_value_size = maxreg * 2; - reg_base_value = (rtx *) ggc_alloc_cleared (reg_base_value_size - * sizeof (rtx)); + reg_base_value = ggc_alloc_cleared (reg_base_value_size * sizeof (rtx)); - new_reg_base_value = (rtx *) xmalloc (reg_base_value_size * sizeof (rtx)); - reg_seen = (char *) xmalloc (reg_base_value_size); + new_reg_base_value = xmalloc (reg_base_value_size * sizeof (rtx)); + reg_seen = xmalloc (reg_base_value_size); if (! reload_completed && flag_old_unroll_loops) { /* ??? Why are we realloc'ing if we're just going to zero it? */ - alias_invariant = (rtx *)xrealloc (alias_invariant, - reg_base_value_size * sizeof (rtx)); - memset ((char *)alias_invariant, 0, reg_base_value_size * sizeof (rtx)); + alias_invariant = xrealloc (alias_invariant, + reg_base_value_size * sizeof (rtx)); + memset (alias_invariant, 0, reg_base_value_size * sizeof (rtx)); } /* The basic idea is that each pass through this loop will use the @@ -2764,10 +2762,10 @@ init_alias_analysis (void) copying_arguments = true; /* Wipe the potential alias information clean for this pass. */ - memset ((char *) new_reg_base_value, 0, reg_base_value_size * sizeof (rtx)); + memset (new_reg_base_value, 0, reg_base_value_size * sizeof (rtx)); /* Wipe the reg_seen array clean. */ - memset ((char *) reg_seen, 0, reg_base_value_size); + memset (reg_seen, 0, reg_base_value_size); /* Mark all hard registers which may contain an address. The stack, frame and argument pointers may contain an address. |