OSDN Git Service

PR debug/43516
[pf3gnuchains/gcc-fork.git] / gcc / ipa.c
index 3a5ef16..c789a29 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -1,6 +1,6 @@
 /* Basic IPA optimizations and utilities.
-   Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010
-   Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
+   Inc.
 
 This file is part of GCC.
 
@@ -70,12 +70,6 @@ cgraph_postorder (struct cgraph_node **order)
                    node2->aux = edge->next_caller;
                  else
                    node2->aux = &last;
-                 /* Break possible cycles involving always-inline
-                    functions by ignoring edges from always-inline
-                    functions to non-always-inline functions.  */
-                 if (edge->caller->local.disregard_inline_limits
-                     && !edge->callee->local.disregard_inline_limits)
-                   continue;
                  if (!edge->caller->aux)
                    {
                      if (!edge->caller->callers)
@@ -271,8 +265,6 @@ cgraph_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
                      node->analyzed = false;
                      node->local.inlinable = false;
                    }
-                 else
-                   gcc_assert (!clone->in_other_partition);
                  cgraph_node_remove_callees (node);
                  if (node->prev_sibling_clone)
                    node->prev_sibling_clone->next_sibling_clone = node->next_sibling_clone;
@@ -325,8 +317,6 @@ cgraph_externally_visible_p (struct cgraph_node *node, bool whole_program)
     return false;
   if (!whole_program)
     return true;
-  if (DECL_PRESERVE_P (node->decl))
-    return true;
   /* COMDAT functions must be shared only if they have address taken,
      otherwise we can produce our own private implementation with
      -fwhole-program.  */
@@ -576,8 +566,7 @@ struct ipa_opt_pass_d pass_ipa_whole_program_visibility =
  NULL,                                 /* generate_summary */
  NULL,                                 /* write_summary */
  NULL,                                 /* read_summary */
- NULL,                                 /* write_optimization_summary */
- NULL,                                 /* read_optimization_summary */
+ NULL,                                 /* function_read_summary */
  NULL,                                 /* stmt_fixup */
  0,                                    /* TODOs */
  NULL,                                 /* function_transform */