aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorNeil Vachharajani <nvachhar@gmail.com>2009-08-06 20:45:26 +0000
committerNeil Vachharajani <nvachhar@gcc.gnu.org>2009-08-06 20:45:26 +0000
commitda0e8d951a2058082114455560e379d16724d74e (patch)
tree99417a3b99b3243d386018ebbb830f617bf792a4 /gcc/value-prof.c
parent8375f7b2fee5f22d14a4ac640bdf82453f6284bf (diff)
downloadgcc-da0e8d951a2058082114455560e379d16724d74e.zip
gcc-da0e8d951a2058082114455560e379d16724d74e.tar.gz
gcc-da0e8d951a2058082114455560e379d16724d74e.tar.bz2
* value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
From-SVN: r150544
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index e7a8e0f..9774ca2 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)
{