diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-29 04:39:16 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-29 04:39:16 +0000 |
commit | c768b48b8d38dca97809ea1dc72de2cebd05b6c6 (patch) | |
tree | 2b48e3a63388183c42752ae73ac281a65cd85dd7 /gcc/df-scan.c | |
parent | a0a1d5635c8086d6a7e16e38b6f533da669678d8 (diff) | |
download | gcc-c768b48b8d38dca97809ea1dc72de2cebd05b6c6.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137245 138bc75d-0d04-0410-961f-82ee72b054a4
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 87dda3a7b2c..092273faa3b 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 *)); |