diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-03 19:01:31 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-03 19:01:31 +0000 |
commit | 1e622bfcbb3ab7231ac7a24766675e613c04815a (patch) | |
tree | b2223ec86f4019cee8a83e0756d747663d897b72 /gcc/sched-deps.c | |
parent | 810c9ba708e2deee40f0973d89a572fef92107d4 (diff) | |
download | gcc-1e622bfcbb3ab7231ac7a24766675e613c04815a.tar.gz |
2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimizations/42941
* sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
of xmalloc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156472 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 8a6a860ec92..02de5f8e820 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -2033,8 +2033,8 @@ setup_insn_reg_pressure_info (rtx insn) len = sizeof (struct reg_pressure_data) * ira_reg_class_cover_size; pressure_info = INSN_REG_PRESSURE (insn) = (struct reg_pressure_data *) xmalloc (len); - INSN_MAX_REG_PRESSURE (insn) = (int *) xmalloc (ira_reg_class_cover_size - * sizeof (int)); + INSN_MAX_REG_PRESSURE (insn) = (int *) xcalloc (ira_reg_class_cover_size + * sizeof (int), 1); for (i = 0; i < ira_reg_class_cover_size; i++) { cl = ira_reg_class_cover[i]; |