summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornvachhar <nvachhar@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-06 20:45:26 +0000
committernvachhar <nvachhar@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-06 20:45:26 +0000
commit4b49a15a48aaa5bdb5754c8c2aacab5eac777a96 (patch)
tree99417a3b99b3243d386018ebbb830f617bf792a4
parent0f8795795f7373b7422f53f1281edde5d3721359 (diff)
downloadppe42-gcc-4b49a15a48aaa5bdb5754c8c2aacab5eac777a96.tar.gz
ppe42-gcc-4b49a15a48aaa5bdb5754c8c2aacab5eac777a96.zip
* value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150544 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--ChangeLog4
-rw-r--r--gcc/value-prof.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f4dd8a4e17e..8e4f48c60e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
+ * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
+
+2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
+
* MAINTAINERS: Add my name to Write After Approval list.
2009-08-06 Michael Eager <eager@eagercon.com>
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index e7a8e0f0747..9774ca224f5 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -1,5 +1,5 @@
/* Transformations based on profile information for values.
- Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software
+ Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
Foundation, Inc.
This file is part of GCC.
@@ -1059,8 +1059,7 @@ init_pid_map (void)
if (pid_map != NULL)
return;
- pid_map
- = (struct cgraph_node**) xmalloc (sizeof (struct cgraph_node*) * cgraph_max_pid);
+ pid_map = XCNEWVEC (struct cgraph_node*, cgraph_max_pid);
for (n = cgraph_nodes; n; n = n->next)
{
OpenPOWER on IntegriCloud