X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fipa-cp.c;h=4d9e0a4eb282a7ff0f21d4dbcceb625a8613c86c;hb=5d2fc50913d8f07dac579d636b6b46040df073f1;hp=32f8b6d6dcd4d34064993366cbbabbc30c41a6b2;hpb=a0147880f21db35ccccac321894d9eb9cedbb28f;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 32f8b6d6dcd..4d9e0a4eb28 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -6,7 +6,7 @@ This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later +Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY @@ -15,9 +15,8 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to the Free -Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301, USA. */ +along with GCC; see the file COPYING3. If not see +. */ /* Interprocedural constant propagation. The aim of interprocedural constant propagation (IPCP) is to find which @@ -570,7 +569,7 @@ static void ipcp_propagate_stage (void) { int i; - struct ipcp_formal cval1 = { 0, {0} }, cval = { 0,{0} }; + struct ipcp_formal cval1 = { BOTTOM, {0} }, cval = { BOTTOM, {0} }; struct ipcp_formal *cval2; struct cgraph_node *mt, *callee; struct cgraph_edge *cs; @@ -792,7 +791,7 @@ ipcp_profile_bb_print (FILE * f) ENTRY_BLOCK_PTR_FOR_FUNCTION (DECL_STRUCT_FUNCTION (node->decl)); fprintf (f, "ENTRY: Count"); fprintf (f, " " HOST_WIDE_INT_PRINT_DEC - " Frquency %d\n", (HOST_WIDE_INT) bb->count, + " Frequency %d\n", (HOST_WIDE_INT) bb->count, bb->frequency); FOR_EACH_BB_FN (bb, DECL_STRUCT_FUNCTION (node->decl)) @@ -1137,7 +1136,10 @@ cgraph_gate_cp (void) return flag_ipa_cp; } -struct tree_opt_pass pass_ipa_cp = { +struct simple_ipa_opt_pass pass_ipa_cp = +{ + { + SIMPLE_IPA_PASS, "cp", /* name */ cgraph_gate_cp, /* gate */ ipcp_driver, /* execute */ @@ -1149,6 +1151,6 @@ struct tree_opt_pass pass_ipa_cp = { PROP_trees, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_cgraph | TODO_dump_func, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_cgraph | TODO_dump_func /* todo_flags_finish */ + } };