]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
authorNeil Vachharajani <nvachhar@gmail.com>
Thu, 6 Aug 2009 20:45:26 +0000 (20:45 +0000)
committerNeil Vachharajani <nvachhar@gcc.gnu.org>
Thu, 6 Aug 2009 20:45:26 +0000 (20:45 +0000)
From-SVN: r150544

ChangeLog
gcc/value-prof.c

index f4dd8a4e17eceec089726e4c0229cac80535c1b0..8e4f48c60e158df1b9dff224beee7f2700fc64aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
index e7a8e0f07479073c56f7e522194ac94ba84012a8..9774ca224f5b6aa515a9fa26f7b0007950cef643 100644 (file)
@@ -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)
     {