diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2008-06-29 04:39:16 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2008-06-29 04:39:16 +0000 |
commit | 4dc6c528c2b8e858ae65d91a82c6fae661894302 (patch) | |
tree | 2b48e3a63388183c42752ae73ac281a65cd85dd7 /gcc/df-scan.c | |
parent | 4152a484b4ddc476c40c2bfe9c30a743bdd018ac (diff) | |
download | gcc-4dc6c528c2b8e858ae65d91a82c6fae661894302.zip gcc-4dc6c528c2b8e858ae65d91a82c6fae661894302.tar.gz gcc-4dc6c528c2b8e858ae65d91a82c6fae661894302.tar.bz2 |
alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
* alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
* df-scan.c (df_notes_rescan): Likewise.
* ggc-page.c (set_page_table_entry): Likewise.
* intl.c (gcc_gettext_width): Likewise.
* varasm.c (get_unnamed_section, get_noswitch_section,
get_section): Likewise.
From-SVN: r137245
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r-- | gcc/df-scan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c index 87dda3a..092273f 100644 --- a/gcc/df-scan.c +++ b/gcc/df-scan.c @@ -2082,9 +2082,9 @@ df_notes_rescan (rtx insn) if (collection_rec.next_mw > num_deleted) { insn_info->mw_hardregs = - xrealloc (insn_info->mw_hardregs, - (count + 1 + collection_rec.next_mw) - * sizeof (struct df_ref*)); + XRESIZEVEC (struct df_mw_hardreg *, + insn_info->mw_hardregs, + count + 1 + collection_rec.next_mw); } memcpy (&insn_info->mw_hardregs[count], collection_rec.mw_vec, (collection_rec.next_mw + 1) * sizeof (struct df_mw_hardreg *)); |