Mercurial > hg > CbC > CbC_gcc
diff gcc/tree-profile.c @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
line wrap: on
line diff
--- a/gcc/tree-profile.c Fri Feb 12 23:41:23 2010 +0900 +++ b/gcc/tree-profile.c Mon May 24 12:47:05 2010 +0900 @@ -1,6 +1,6 @@ /* Calculate branch probabilities, and basic block execution counts. Copyright (C) 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010 Free Software Foundation, Inc. Contributed by James E. Wilson, UC Berkeley/Cygnus Support; based on some ideas from Dain Samples of UC Berkeley. @@ -30,9 +30,7 @@ #include "system.h" #include "coretypes.h" #include "tm.h" -#include "rtl.h" #include "flags.h" -#include "output.h" #include "regs.h" #include "expr.h" #include "function.h" @@ -44,7 +42,6 @@ #include "tree-pass.h" #include "timevar.h" #include "value-prof.h" -#include "ggc.h" #include "cgraph.h" static GTY(()) tree gcov_type_node; @@ -83,6 +80,7 @@ DECL_ARTIFICIAL (ic_void_ptr_var) = 1; DECL_INITIAL (ic_void_ptr_var) = NULL; varpool_finalize_decl (ic_void_ptr_var); + varpool_mark_needed_node (varpool_node (ic_void_ptr_var)); gcov_type_ptr = build_pointer_type (get_gcov_type ()); ic_gcov_type_ptr_var @@ -94,6 +92,7 @@ DECL_ARTIFICIAL (ic_gcov_type_ptr_var) = 1; DECL_INITIAL (ic_gcov_type_ptr_var) = NULL; varpool_finalize_decl (ic_gcov_type_ptr_var); + varpool_mark_needed_node (varpool_node (ic_gcov_type_ptr_var)); } static void @@ -343,7 +342,7 @@ gimple stmt1, stmt2; tree tree_uid, cur_func; - if (!c_node->needed) + if (cgraph_only_called_directly_p (c_node)) return; tree_init_edge_profiler ();