Commit da0e8d95 by Neil Vachharajani Committed by Neil Vachharajani

* value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.

From-SVN: r150544
parent 8375f7b2
2009-08-06 Neil Vachharajani <nvachhar@gmail.com> 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. * MAINTAINERS: Add my name to Write After Approval list.
2009-08-06 Michael Eager <eager@eagercon.com> 2009-08-06 Michael Eager <eager@eagercon.com>
......
/* Transformations based on profile information for values. /* 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. Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -1059,8 +1059,7 @@ init_pid_map (void) ...@@ -1059,8 +1059,7 @@ init_pid_map (void)
if (pid_map != NULL) if (pid_map != NULL)
return; return;
pid_map pid_map = XCNEWVEC (struct cgraph_node*, cgraph_max_pid);
= (struct cgraph_node**) xmalloc (sizeof (struct cgraph_node*) * cgraph_max_pid);
for (n = cgraph_nodes; n; n = n->next) for (n = cgraph_nodes; n; n = n->next)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment