X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Ftree-optimize.c;h=544d75daabec7fb55180540e20f0a2f8c6b7291f;hb=2c3b9819e0da54d2cfab55c2e8d16d6364692ce3;hp=e122f48e540ba9db07e99b936e86400808959442;hpb=223e470bfc73a63afcdcd1c602cf312fc9a792cd;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index e122f48e540..544d75daabe 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -1,12 +1,12 @@ /* Top-level control of tree optimizations. - Copyright 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc. Contributed by Diego Novillo 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) +the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, @@ -15,9 +15,8 @@ MERCHANTABILITY or 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 +. */ #include "config.h" #include "system.h" @@ -208,13 +207,10 @@ struct tree_opt_pass pass_cleanup_cfg_post_optimizing = static unsigned int execute_free_datastructures (void) { - /* ??? This isn't the right place for this. Worse, it got computed - more or less at random in various passes. */ free_dominance_info (CDI_DOMINATORS); free_dominance_info (CDI_POST_DOMINATORS); - /* Remove the ssa structures. Do it here since this includes statement - annotations that need to be intact during disband_implicit_edges. */ + /* Remove the ssa structures. */ if (cfun->gimple_df) delete_tree_ssa (); return 0; @@ -241,9 +237,6 @@ struct tree_opt_pass pass_free_datastructures = static unsigned int execute_free_cfg_annotations (void) { - /* Emit gotos for implicit jumps. */ - disband_implicit_edges (); - /* And get rid of annotations we no longer need. */ delete_tree_cfg_annotations (); @@ -394,7 +387,6 @@ tree_rest_of_compilation (tree fndecl) /* Initialize the RTL code for the function. */ current_function_decl = fndecl; - cfun = DECL_STRUCT_FUNCTION (fndecl); saved_loc = input_location; input_location = DECL_SOURCE_LOCATION (fndecl); init_function_start (fndecl); @@ -417,7 +409,7 @@ tree_rest_of_compilation (tree fndecl) bitmap_obstack_release (NULL); DECL_SAVED_TREE (fndecl) = NULL; - cfun = 0; + set_cfun (NULL); /* If requested, warn about function definitions where the function will return a value (usually of some struct or union type) which itself will @@ -435,10 +427,10 @@ tree_rest_of_compilation (tree fndecl) = TREE_INT_CST_LOW (TYPE_SIZE_UNIT (ret_type)); if (compare_tree_int (TYPE_SIZE_UNIT (ret_type), size_as_int) == 0) - warning (0, "size of return value of %q+D is %u bytes", + warning (OPT_Wlarger_than_eq, "size of return value of %q+D is %u bytes", fndecl, size_as_int); else - warning (0, "size of return value of %q+D is larger than %wd bytes", + warning (OPT_Wlarger_than_eq, "size of return value of %q+D is larger than %wd bytes", fndecl, larger_than_size); } }