OSDN Git Service

PR c++/51812
[pf3gnuchains/gcc-fork.git] / gcc / cgraphunit.c
index 6ea40ce..8f96d38 100644 (file)
@@ -195,6 +195,7 @@ cgraph_decide_is_function_needed (struct cgraph_node *node, tree decl)
      to change the behavior here.  */
   if (((TREE_PUBLIC (decl)
        || (!optimize
+           && !node->same_body_alias
            && !DECL_DISREGARD_INLINE_LIMITS (decl)
            && !DECL_DECLARED_INLINE_P (decl)
            && !(DECL_CONTEXT (decl)